Skip to content

Commit

Permalink
KVM: VMX: Fix header file dependency of asm/vmx.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jacob Xu authored and Paolo Bonzini committed May 19, 2023
1 parent e0ceec2 commit 3367eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/include/asm/vmx.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@


#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/types.h>

#include <uapi/asm/vmx.h>
#include <asm/vmxfeatures.h>

Expand Down

0 comments on commit 3367eea

Please sign in to comment.