mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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>
This commit is contained in:
parent
28b2dced8b
commit
ff736dba47
|
|
@ -568,8 +568,7 @@ void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm,
|
|||
void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm,
|
||||
uint64_t addr, uint64_t size);
|
||||
bool kvm_cpu_has_ept(void);
|
||||
void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
|
||||
uint32_t eptp_memslot);
|
||||
void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm);
|
||||
void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm);
|
||||
|
||||
#endif /* SELFTEST_KVM_VMX_H */
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ void memstress_setup_ept(struct vmx_pages *vmx, struct kvm_vm *vm)
|
|||
{
|
||||
uint64_t start, end;
|
||||
|
||||
prepare_eptp(vmx, vm, 0);
|
||||
prepare_eptp(vmx, vm);
|
||||
|
||||
/*
|
||||
* Identity map the first 4G and the test region with 1G pages so that
|
||||
|
|
|
|||
|
|
@ -534,8 +534,7 @@ bool kvm_cpu_has_ept(void)
|
|||
return ctrl & SECONDARY_EXEC_ENABLE_EPT;
|
||||
}
|
||||
|
||||
void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
|
||||
uint32_t eptp_memslot)
|
||||
void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm)
|
||||
{
|
||||
TEST_ASSERT(kvm_cpu_has_ept(), "KVM doesn't support nested EPT");
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ static void test_vmx_dirty_log(bool enable_ept)
|
|||
* GPAs as the EPT enabled case.
|
||||
*/
|
||||
if (enable_ept) {
|
||||
prepare_eptp(vmx, vm, 0);
|
||||
prepare_eptp(vmx, vm);
|
||||
nested_map_memslot(vmx, vm, 0);
|
||||
nested_map(vmx, vm, NESTED_TEST_MEM1, GUEST_TEST_MEM, PAGE_SIZE);
|
||||
nested_map(vmx, vm, NESTED_TEST_MEM2, GUEST_TEST_MEM, PAGE_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user