WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Keir <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][HVM] pass-through PCI device hotplug support
From: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Date: Wed, 23 Jan 2008 23:52:09 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Jan 2008 07:53:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
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