[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qt
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del |
Date: |
Fri, 28 May 2010 00:19:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Luiz Capitulino wrote:
> On Sun, 23 May 2010 12:59:19 +0200
> Jan Kiszka <address@hidden> wrote:
>
>> From: Jan Kiszka <address@hidden>
>>
>> Allow to specify the device to be removed via device_del not only by ID
>> but also by its full or abbreviated qtree path. For this purpose,
>> qdev_find is introduced which combines walking the qtree with searching
>> for device IDs if required.
>
> [...]
>
>> Arguments:
>>
>> -- "id": the device's ID (json-string)
>> +- "path": the device's qtree path or unique ID (json-string)
>>
>> Example:
>>
>> --> { "execute": "device_del", "arguments": { "id": "net1" } }
>> +-> { "execute": "device_del", "arguments": { "path": "net1" } }
>
> Doesn't seem like a good change to me, besides being incompatible[1] we
> shouldn't overload arguments this way in QMP as overloading leads to
> interface degradation (harder to use, understand, maintain).
It's not overloaded, think of an ID as a (weak) symbolic link in the
qtree filesystem. The advantage of basing everything on top of full or
abbreviated qtree paths is that IDs are not always assigned, paths are.
>
> Maybe we could have both arguments as optional, but one must be passed.
This would at least require some way to keep the proposed unified path
specification for the human monitor (having separate arguments there is
really unhandy).
>
> [1] It's 'legal' to break the protocol before 0.13, but this has to be
> coordinated with libvirt so we should have a good reason to do this
>
>> <- { "return": {} }
>>
>> EQMP
>
Jan
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v3 00/17] Basic device state visualization, Jan Kiszka, 2010/05/23
- [Qemu-devel] [PATCH v3 02/17] qdev: Fix scanning across single-bus devices, Jan Kiszka, 2010/05/23
- [Qemu-devel] [PATCH v3 03/17] qdev: Allow device addressing via 'driver.instance', Jan Kiszka, 2010/05/23
- [Qemu-devel] [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Jan Kiszka, 2010/05/23
- [Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Luiz Capitulino, 2010/05/27
- Re: [Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Markus Armbruster, 2010/05/28
- Re: [Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Jan Kiszka, 2010/05/28
- Re: [Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Markus Armbruster, 2010/05/29
- Re: [Qemu-devel] Re: [PATCH v3 06/17] qdev: Allow device specification by qtree path for device_del, Jan Kiszka, 2010/05/29
[Qemu-devel] [PATCH v3 04/17] qdev: Give qtree names precedence over user-assigned IDs, Jan Kiszka, 2010/05/23