On 01/29/2013 09:52 AM, Stefan Berger wrote: > Add a file descriptor set to the QEMU private domain structure. > > --- > src/qemu/qemu_domain.c | 4 ++++ > src/qemu/qemu_domain.h | 3 +++ > 2 files changed, 7 insertions(+) In isolation, this patch looks okay. But the real question is what it will be used for. I'm worried that we don't have quite the right implementation design in place yet. Unfortunately, I think we need much more than storing just a set of integers - we need a full blown hash table, where the key is the fd we passed through, and the value is more details (the file name or other details describing the fd that we are passing, and the resulting qemu fdset number that the fd will belong to). Furthermore, we need to make this storage persist across libvirt reboots, which means it needs to be part of the (internal-only) XML that we save in /var/run/libvirt/qemu/$dom.xml, so we must also modify qemuDomainObjPrivateXMLFormat() to output the contents of this set (or hash table) in a reusable manner. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list