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

KVM: selftests: Remove the unused argument to prepare_eptp()

eptp_memslot is unused, remove it. No functional change intended.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251021074736.1324328-10-yosry.ahmed@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>

authored by

Yosry Ahmed and committed by
Sean Christopherson
ff736dba 28b2dced

+4 -6
+1 -2
tools/testing/selftests/kvm/include/x86/vmx.h
··· 568 568 void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm, 569 569 uint64_t addr, uint64_t size); 570 570 bool kvm_cpu_has_ept(void); 571 - void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, 572 - uint32_t eptp_memslot); 571 + void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm); 573 572 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm); 574 573 575 574 #endif /* SELFTEST_KVM_VMX_H */
+1 -1
tools/testing/selftests/kvm/lib/x86/memstress.c
··· 63 63 { 64 64 uint64_t start, end; 65 65 66 - prepare_eptp(vmx, vm, 0); 66 + prepare_eptp(vmx, vm); 67 67 68 68 /* 69 69 * Identity map the first 4G and the test region with 1G pages so that
+1 -2
tools/testing/selftests/kvm/lib/x86/vmx.c
··· 534 534 return ctrl & SECONDARY_EXEC_ENABLE_EPT; 535 535 } 536 536 537 - void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, 538 - uint32_t eptp_memslot) 537 + void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm) 539 538 { 540 539 TEST_ASSERT(kvm_cpu_has_ept(), "KVM doesn't support nested EPT"); 541 540
+1 -1
tools/testing/selftests/kvm/x86/vmx_dirty_log_test.c
··· 120 120 * GPAs as the EPT enabled case. 121 121 */ 122 122 if (enable_ept) { 123 - prepare_eptp(vmx, vm, 0); 123 + prepare_eptp(vmx, vm); 124 124 nested_map_memslot(vmx, vm, 0); 125 125 nested_map(vmx, vm, NESTED_TEST_MEM1, GUEST_TEST_MEM, PAGE_SIZE); 126 126 nested_map(vmx, vm, NESTED_TEST_MEM2, GUEST_TEST_MEM, PAGE_SIZE);