Skip to contentSkip to conversation

KVM: VMX: More brown paper bags! NOM NOM NOM

PATCH New Sean Christopherson 1 participant 1 message Apr 8, 2022

Subsystems (3)
lore
Share & tools
lore

Sean Christopherson

author maintainer
#0 lore raw

PATCH 1/1 KVM: VMX: More brown paper bags! NOM NOM NOM

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/[email protected]
[2] https://lore.kernel.org/all/[email protected]

Fixes 68ca1f59584e ("KVM: x86/mmu: Derive EPT violation RWX bits from EPTE RWX bits")

---

Please squash, thanks!

 arch/x86/include/asm/vmx.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/vmx.h +1 -0
index 46bc7072f6a2..6c343c6a1855 100644
@@ -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

Signature · 1 line
2.35.1.1178.g4f1659d476-goog