mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
8ed179c937
commit
4e19b57b0e
3 changed files with 10 additions and 0 deletions
|
@ -433,6 +433,11 @@ static int css_interpret_ccw(SubchDev *sch, hwaddr ccw_addr,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* We don't support MIDA. */
|
||||
if (ccw.flags & CCW_FLAG_MIDA) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (ccw.flags & CCW_FLAG_SUSPEND) {
|
||||
return suspend_allowed ? -EINPROGRESS : -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue