Re: [libvirt] [PATCH] Device reattach: Check if device is assigned to guest before reattaching

2011-01-06 Thread Osier Yang
于 2011年01月05日 21:54, Yufang Zhang 写道: Reattaching pci device back to host without destroying guest or detaching device from guest would cause host to crash. This patch adds a check before doing device reattach. If the device is being assigned to guest, libvirt refuses to reattach device to host.

[libvirt] [PATCH] Device reattach: Check if device is assigned to guest before reattaching

2011-01-05 Thread Yufang Zhang
Reattaching pci device back to host without destroying guest or detaching device from guest would cause host to crash. This patch adds a check before doing device reattach. If the device is being assigned to guest, libvirt refuses to reattach device to host. Note that the patch only works for Xen,