Skip to content

Commit 3367eea

Browse files
Jacob Xubonzini
authored andcommitted
KVM: VMX: Fix header file dependency of asm/vmx.h
Include a definition of WARN_ON_ONCE() before using it. Fixes: bb1fcc7 ("KVM: nVMX: Allow L1 to use 5-level page walks for nested EPT") Cc: Sean Christopherson <seanjc@google.com> Signed-off-by: Jacob Xu <jacobhxu@google.com> [reworded commit message; changed <asm/bug.h> to <linux/bug.h>] Signed-off-by: Jim Mattson <jmattson@google.com> Reviewed-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220225012959.1554168-1-jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent e0ceec2 commit 3367eea

File tree

1 file changed

+2
-0
lines changed
  • arch/x86/include/asm

1 file changed

+2
-0
lines changed

arch/x86/include/asm/vmx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414

1515
#include <linux/bitops.h>
16+
#include <linux/bug.h>
1617
#include <linux/types.h>
18+
1719
#include <uapi/asm/vmx.h>
1820
#include <asm/vmxfeatures.h>
1921

0 commit comments

Comments
 (0)