Cui, Dexuan
2008-Dec-31 07:48 UTC
[Xen-devel] [PATCH] vtd hotplug: check if a device can be hot-plugged.
When we statically assign a pci device (the pci=[''xx:xx.x''] string in guest config file) to guest, we make many checkings (for instance, if the device is specified in ''pciback.hide'', if it has non-page-aligned MMIO BARs, if it has a proper FLR capability, if the related devices should be co-assigned). However, with respect to the guest hotplug, we only check if the device exists and not assigned yet -- this is not enough, for instance, now xend allows us to assign an in-use device (being used by Dom0) to an HVM guest (because xc.test_assigned() returns OK) -- this will cause disaster... The patch adds some necessary checkings. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel