]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: Fix references to non-existent KVM_CAP_TRIPLE_FAULT_EVENT
authorSean Christopherson <seanjc@google.com>
Wed, 1 Jun 2022 19:16:53 +0000 (12:16 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 14:14:28 +0000 (10:14 -0400)
The x86-only KVM_CAP_TRIPLE_FAULT_EVENT was (appropriately) renamed to
KVM_CAP_X86_TRIPLE_FAULT_EVENT when the patches were applied, but the
docs and selftests got left behind.  Fix them.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
tools/testing/selftests/kvm/x86_64/triple_fault_event_test.c

index 9cbbfdb663b63f3dbc66415e98c14a089072f8fa..84c486ce6279c1b7879a8488ea7d06d29b2f2c9d 100644 (file)
@@ -1152,7 +1152,7 @@ The following bits are defined in the flags field:
 
 - KVM_VCPUEVENT_VALID_TRIPLE_FAULT may be set to signal that the
   triple_fault_pending field contains a valid state. This bit will
-  be set whenever KVM_CAP_TRIPLE_FAULT_EVENT is enabled.
+  be set whenever KVM_CAP_X86_TRIPLE_FAULT_EVENT is enabled.
 
 ARM64:
 ^^^^^^
@@ -1249,7 +1249,7 @@ can be set in the flags field to signal that the
 exception_has_payload, exception_payload, and exception.pending fields
 contain a valid state and shall be written into the VCPU.
 
-If KVM_CAP_TRIPLE_FAULT_EVENT is enabled, KVM_VCPUEVENT_VALID_TRIPLE_FAULT
+If KVM_CAP_X86_TRIPLE_FAULT_EVENT is enabled, KVM_VCPUEVENT_VALID_TRIPLE_FAULT
 can be set in flags field to signal that the triple_fault field contains
 a valid state and shall be written into the VCPU.
 
index 6e1de0631ce940e9f9f7510ae25a098e63a0f28b..66378140764d35924e8084b679d90ecfe1beb1f1 100644 (file)
@@ -47,7 +47,7 @@ int main(void)
        struct ucall uc;
 
        struct kvm_enable_cap cap = {
-               .cap = KVM_CAP_TRIPLE_FAULT_EVENT,
+               .cap = KVM_CAP_X86_TRIPLE_FAULT_EVENT,
                .args = {1}
        };
 
@@ -56,8 +56,8 @@ int main(void)
                exit(KSFT_SKIP);
        }
 
-       if (!kvm_check_cap(KVM_CAP_TRIPLE_FAULT_EVENT)) {
-               print_skip("KVM_CAP_TRIPLE_FAULT_EVENT not supported");
+       if (!kvm_check_cap(KVM_CAP_X86_TRIPLE_FAULT_EVENT)) {
+               print_skip("KVM_CAP_X86_TRIPLE_FAULT_EVENT not supported");
                exit(KSFT_SKIP);
        }