]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Add KVM_CAP_ENABLE_CAP to x86
authorAaron Lewis <aaronlewis@google.com>
Mon, 14 Feb 2022 21:29:51 +0000 (21:29 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Feb 2022 14:52:50 +0000 (09:52 -0500)
commit94b59f3c1941013f1059317e471c06a8ca60478c
tree74c97683ef2e7be02e2fecb03b559ef1e0085a50
parent9d0055ac0e414d7a7f593c5070f5dd7681aa5f7f
KVM: x86: Add KVM_CAP_ENABLE_CAP to x86

Follow the precedent set by other architectures that support the VCPU
ioctl, KVM_ENABLE_CAP, and advertise the VM extension, KVM_CAP_ENABLE_CAP.
This way, userspace can ensure that KVM_ENABLE_CAP is available on a
vcpu before using it.

Fixes: 224b5cd04832 ("kvm/x86: Hyper-V synthetic interrupt controller")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Message-Id: <20220214212950.1776943-1-aaronlewis@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
arch/x86/kvm/x86.c