[libvirt] [PATCH] qemu: Don't drop hostdev config until security label restore

Eric Blake eblake at redhat.com
Fri Dec 16 15:07:37 UTC 2011


On 12/15/2011 10:12 AM, Michal Privoznik wrote:
> Currently, on device detach, we parse given XML, find the device
> in domain object, free it and try to restore security labels.
> However, in some cases (e.g. usb hostdev) parsed XML contains
> less information than freed device. In usb case it is bus & device
> IDs. These are needed during label restoring as a symlink into
> /dev/bus is generated from them. Therefore don't drop device
> configuration until security labels are restored.
> ---
>  src/qemu/qemu_hotplug.c |   38 ++++++++++++++++++++++++++------------
>  src/qemu/qemu_hotplug.h |    6 ------
>  2 files changed, 26 insertions(+), 18 deletions(-)

ACK.

-- 
Eric Blake   eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111216/f286f140/attachment-0001.sig>


More information about the libvir-list mailing list