]> www.infradead.org Git - qemu-nvme.git/commit
s390x/cpumodel: we are always in zarchitecture mode
authorJason J. Herne <jjherne@linux.vnet.ibm.com>
Thu, 1 Sep 2016 08:56:49 +0000 (10:56 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 14 Jul 2017 10:29:49 +0000 (12:29 +0200)
commit075e52b816648f21ca6bf5cc01624dff3993c99e
tree76302017dc22c8b8f9cbf6ce8f00c44a5fe72995
parent6da5c593bb2c27cef5fbfc4b37342bbf66133cc1
s390x/cpumodel: we are always in zarchitecture mode

In QEMU, a guest VCPU always started in and never was able to leave
z/Architecture mode. Now we have an architected way of showing this
condition.

The SIGP SET ARCHITECTURE instruction is simply rejected. Linux as guest
seems to not care about the return value, which is a good thing
The new handling is just like already being in z/Architecture mode.

We'll not try to fake absence of this facility, but still not indicate
the facility in case some strange CPU model turned z/Architecture off
completely (which doesn't work either way but let's us see how a
guest would react on a lack of this facility).

Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
target/s390x/cpu_features.c
target/s390x/kvm.c