summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Xu <jacobhxu@google.com>2022-02-25 02:29:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-05-19 19:56:25 +0200
commit3367eeab975145e65136c2d091fe6e0c6cb29636 (patch)
tree98d5db681ac8565b0ab980357076dd64fb35a746
parentKVM: Don't enable hardware after a restart/shutdown is initiated (diff)
downloadlinux-3367eeab975145e65136c2d091fe6e0c6cb29636.tar.xz
linux-3367eeab975145e65136c2d091fe6e0c6cb29636.zip
KVM: VMX: Fix header file dependency of asm/vmx.h
Include a definition of WARN_ON_ONCE() before using it. Fixes: bb1fcc70d98f ("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>
-rw-r--r--arch/x86/include/asm/vmx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h
index 498dc600bd5c..0d02c4aafa6f 100644
--- a/arch/x86/include/asm/vmx.h
+++ b/arch/x86/include/asm/vmx.h
@@ -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>