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 <[email protected]> Signed-off-by: Jacob Xu <[email protected]> [reworded commit message; changed <asm/bug.h> to <linux/bug.h>] Signed-off-by: Jim Mattson <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
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)