[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/8] s390x/pci: use a reserved ID for the default PCI group
From: |
Thomas Huth |
Subject: |
[PULL 3/8] s390x/pci: use a reserved ID for the default PCI group |
Date: |
Thu, 16 Dec 2021 10:44:42 +0100 |
From: Matthew Rosato <mjrosato@linux.ibm.com>
The current default PCI group being used can technically collide with a
real group ID passed from a hostdev. Let's instead use a group ID that
comes from a special pool (0xF0-0xFF) that is architected to be reserved
for simulated devices.
Fixes: 28dc86a072 ("s390x/pci: use a PCI Group structure")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Message-Id: <20211203142706.427279-2-mjrosato@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/hw/s390x/s390-pci-bus.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/s390x/s390-pci-bus.h b/include/hw/s390x/s390-pci-bus.h
index aa891c178d..2727e7bdef 100644
--- a/include/hw/s390x/s390-pci-bus.h
+++ b/include/hw/s390x/s390-pci-bus.h
@@ -313,7 +313,7 @@ typedef struct ZpciFmb {
} ZpciFmb;
QEMU_BUILD_BUG_MSG(offsetof(ZpciFmb, fmt0) != 48, "padding in ZpciFmb");
-#define ZPCI_DEFAULT_FN_GRP 0x20
+#define ZPCI_DEFAULT_FN_GRP 0xFF
typedef struct S390PCIGroup {
ClpRspQueryPciGrp zpci_group;
int id;
--
2.27.0
- [PULL 0/8] s390x patches (and one gitlab-CI fix), Thomas Huth, 2021/12/16
- [PULL 3/8] s390x/pci: use a reserved ID for the default PCI group,
Thomas Huth <=
- [PULL 2/8] MAINTAINERS: update email address of Christian Borntraeger, Thomas Huth, 2021/12/16
- [PULL 1/8] s390: kvm: adjust diag318 resets to retain data, Thomas Huth, 2021/12/16
- [PULL 4/8] s390x/pci: don't use hard-coded dma range in reg_ioat, Thomas Huth, 2021/12/16
- [PULL 8/8] gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices, Thomas Huth, 2021/12/16
- [PULL 6/8] s390x/pci: add supported DT information to clp response, Thomas Huth, 2021/12/16
- [PULL 7/8] hw: Add compat machines for 7.0, Thomas Huth, 2021/12/16
- [PULL 5/8] s390x/pci: use the passthrough measurement update interval, Thomas Huth, 2021/12/16
- Re: [PULL 0/8] s390x patches (and one gitlab-CI fix), Richard Henderson, 2021/12/16