[libvirt] [PATCH V3 1/2] Intorduce file descriptor set for QEMU domains
Eric Blake
eblake at redhat.com
Thu Feb 7 23:00:05 UTC 2013
On 02/07/2013 03:26 PM, Stefan Berger wrote:
>> Just have a hashtable mapping device alias names -> fd set numbers
>> in the qemuDomainObjPrivatePtr, and write that out in the QEMU
>> private XML. There's no need to directly mirror the structs.
Perhaps my fault for first suggesting that we modify <alias> at the
device_conf level, but I like the idea of tracking a hashtable at the
qemu private level that maps back to <alias> as needed.
>>
>
> you agree to this XML ?
>
> <fdsets>
> <entry alias='ide0-0-0' fdset='1'/>
> <entry alias='serial0' fdset='2'/>
> <entry alias='serial1' fdset='3'/>
> </fdsets>
Looks good to me. We may want more information on a given fdset, but
that can be added later. If we need more than a alias->set number, we
would instead hash an alias->struct, with XML looking something like:
<fdsets>
<entry alias='ide0-0-0' fdset='1'>
<source>/path/to/disk.img</source>
<fd id='4' mode='rdonly'/>
<fd id='5' mode='rdwr'/>
</entry>
</fdsets>
But again, without knowing whether we need extra information, your
proposal is fine for now.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130207/2333f4cf/attachment-0001.sig>
More information about the libvir-list
mailing list