[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][HVM] pass-through PCI device hotplug support



All,

This patch enables HVM guest VT-d device hotplug via a simple ACPI hotplug 
device model. Pls. have a look.

On VT-d side, it's very useful as you can dynamically assign VT-d device to a 
guest as long as it support ACPI hotplug(Linux 2.6, 2000, 2003, XP... pass the 
test).

* Usage is very simple.
Three new commands are added:
"xm dpci-list domid" show the current assigned vtd device, like:
ID  domain   bus   slot   func
0      0x0  0x02   0x00    0x0

"xm dpci-remove" hot remove the specified vtd device by the ID, like:
xm dpci-remove EdwinHVMDomainVtd 0

"xm dpci-insert" hot add a new vtd device, like '03:00.0':
xm dpci-insert EdwinHVMDomainVtd 3 0 0

* Currently only 2 virtual pci slots are made as being capable of hotplug, so 
more than 2 vtd dev can't be hotplugged, but we can easily extend it in future.

* I reuse the pci PV driver configuration but untouch the code path since there 
may be HVM pci PV driver in future. I'm not sure if the python changes are 
okay, 
maybe you guys have some good idea.
 
Thanks,

-- 
best rgds,
edwin

Attachment: pass_through_hotplug_r16728.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.