[PATCH] KVM: VMX: More brown paper bags! NOM NOM NOM
From: Sean Christopherson
Date: Fri Apr 08 2022 - 16:28:24 EST
Add a missing declaration that got dropped between my inline patch[1] and
what actually got posted[2].
In file included from arch/x86/kvm/mmu/mmu.c:4279:
arch/x86/kvm/mmu/paging_tmpl.h: In function ‘ept_walk_addr_generic’:
arch/x86/kvm/mmu/paging_tmpl.h:496:50: error: ‘EPT_VIOLATION_RWX_SHIFT’ undeclared
(first use in this function); did you mean ‘EPT_VIOLATION_RWX_MASK’?
496 | EPT_VIOLATION_RWX_SHIFT;
| ^~~~~~~~~~~~~~~~~~~~~~~
| EPT_VIOLATION_RWX_MASK
[1] https://lore.kernel.org/all/Yj0NOQOYEAG+Dz7+@xxxxxxxxxx
[2] https://lore.kernel.org/all/20220329030108.97341-3-darcy.sh@xxxxxxxxxxxx
Fixes: 68ca1f59584e ("KVM: x86/mmu: Derive EPT violation RWX bits from EPTE RWX bits")
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
Please squash, thanks!
arch/x86/include/asm/vmx.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h
index 46bc7072f6a2..6c343c6a1855 100644
--- a/arch/x86/include/asm/vmx.h
+++ b/arch/x86/include/asm/vmx.h
@@ -543,6 +543,7 @@ enum vm_entry_failure_code {
#define EPT_VIOLATION_ACC_READ_BIT 0
#define EPT_VIOLATION_ACC_WRITE_BIT 1
#define EPT_VIOLATION_ACC_INSTR_BIT 2
+#define EPT_VIOLATION_RWX_SHIFT 3
#define EPT_VIOLATION_GVA_IS_VALID_BIT 7
#define EPT_VIOLATION_GVA_TRANSLATED_BIT 8
#define EPT_VIOLATION_ACC_READ (1 << EPT_VIOLATION_ACC_READ_BIT)
base-commit: 59d9e75d641565603e7c293f4cec182d86db8586
--
2.35.1.1178.g4f1659d476-goog