|
|
97168e |
From 55294fc4a955491f1fd947e4d98bd6df832c88ba Mon Sep 17 00:00:00 2001
|
|
|
97168e |
From: Matthew Rosato <mjrosato@linux.ibm.com>
|
|
|
97168e |
Date: Fri, 3 Dec 2021 09:27:03 -0500
|
|
|
97168e |
Subject: [PATCH 01/42] s390x/pci: use a reserved ID for the default PCI group
|
|
|
97168e |
MIME-Version: 1.0
|
|
|
97168e |
Content-Type: text/plain; charset=UTF-8
|
|
|
97168e |
Content-Transfer-Encoding: 8bit
|
|
|
97168e |
|
|
|
97168e |
RH-Author: Cédric Le Goater <clg@redhat.com>
|
|
|
97168e |
RH-MergeRequest: 226: s390: Enhanced Interpretation for PCI Functions and Secure Execution guest dump
|
|
|
97168e |
RH-Bugzilla: 1664378 2043909
|
|
|
97168e |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
97168e |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
97168e |
RH-Acked-by: Jon Maloy <jmaloy@redhat.com>
|
|
|
97168e |
RH-Commit: [1/41] ad3ed38dec95acf0da04d7669fe772d798d039fc
|
|
|
97168e |
|
|
|
97168e |
The current default PCI group being used can technically collide with a
|
|
|
97168e |
real group ID passed from a hostdev. Let's instead use a group ID that
|
|
|
97168e |
comes from a special pool (0xF0-0xFF) that is architected to be reserved
|
|
|
97168e |
for simulated devices.
|
|
|
97168e |
|
|
|
97168e |
Fixes: 28dc86a072 ("s390x/pci: use a PCI Group structure")
|
|
|
97168e |
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
|
|
|
97168e |
Reviewed-by: Eric Farman <farman@linux.ibm.com>
|
|
|
97168e |
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
|
|
|
97168e |
Message-Id: <20211203142706.427279-2-mjrosato@linux.ibm.com>
|
|
|
97168e |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
97168e |
(cherry picked from commit b2892a2b9d45d25b909108ca633d19f9d8d673f5)
|
|
|
97168e |
Signed-off-by: Cédric Le Goater <clg@redhat.com>
|
|
|
97168e |
---
|
|
|
97168e |
include/hw/s390x/s390-pci-bus.h | 2 +-
|
|
|
97168e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
97168e |
|
|
|
97168e |
diff --git a/include/hw/s390x/s390-pci-bus.h b/include/hw/s390x/s390-pci-bus.h
|
|
|
97168e |
index aa891c178d..2727e7bdef 100644
|
|
|
97168e |
--- a/include/hw/s390x/s390-pci-bus.h
|
|
|
97168e |
+++ b/include/hw/s390x/s390-pci-bus.h
|
|
|
97168e |
@@ -313,7 +313,7 @@ typedef struct ZpciFmb {
|
|
|
97168e |
} ZpciFmb;
|
|
|
97168e |
QEMU_BUILD_BUG_MSG(offsetof(ZpciFmb, fmt0) != 48, "padding in ZpciFmb");
|
|
|
97168e |
|
|
|
97168e |
-#define ZPCI_DEFAULT_FN_GRP 0x20
|
|
|
97168e |
+#define ZPCI_DEFAULT_FN_GRP 0xFF
|
|
|
97168e |
typedef struct S390PCIGroup {
|
|
|
97168e |
ClpRspQueryPciGrp zpci_group;
|
|
|
97168e |
int id;
|
|
|
97168e |
--
|
|
|
97168e |
2.37.3
|
|
|
97168e |
|