Skip to content

ioemu: Allow any unused PCI device to be used for pass-through

Simon Horman xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Use test_pci_slot() to test if a php slot is valid, in use or freehw/pass-through.c hw/piix4acpi.c+5 -50 replies
2/2ioemu: Allow any unused PCI device to be used for pass-throughhw/pass-through.c hw/pci.c hw/pci.h +1 more+99 -1110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] ioemu: Allow any unused PCI device to be used for pass-through

Motivation
----------

The current limit of 2 pass-through devices seems to be rather small. These patches remove that limit and allow any unused PCI device to be used for pass-through, including hotplug.

It seems that the first few (4) devices will be used for other purposes by HVM domains. However, it seems to me to be clean to make this code generic and cope with any device on the bus - saving the need for subsequent changes if the number of devices HVM domains use by default ever changes.

There are also xend and hvmloader patches required for this change. These have been submitted and subsequently applied as detailed below.

Relevance to 3.4
-----------------

Please consider applying these patches as they are required for hotplug to work since the firmware and xend portions where applied to xen-unstable.hg as:

changeset:   19362:986d0ed147ff
user:        Keir Fraser <[email protected]>
date:        Tue Mar 17 10:48:52 2009 +0000
summary:     hvmloader: Allow any unused PCI device to be used for PCI

hotplug

changeset:   19361:6e3e841f0259
user:        Keir Fraser <[email protected]>
date:        Tue Mar 17 10:42:32 2009 +0000
summary:     xend: Use AUTO_PHP_SLOT_STR=0xff rather than 0x0 for auto pci allocation

Changes
-------

These patches were previously posted to xen-devel as
"[rfc 0/2] ioemu: Allow any unused PCI device to be used for pass-through" Dated "Fri, 13 Mar 2009 18:07:34 +1100"

I have revised the 2nd patch to fix a regression in the way that pt_init handles vslots. A full description of that change is provided with the patch.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en