[libvirt] [RFC PATCH 2/4] Add helpers qemuPrepareHostdevPCIDevices and qemuDomainReAttachHostdevDevices

2010-07-23 Thread Chris Wright
These new helpers take hostdev list and count directly rather than getting them indirectly from domain definition. This will allow reuse for the attach-device case. Cc: Alex Williamson Cc: Don Dutile Cc: Chris Lalancette Cc: Mark McLoughlin Signed-off-by: Chris Wright --- src/qemu/qemu_driv

Re: [libvirt] [RFC PATCH 2/4] Add helpers qemuPrepareHostdevPCIDevices and qemuDomainReAttachHostdevDevices

2010-07-26 Thread Daniel Veillard
On Fri, Jul 23, 2010 at 11:03:45PM -0700, Chris Wright wrote: > These new helpers take hostdev list and count directly rather than > getting them indirectly from domain definition. This will allow reuse > for the attach-device case. > +static int > +qemuPrepareHostPCIDevices(struct qemud_driver *

Re: [libvirt] [RFC PATCH 2/4] Add helpers qemuPrepareHostdevPCIDevices and qemuDomainReAttachHostdevDevices

2010-07-26 Thread Chris Wright
* Daniel Veillard (veill...@redhat.com) wrote: > On Fri, Jul 23, 2010 at 11:03:45PM -0700, Chris Wright wrote: > > These new helpers take hostdev list and count directly rather than > > getting them indirectly from domain definition. This will allow reuse > > for the attach-device case. > > > +st