Skip to content

Commit 10299cd

Browse files
John Sperbeckbonzini
authored andcommitted
KVM: selftests: use X86_MEMTYPE_WB instead of VMX_BASIC_MEM_TYPE_WB
In 08a7d25 ("tools arch x86: Sync the msr-index.h copy with the kernel sources"), VMX_BASIC_MEM_TYPE_WB was removed. Use X86_MEMTYPE_WB instead. Fixes: 08a7d25 ("tools arch x86: Sync the msr-index.h copy with the kernel sources") Signed-off-by: John Sperbeck <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 9893deb commit 10299cd

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/kvm/lib/x86_64

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/lib/x86_64/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static inline void init_vmcs_control_fields(struct vmx_pages *vmx)
200200
if (vmx->eptp_gpa) {
201201
uint64_t ept_paddr;
202202
struct eptPageTablePointer eptp = {
203-
.memory_type = VMX_BASIC_MEM_TYPE_WB,
203+
.memory_type = X86_MEMTYPE_WB,
204204
.page_walk_length = 3, /* + 1 */
205205
.ad_enabled = ept_vpid_cap_supported(VMX_EPT_VPID_CAP_AD_BITS),
206206
.address = vmx->eptp_gpa >> PAGE_SHIFT_4K,

0 commit comments

Comments
 (0)