Skip to content

Commit ff736db

Browse files
yosrym93sean-jc
authored andcommitted
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>
1 parent 28b2dce commit ff736db

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

tools/testing/selftests/kvm/include/x86/vmx.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm,
568568
void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm,
569569
uint64_t addr, uint64_t size);
570570
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);
573572
void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm);
574573

575574
#endif /* SELFTEST_KVM_VMX_H */

tools/testing/selftests/kvm/lib/x86/memstress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void memstress_setup_ept(struct vmx_pages *vmx, struct kvm_vm *vm)
6363
{
6464
uint64_t start, end;
6565

66-
prepare_eptp(vmx, vm, 0);
66+
prepare_eptp(vmx, vm);
6767

6868
/*
6969
* Identity map the first 4G and the test region with 1G pages so that

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ bool kvm_cpu_has_ept(void)
534534
return ctrl & SECONDARY_EXEC_ENABLE_EPT;
535535
}
536536

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)
539538
{
540539
TEST_ASSERT(kvm_cpu_has_ept(), "KVM doesn't support nested EPT");
541540

tools/testing/selftests/kvm/x86/vmx_dirty_log_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void test_vmx_dirty_log(bool enable_ept)
120120
* GPAs as the EPT enabled case.
121121
*/
122122
if (enable_ept) {
123-
prepare_eptp(vmx, vm, 0);
123+
prepare_eptp(vmx, vm);
124124
nested_map_memslot(vmx, vm, 0);
125125
nested_map(vmx, vm, NESTED_TEST_MEM1, GUEST_TEST_MEM, PAGE_SIZE);
126126
nested_map(vmx, vm, NESTED_TEST_MEM2, GUEST_TEST_MEM, PAGE_SIZE);

0 commit comments

Comments
 (0)