KVM: x86: Add supported_vm_types to kvm_caps
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Apr 2024 12:13:18 +0000 (08:13 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Apr 2024 17:08:24 +0000 (13:08 -0400)
commit2a955c4db1dd37ea312e57a3556107cdd4d2538e
tree1e55147604b254c2b7f9749f19288ef14c5b294c
parent517987e3fb1909415b9231ef167e2a79208aaa73
KVM: x86: Add supported_vm_types to kvm_caps

This simplifies the implementation of KVM_CHECK_EXTENSION(KVM_CAP_VM_TYPES),
and also allows the vendor module to specify which VM types are supported.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240404121327.3107131-9-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h