summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/include/x86/kvm_util_arch.h
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2026-04-20 14:19:46 -0700
committerSean Christopherson <seanjc@google.com>2026-04-20 14:54:16 -0700
commit5567fc9dcd7ed46678cd68e6ca0662331d42f0ac (patch)
tree1e221811d576399e4ecfad8b2064999b871f5089 /tools/testing/selftests/kvm/include/x86/kvm_util_arch.h
parent6b802031877a995456c528095c41d1948546bf45 (diff)
downloadlinux-next-5567fc9dcd7ed46678cd68e6ca0662331d42f0ac.tar.gz
linux-next-5567fc9dcd7ed46678cd68e6ca0662331d42f0ac.zip
KVM: selftests: Use gva_t instead of vm_vaddr_t
Replace all occurrences of vm_vaddr_t with gva_t to align with KVM code and with the conversion helpers (e.g. addr_gva2hva()). This commit was generated with the following command: git ls-files tools/testing/selftests/kvm | xargs sed -i 's/vm_vaddr_/gva_/g' Then by manually adjusting whitespace to make checkpatch.pl happy, and dropping renames of functions that allocate memory within a given VM. No functional change intended. Signed-off-by: David Matlack <dmatlack@google.com> [sean: drop renames of allocator APIs] Link: https://patch.msgid.link/20260420212004.3938325-2-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/include/x86/kvm_util_arch.h')
-rw-r--r--tools/testing/selftests/kvm/include/x86/kvm_util_arch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/selftests/kvm/include/x86/kvm_util_arch.h b/tools/testing/selftests/kvm/include/x86/kvm_util_arch.h
index be35d26bb320..4c605f624956 100644
--- a/tools/testing/selftests/kvm/include/x86/kvm_util_arch.h
+++ b/tools/testing/selftests/kvm/include/x86/kvm_util_arch.h
@@ -33,9 +33,9 @@ struct kvm_mmu_arch {
struct kvm_mmu;
struct kvm_vm_arch {
- vm_vaddr_t gdt;
- vm_vaddr_t tss;
- vm_vaddr_t idt;
+ gva_t gdt;
+ gva_t tss;
+ gva_t idt;
uint64_t c_bit;
uint64_t s_bit;