KVM: selftests: Use u64 instead of uint64_tUse u64 instead of uint64_t to make the KVM selftests code more conciseand more similar to the kernel (since selftests are primarily developedby kernel
KVM: selftests: Use u64 instead of uint64_tUse u64 instead of uint64_t to make the KVM selftests code more conciseand more similar to the kernel (since selftests are primarily developedby kernel developers).This commit was generated with the following command: git ls-files tools/testing/selftests/kvm | xargs sed -i 's/uint64_t/u64/g'Then by manually adjusting whitespace to make checkpatch.pl happy.Include <linux/types.h> in include/kvm_util_types.h, iinclude/test_util.h,and include/x86/pmu.h to pick up the tools-defined u64. Arguably, allheaders (especially kvm_util_types.h) should have already been includingstdint.h to get uint64_t from the libc headers, but the missing dependencyonly rears its head once KVM uses u64 instead of uint64_t.No functional change intended.Signed-off-by: David Matlack <dmatlack@google.com>[sean: rename pread_uint64() => pread_u64, expand on types.h include]Link: https://patch.msgid.link/20260420212004.3938325-5-seanjc@google.comSigned-off-by: Sean Christopherson <seanjc@google.com>
show more ...
KVM: selftests: Use gpa_t instead of vm_paddr_tReplace all occurrences of vm_paddr_t with gpa_t to align with KVM codeand with the conversion helpers (e.g. addr_hva2gpa()).This commit was genera
KVM: selftests: Use gpa_t instead of vm_paddr_tReplace all occurrences of vm_paddr_t with gpa_t to align with KVM codeand with the conversion helpers (e.g. addr_hva2gpa()).This commit was generated with the following command: git ls-files tools/testing/selftests/kvm | xargs sed -i 's/vm_paddr_/gpa_/g'Then by manually adjusting whitespace to make checkpatch.pl happy.No functional change intended.Signed-off-by: David Matlack <dmatlack@google.com>[sean: drop bogus changelog blurb about renaming functions]Link: https://patch.msgid.link/20260420212004.3938325-3-seanjc@google.comSigned-off-by: Sean Christopherson <seanjc@google.com>
KVM: selftests: Use gva_t instead of vm_vaddr_tReplace all occurrences of vm_vaddr_t with gva_t to align with KVM codeand with the conversion helpers (e.g. addr_gva2hva()).This commit was genera
KVM: selftests: Use gva_t instead of vm_vaddr_tReplace all occurrences of vm_vaddr_t with gva_t to align with KVM codeand 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, anddropping 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.comSigned-off-by: Sean Christopherson <seanjc@google.com>
KVM: selftests: Add a "struct kvm_mmu_arch arch" member to kvm_mmuAdd an arch structure+field in "struct kvm_mmu" so that architectures cantrack arch-specific information for a given MMU.No func
KVM: selftests: Add a "struct kvm_mmu_arch arch" member to kvm_mmuAdd an arch structure+field in "struct kvm_mmu" so that architectures cantrack arch-specific information for a given MMU.No functional change intended.Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>Link: https://patch.msgid.link/20251230230150.4150236-9-seanjc@google.comSigned-off-by: Sean Christopherson <seanjc@google.com>
KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directoriesUse the kernel's canonical $(ARCH) paths instead of the raw target triplefor KVM selftests directories. KVM selftests are
KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directoriesUse the kernel's canonical $(ARCH) paths instead of the raw target triplefor KVM selftests directories. KVM selftests are quite nearly the onlyplace in the entire kernel that using the target triple for directories,tools/testing/selftests/drivers/s390x being the lone holdout.Using the kernel's preferred nomenclature eliminates the minor, butannoying, friction of having to translate to KVM's selftests directories,e.g. for pattern matching, opening files, running selftests, etc.Opportunsitically delete file comments that reference the full path of thefile, as they are obviously prone to becoming stale, and serve no knownpurpose.Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>Acked-by: Andrew Jones <ajones@ventanamicro.com>Link: https://lore.kernel.org/r/20241128005547.4077116-16-seanjc@google.comSigned-off-by: Sean Christopherson <seanjc@google.com>