target/s390x/kvm: Simplify the GPRs, ACRs, CRs and prefix synchronization code
commit1d1071665012e378510494e99466c042b3ac1be0
authorThomas Huth <thuth@redhat.com>
Wed, 11 Oct 2023 08:05:38 +0000 (11 10:05 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 20 Oct 2023 05:16:53 +0000 (20 07:16 +0200)
treeae92cde8a7987fa9cf88263fd0879c3be3305887
parentc35a79cbd7dc2ff3435355177290b7b31b589993
target/s390x/kvm: Simplify the GPRs, ACRs, CRs and prefix synchronization code

KVM_SYNC_GPRS, KVM_SYNC_ACRS, KVM_SYNC_CRS and KVM_SYNC_PREFIX are
available since kernel 3.10. Since we already require at least kernel
3.15 in the s390x KVM code, we can also assume that the KVM_CAP_SYNC_REGS
sync code is always possible for these registers, and remove the
related checks and fallbacks via KVM_SET_REGS and KVM_GET_REGS.

Message-ID: <20231011080538.796999-3-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/kvm/kvm.c