qemu-e2k/target/s390x
Tony Krowiak 1d7db85b61 s390x/kvm: enable AP instruction interpretation for guest
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 <akrowiak@linux.ibm.com>
Tested-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-Id: <20181010170309.12045-4-akrowiak@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-10-12 11:32:18 +02:00
..
Makefile.objs
arch_dump.c
cc_helper.c
cpu-qom.h
cpu.c
cpu.h
cpu_features.c
cpu_features.h
cpu_features_def.h
cpu_models.c
cpu_models.h
crypto_helper.c
diag.c
excp_helper.c
fpu_helper.c
gdbstub.c
gen-features.c
helper.c
helper.h
insn-data.def
insn-format.def
int_helper.c
internal.h
interrupt.c
ioinst.c
kvm-stub.c
kvm.c s390x/kvm: enable AP instruction interpretation for guest 2018-10-12 11:32:18 +02:00
kvm_s390x.h
machine.c
mem_helper.c
misc_helper.c
mmu_helper.c
sigp.c
tcg-stub.c
tcg_s390x.h
trace-events
translate.c