OSDN Git Service

target/s390x: AP-passthrough for PV guests
authorSteffen Eiden <seiden@linux.ibm.com>
Wed, 23 Aug 2023 14:22:19 +0000 (16:22 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 12 Sep 2023 09:35:46 +0000 (11:35 +0200)
commit5ac951519c23d9eaf7dc9e2dcbcbc7d9a745ffe7
tree1b4b553f8ff1f2247e86f2cee25d8e087025a374
parent354383c12294f2ee510204cfdc5aaed9f0c42171
target/s390x: AP-passthrough for PV guests

Enabling AP-passthrough(AP-pt) for PV-guest by using the new CPU
features for PV-AP-pt of KVM.

As usual QEMU first checks which CPU features are available and then
sets them if available and selected by user. An additional check is done
to verify that PV-AP can only be enabled if "regular" AP-pt is enabled
as well. Note that KVM itself does not enforce this restriction.

Reviewed-by: Michael Mueller <mimu@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Message-ID: <20230823142219.1046522-6-seiden@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu_features.h
target/s390x/cpu_features_def.h.inc
target/s390x/cpu_models.c
target/s390x/gen-features.c
target/s390x/kvm/kvm.c