From 3be5c2078bcf3ba1084cd90a191e93cb7ade18a2 Mon Sep 17 00:00:00 2001 From: Yi Min Zhao Date: Mon, 14 Dec 2015 16:50:44 +0800 Subject: s390x/pci: reject some operations to disabled PCI function According to the s390 architecture, any mpcifc, pcilg, pcistg, pcistb and rpcit instructions issued to disabled PCI functions are rejected, and the instruction completes by setting condition code 3. In addition, any DMA and MSIX interruption operations are ignored. Signed-off-by: Yi Min Zhao Reviewed-by: Cornelia Huck Signed-off-by: Cornelia Huck --- hw/s390x/s390-pci-bus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/s390x/s390-pci-bus.h') diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h index 80345dacb1..d8ddb77281 100644 --- a/hw/s390x/s390-pci-bus.h +++ b/hw/s390x/s390-pci-bus.h @@ -23,6 +23,7 @@ #define TYPE_S390_PCI_HOST_BRIDGE "s390-pcihost" #define FH_VIRT 0x00ff0000 #define ENABLE_BIT_OFFSET 31 +#define FH_ENABLED (1 << ENABLE_BIT_OFFSET) #define S390_PCIPT_ADAPTER 2 #define S390_PCI_HOST_BRIDGE(obj) \ -- cgit v1.2.3