Skip to content

Commit a062dad

Browse files
sean-jcbonzini
authored andcommitted
KVM: VMX: Use vmread_error() to report VM-Fail in "goto" path
Use vmread_error() to report VM-Fail on VMREAD for the "asm goto" case, now that trampoline case has yet another wrapper around vmread_error() to play nice with instrumentation. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20230721235637.2345403-3-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent c20d403 commit a062dad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/x86/kvm/vmx/vmx_ops.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ static __always_inline unsigned long __vmcs_readl(unsigned long field)
108108

109109
do_fail:
110110
instrumentation_begin();
111-
WARN_ONCE(1, KBUILD_MODNAME ": vmread failed: field=%lx\n", field);
112-
pr_warn_ratelimited(KBUILD_MODNAME ": vmread failed: field=%lx\n", field);
111+
vmread_error(field);
113112
instrumentation_end();
114113
return 0;
115114

0 commit comments

Comments
 (0)