]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: implement virNodeDeviceDetachFlags backend
authorLaine Stump <laine@laine.org>
Wed, 24 Apr 2013 18:03:39 +0000 (14:03 -0400)
committerLaine Stump <laine@laine.org>
Fri, 26 Apr 2013 01:28:10 +0000 (21:28 -0400)
commiteaff16113acca7964b93b26182a8e7c4de4b49ab
tree9b2cdfbdbe6042623bc5ea70fe86cd8c14ea16e1
parentcc875b8372609a3834c3782ed459c10a111a97c2
qemu: implement virNodeDeviceDetachFlags backend

The differences from virNodeDeviceDettach are very minor:

1) Check that the flags are 0.

2) Set the virPCIDevice's stubDriver according to the driverName that
   is passed in.

3) Call virPCIDeviceDetach with a NULL stubDriver, indicating it
   should get the name of the stub driver from the virPCIDevice
   object.
src/qemu/qemu_driver.c