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

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


This patch is the new version against 17051 to enable HVM guest VT-d device 

** Currently only 2 virtual pci slots(6~7) are made as being capable of 
so more than 2 vtd dev can't be hotplugged, but we can easily extend it in 

Three new commands are added:
"xm pci-list domid" show the current assigned vtd device, like:
VSlt  domain   bus   slot   func
0x6      0x0  0x02   0x00    0x0

"xm pci-detach" hot remove the specified vtd device by the virtual slot, like:
xm pci-detach EdwinHVMDomainVtd 6

"xm pci-attach DomainID dom bus dev func [vslot]" hot add a new vtd device in 
the vslot. If no vslot specified, a free slot will be picked up. e.g. to insert 
xm pci-attach EdwinHVMDomainVtd 0 3 0 0

** guest pci hotplug
linux: pls. use 2.6.X and enable ACPI PCI hotplug ( Bus options=> PCI hotplug 
ACPI PCI hotplug driver)
windows: 2000/xp/2003/vista are all okay

Thanks a lot.

best rgds,

Attachment: vtd_php_r17051_v2.patch
Description: Text document

Xen-devel mailing list



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