qemu-e2k/target/s390x
Pierre Morel 9ef2d19e5f s390x/cpumodel: Set up CPU model for AQIC interception
Let's add support for the AP-Queue interruption facility to the CPU
model.

The S390_FEAT_AP_QUEUE_INTERRUPT_CONTROL, CPU facility indicates
whether the PQAP instruction with the AQIC command is available
to the guest.
This feature will be enabled only if the AP instructions are
available on the linux host and AQIC facility is installed on
the host.

This feature must be turned on from userspace to intercept AP
instructions on the KVM guest. The QEMU command line to turn
this feature on looks something like this:

    qemu-system-s390x ... -cpu xxx,apqi=on ...
or
    ... -cpu host

Right now AP pass-through devices do not support migration,
which means that we do not have to take care of migrating
the interrupt data:
virsh migrate apguest --live qemu+ssh://root@target.lan/system
error: Requested operation is not valid: domain has assigned non-USB host devices

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[rebase to newest qemu and fixup description]
Message-Id: <20190705153249.12525-1-borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2019-07-08 12:57:16 +02:00
..
Makefile.objs s390x/tcg: Implement VECTOR FP ADD 2019-06-07 14:53:25 +02:00
arch_dump.c
cc_helper.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
cpu-param.h tcg: Split out target/arch/cpu-param.h 2019-06-10 07:03:34 -07:00
cpu-qom.h
cpu.c hw/s390x: Replace global smp variables with machine smp properties 2019-07-05 17:08:03 -03:00
cpu.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
cpu_features.c s390x/cpumodel: Rework CPU feature definition 2019-06-21 15:26:53 +02:00
cpu_features.h
cpu_features_def.h s390x/cpumodel: Rework CPU feature definition 2019-06-21 15:26:53 +02:00
cpu_features_def.inc.h s390x/cpumodel: Set up CPU model for AQIC interception 2019-07-08 12:57:16 +02:00
cpu_models.c s390x/cpumodel: Set up CPU model for AQIC interception 2019-07-08 12:57:16 +02:00
cpu_models.h
crypto_helper.c
diag.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
excp_helper.c hw/s390x: Replace global smp variables with machine smp properties 2019-07-05 17:08:03 -03:00
fpu_helper.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
gdbstub.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
gen-features.c s390x/cpumodel: Set up CPU model for AQIC interception 2019-07-08 12:57:16 +02:00
helper.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
helper.h s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE 2019-06-07 14:53:26 +02:00
insn-data.def s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE 2019-06-07 14:53:26 +02:00
insn-format.def
int_helper.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
internal.h s390x/tcg: Export float_comp_to_cc() and float(32|64|128)_dcmask() 2019-06-07 14:53:25 +02:00
interrupt.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
ioinst.c
kvm-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
kvm.c hw/s390x: Replace global smp variables with machine smp properties 2019-07-05 17:08:03 -03:00
kvm_s390x.h
machine.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
mem_helper.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
misc_helper.c target/s390x: Use env_cpu, env_archcpu 2019-06-10 07:03:42 -07:00
mmu_helper.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
s390-tod.h
sigp.c qapi: Split machine.json off misc.json 2019-07-02 13:37:00 +02:00
tcg-stub.c
tcg_s390x.h s390x/tcg: Introduce tcg_s390_vector_exception() 2019-06-07 14:53:25 +02:00
trace-events
translate.c
translate_vx.inc.c s390x/tcg: Use tcg_gen_gvec_bitsel for VECTOR SELECT 2019-06-07 14:53:26 +02:00
vec.h
vec_fpu_helper.c s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE 2019-06-07 14:53:26 +02:00
vec_helper.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
vec_int_helper.c
vec_string_helper.c