diff options
| author | Yosry Ahmed <yosry.ahmed@linux.dev> | 2025-10-21 07:47:21 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-11-20 16:19:56 -0800 |
| commit | 28b2dced8ba4604b2cdd97c11d7fbd0fa99f9835 (patch) | |
| tree | 1965ac783a6f64e41d80155af65152a502fc899c /tools/testing/selftests/kvm/x86/hyperv_features.c | |
| parent | 3c40777f0ed81e8b8f7047319ad195e407614b69 (diff) | |
KVM: selftests: Stop hardcoding PAGE_SIZE in x86 selftests
Use PAGE_SIZE instead of 4096.
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251021074736.1324328-9-yosry.ahmed@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/hyperv_features.c')
| -rw-r--r-- | tools/testing/selftests/kvm/x86/hyperv_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/x86/hyperv_features.c b/tools/testing/selftests/kvm/x86/hyperv_features.c index 99d327084172..130b9ce7e5dd 100644 --- a/tools/testing/selftests/kvm/x86/hyperv_features.c +++ b/tools/testing/selftests/kvm/x86/hyperv_features.c @@ -94,7 +94,7 @@ static void guest_hcall(vm_vaddr_t pgs_gpa, struct hcall_data *hcall) if (!(hcall->control & HV_HYPERCALL_FAST_BIT)) { input = pgs_gpa; - output = pgs_gpa + 4096; + output = pgs_gpa + PAGE_SIZE; } else { input = output = 0; } |