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

Daniel Veillard veillard at redhat.com
Mon Jul 26 16:23:06 UTC 2010


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 *driver,
> +                          virDomainDefPtr def)
> +{
> +	return qemuPrepareHostdevPCIDevices(driver, def->hostdevs, def->nhostdevs);

  Except for a tab here used for indenting, looks fine too

Daniel


-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list