qrap: Fix limits for PCI addresses
The pci.0 bus on a pc machine has 32 slots. For q35 machines, we don't expect devices to be plugged into pcie.0 directly, so technically we could have a very large number of slots by adding many pcie-root-ports, but even in this scenario 32 is a reasonable number. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
d2df763232
commit
9cec4309c9
1 changed files with 2 additions and 2 deletions
4
qrap.c
4
qrap.c
|
@ -89,13 +89,13 @@ static const struct pci_dev {
|
||||||
"pc-q35", "virtio-net-pci",
|
"pc-q35", "virtio-net-pci",
|
||||||
"bus=pci.", ",addr=0x0",
|
"bus=pci.", ",addr=0x0",
|
||||||
"\"bus\":\"pci.", ",\"addr\":\"0x0\"",
|
"\"bus\":\"pci.", ",\"addr\":\"0x0\"",
|
||||||
3, /* 2: hotplug bus */ 16
|
3, /* 2: hotplug bus */ 31
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pc-", "virtio-net-pci",
|
"pc-", "virtio-net-pci",
|
||||||
"bus=pci.0,addr=0x", "",
|
"bus=pci.0,addr=0x", "",
|
||||||
"\"bus\":\"pci.0\",\"addr=0x", "",
|
"\"bus\":\"pci.0\",\"addr=0x", "",
|
||||||
2, /* 1: ISA bridge */ 16
|
2, /* 1: ISA bridge */ 31
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"s390-ccw", "virtio-net-ccw",
|
"s390-ccw", "virtio-net-ccw",
|
||||||
|
|
Loading…
Reference in a new issue