Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: selftests: use X86_MEMTYPE_WB instead of VMX_BASIC_MEM_TYPE_WB

In 08a7d2525511 ("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: 08a7d2525511 ("tools arch x86: Sync the msr-index.h copy with the
kernel sources")
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Message-ID: <20241106034031.503291-1-jsperbeck@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

John Sperbeck and committed by
Paolo Bonzini
10299cdd 9893deb0

+1 -1
+1 -1
tools/testing/selftests/kvm/lib/x86_64/vmx.c
··· 200 200 if (vmx->eptp_gpa) { 201 201 uint64_t ept_paddr; 202 202 struct eptPageTablePointer eptp = { 203 - .memory_type = VMX_BASIC_MEM_TYPE_WB, 203 + .memory_type = X86_MEMTYPE_WB, 204 204 .page_walk_length = 3, /* + 1 */ 205 205 .ad_enabled = ept_vpid_cap_supported(VMX_EPT_VPID_CAP_AD_BITS), 206 206 .address = vmx->eptp_gpa >> PAGE_SHIFT_4K,