aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2017-05-24 14:06:12 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2017-06-06 10:17:11 +0200
commit4e19b57b0e335fdaf2cf3f056b327ee6717dec7e (patch)
treee74493511da2ebdedbaa7dd62c948968b265f5a2 /include/hw
parent8ed179c937830143dc0e03daac30a55272ed89e3 (diff)
downloadqemu-4e19b57b0e335fdaf2cf3f056b327ee6717dec7e.zip
qemu-4e19b57b0e335fdaf2cf3f056b327ee6717dec7e.tar.gz
qemu-4e19b57b0e335fdaf2cf3f056b327ee6717dec7e.tar.bz2
s390x/css: fence off MIDA
MIDA (modified indirect data addressing) is an optional facility, and we (currently) don't support it. Let's post an operand exception if the guest tries to set it in the orb and a channel program check if it is set in a ccw, as specified in the Principles of Operation. Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/s390x/ioinst.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/s390x/ioinst.h b/include/hw/s390x/ioinst.h
index c559f53..92d1565 100644
--- a/include/hw/s390x/ioinst.h
+++ b/include/hw/s390x/ioinst.h
@@ -182,6 +182,7 @@ typedef struct CCW1 {
#define CCW_FLAG_PCI 0x08
#define CCW_FLAG_IDA 0x04
#define CCW_FLAG_SUSPEND 0x02
+#define CCW_FLAG_MIDA 0x01
#define CCW_CMD_NOOP 0x03
#define CCW_CMD_BASIC_SENSE 0x04