|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] PV Passthrough PCI Device Hotplug Support (Tools Par
Hi,
This is the updated patch of PV PCI passthrough hotplug (tools portion).
Changes to xm command:
- Let 'xm pci-attach' command use <domain:bus:slot.func> expression
rather than use separated arguments like <domain> <bus> <slot> <func>.
This is the same expression of the domain configuration file and I
believe it is more user-friendly.
- Let 'xm pci-detach' command use the same <domain:bus:slot.func>
expression. Formerly, <virtual slot> was used as the key to indicate
which device we were detaching. But for the current implementation of
PV PCI hotplug, virtual slots don't have much meaning. I think using
the same physical device name in both attachment and detachment is
appropriate here.
Changes to xend:
- Both attach and detach commands are received by device_configure()
and handled by pci_device_configure().
- HVM specific processings are done in hvm_pci_create_device() and
hvm_destroyPCIDevice().
The major problem I encoutered during this work is that, I don't have
a vt-d enabled machine and could not confirm that HVM PCI hotplug would
still work after modifications :-(
Then I hacked libxc a little to pretend as if there existed a vt-d
hardware, and could see HVM PCI attach/detach working correctly.
So now I'm pretty sure that we can do both PV and HVM hotplugs with
this patch, but I would appreciate it if someone could test this on
a real vt-d machine.
Regards,
-------------------
Yosuke Iwamatsu
NEC Corporation
pv_pcihp_tools_merge.patch
Description: all/allfiles
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] PV Passthrough PCI Device Hotplug Support (Tools Part),
Yosuke Iwamatsu <=
|
|
|
|
|