s390x/pci: reject some operations to disabled PCI function
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Mon, 14 Dec 2015 08:50:44 +0000 (16:50 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 13 Jan 2016 09:53:42 +0000 (10:53 +0100)
commit3be5c2078bcf3ba1084cd90a191e93cb7ade18a2
tree20e51cf528278f812c01fae61fe4d9e96e2abebb
parent7b3fdbd9a826791bd98e649cf44c0a6129a44179
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>
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-bus.h
hw/s390x/s390-pci-inst.c