mirror-linux/tools/testing/selftests/kvm/include
Ivan Orlov 62e41f6b4f KVM: selftests: Add test case for MMIO during vectoring on x86
Extend the 'set_memory_region_test' with an x86-only test case which
covers emulated MMIO during event vectoring error handling. The test case

1) Sets an IDT descriptor base to point to an MMIO address
2) Generates a #GP in the guest
3) Verifies userspace gets the correct exit reason, suberror code, and
   GPA in internal.data[3]

Opportunistically add a definition for a non-canonical address to
processor.h so that the source of the #GP is somewhat self-documenting,
and so that future tests don't have to reinvent the wheel.

Signed-off-by: Ivan Orlov <iorlov@amazon.com>
Link: https://lore.kernel.org/r/20241217181458.68690-8-iorlov@amazon.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
2024-12-18 15:14:47 -08:00
..
arm64 KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
riscv KVM: riscv: selftests: Add a test for PMU snapshot functionality 2024-04-26 13:14:10 +05:30
s390 KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
x86 KVM: selftests: Add test case for MMIO during vectoring on x86 2024-12-18 15:14:47 -08:00
guest_modes.h KVM: selftests: arm64: Determine max ipa size per-page size 2023-11-27 15:03:50 +00:00
kvm_test_harness.h KVM: selftests: Add a macro to define a test with one vcpu 2024-02-28 20:58:12 +00:00
kvm_util.h KVM: selftests: Assert that vcpu_{g,s}et_reg() won't truncate 2024-12-18 14:14:53 -08:00
kvm_util_types.h KVM: sefltests: Add kvm_util_types.h to hold common types, e.g. vm_vaddr_t 2024-04-29 12:54:16 -07:00
memstress.h KVM: selftests: Provide a global pseudo-RNG instance for all tests 2024-04-29 12:50:41 -07:00
numaif.h KVM: selftests: Add missing header file needed by xAPIC IPI tests 2021-02-11 08:02:08 -05:00
sparsebit.h KVM: selftests: Add a macro to iterate over a sparsebit range 2024-02-28 20:58:12 +00:00
test_util.h KVM: selftests: Provide an API for getting a random bool from an RNG 2024-04-29 12:50:42 -07:00
timer_test.h KVM: riscv: selftests: Add sstc timer test 2024-03-06 20:53:29 +05:30
ucall_common.h KVM: selftests: Annotate guest ucall, printf, and assert helpers with __printf() 2023-12-01 08:15:41 -08:00
userfaultfd_util.h KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00