aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2023-02-24 19:49:45 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-27 18:56:07 +0100
commit9cec4309c9c9885ce3bcaa473726db6243ec6fcc (patch)
tree9034543c06b75c4d607452961eb70165484317be
parentd2df7632321c473cd57064e2350b219fbc3f6677 (diff)
downloadpasst-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar.gz
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar.bz2
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar.lz
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar.xz
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.tar.zst
passt-9cec4309c9c9885ce3bcaa473726db6243ec6fcc.zip
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>
-rw-r--r--qrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qrap.c b/qrap.c
index 287198e..2443fa3 100644
--- a/qrap.c
+++ b/qrap.c
@@ -89,13 +89,13 @@ static const struct pci_dev {
"pc-q35", "virtio-net-pci",
"bus=pci.", ",addr=0x0",
"\"bus\":\"pci.", ",\"addr\":\"0x0\"",
- 3, /* 2: hotplug bus */ 16
+ 3, /* 2: hotplug bus */ 31
},
{
"pc-", "virtio-net-pci",
"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",