diff options
author | Yi Min Zhao <zyimin@linux.vnet.ibm.com> | 2015-12-14 16:50:44 +0800 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2016-01-13 10:53:42 +0100 |
commit | 3be5c2078bcf3ba1084cd90a191e93cb7ade18a2 (patch) | |
tree | 20e51cf528278f812c01fae61fe4d9e96e2abebb /hw/s390x/s390-pci-bus.h | |
parent | 7b3fdbd9a826791bd98e649cf44c0a6129a44179 (diff) | |
download | qemu-3be5c2078bcf3ba1084cd90a191e93cb7ade18a2.zip qemu-3be5c2078bcf3ba1084cd90a191e93cb7ade18a2.tar.gz qemu-3be5c2078bcf3ba1084cd90a191e93cb7ade18a2.tar.bz2 |
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 <zyimin@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/s390-pci-bus.h')
-rw-r--r-- | hw/s390x/s390-pci-bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h index 80345da..d8ddb77 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) \ |