On 2018-10-09 19:52, Tony Krowiak wrote: > From: Tony Krowiak <akrow...@linux.ibm.com> > > Let's use the KVM_SET_DEVICE_ATTR ioctl to enable hardware > interpretation of AP instructions executed on the guest. > If the S390_FEAT_AP feature is switched on for the guest, > AP instructions must be interpreted by default; otherwise, > they will be intercepted. > > This attribute setting may be overridden by a device. For example, > a device may want to provide AP instructions to the guest (i.e., > S390_FEAT_AP turned on), but it may want to emulate them. In this > case, the AP instructions executed on the guest must be > intercepted; so when the device is realized, it must disable > interpretation. > > Signed-off-by: Tony Krowiak <akrow...@linux.ibm.com> > Tested-by: Pierre Morel<pmo...@linux.ibm.com> > --- > target/s390x/kvm.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+)
Reviewed-by: Thomas Huth <th...@redhat.com>