]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge tag 'kvm-x86-selftests_kernel_types-7.1' of https://github.com/kvm-x86/linux...
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Apr 2026 08:24:41 +0000 (04:24 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Apr 2026 08:24:41 +0000 (04:24 -0400)
commit39f1c201b93f4ff71631bac72cff6eb155f976a4
treef90db9f427fa7a64674f3edfcf23739e9a2b6593
parent909eac682c984c3cb02485d5950c2a8d573c1667
parentdfd2a8b07c6cc94145e11d87d2f11137d6444854
Merge tag 'kvm-x86-selftests_kernel_types-7.1' of https://github.com/kvm-x86/linux into HEAD

KVM selftests type renames for 7.1

Renames types across all KVM selftests to more closely align with types used
in the kernel:

  vm_vaddr_t -> gva_t
  vm_paddr_t -> gpa_t

  uint64_t -> u64
  uint32_t -> u32
  uint16_t -> u16
  uint8_t  -> u8

  int64_t -> s64
  int32_t -> s32
  int16_t -> s16
  int8_t  -> s8

Using the kernel's preferred types eliminates a source of friction for many
contributors, as the majority of KVM selftests contributions come from kernel
developers.  The kernel names are also shorter, which allows for more concise
code, and in any many cases eliminates newlines thanks to shorter types and
parameter names.

Rename variables and parameters as well as types, e.g. gpa instead of paddr,
to again align with the kernel, and in a few cases to remove ambiguity, e.g.
where paddr is used to refer to a _host_ physical address.
tools/testing/selftests/kvm/arm64/set_id_regs.c
tools/testing/selftests/kvm/steal_time.c