KVM: Opt out of generic hardware enabling on s390 and PPC
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:09:33 +0000 (23:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:48:37 +0000 (15:48 -0500)
commit441f7bfa99fe2b8a7e504aa72047e20579e88a5d
tree7a5e86743b80ef8048f6c367f63b5b9df4af4a90
parent35774a9f94db08df78e1c08d2b097666deec4e76
KVM: Opt out of generic hardware enabling on s390 and PPC

Allow architectures to opt out of the generic hardware enabling logic,
and opt out on both s390 and PPC, which don't need to manually enable
virtualization as it's always on (when available).

In addition to letting s390 and PPC drop a bit of dead code, this will
hopefully also allow ARM to clean up its related code, e.g. ARM has its
own per-CPU flag to track which CPUs have enable hardware due to the
need to keep hardware enabled indefinitely when pKVM is enabled.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Acked-by: Anup Patel <anup@brainfault.org>
Message-Id: <20221130230934.1014142-50-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/Kconfig
arch/mips/kvm/Kconfig
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/powerpc.c
arch/riscv/kvm/Kconfig
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/Kconfig
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c