s390x/cpumodel: Set up CPU model for AQIC interception
commit9ef2d19e5f5dfdebc9877c77951c28f25c74e000
authorPierre Morel <pmorel@linux.ibm.com>
Fri, 5 Jul 2019 15:32:49 +0000 (5 17:32 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 8 Jul 2019 10:57:16 +0000 (8 12:57 +0200)
tree0477c0b4943eadec6c18a89dfb8a102699dc6405
parentf5cf94cdabd349eedc6d0fa69ba51ff4d84c2181
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>
target/s390x/cpu_features_def.inc.h
target/s390x/cpu_models.c
target/s390x/gen-features.c