OSDN Git Service

target/s390x/kvm: Refactor AP functionalities
authorSteffen Eiden <seiden@linux.ibm.com>
Wed, 23 Aug 2023 14:22:18 +0000 (16:22 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 12 Sep 2023 09:35:46 +0000 (11:35 +0200)
commit354383c12294f2ee510204cfdc5aaed9f0c42171
tree12e6c0d7750e98c90159f4324c062c3843398776
parentda3c22c74a3c6cbd26df40b2f6798a2d41be80ac
target/s390x/kvm: Refactor AP functionalities

kvm_s390_set_attr() is a misleading name as it only sets attributes for
the KVM_S390_VM_CRYPTO group. Therefore, rename it to
kvm_s390_set_crypto_attr().

Add new functions ap_available() and ap_enabled() to avoid code
duplication later.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Mueller <mimu@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Message-ID: <20230823142219.1046522-5-seiden@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/kvm/kvm.c