diff options
| author | Paolo Bonzini <[email protected]> | 2024-05-12 07:18:11 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2024-05-12 07:18:11 +0000 |
| commit | dee7ea42a1eba18bf4722a27b10773607c66e21d (patch) | |
| tree | 6c1bc2ff8ea30b350dacb22e58d9f2eae8e15628 /tools/testing/selftests/kvm/kvm_page_table_test.c | |
| parent | Merge tag 'kvm-x86-vmx-6.10' of https://github.com/kvm-x86/linux into HEAD (diff) | |
| parent | KVM: selftests: Drop @selector from segment helpers (diff) | |
| download | kernel-dee7ea42a1eba18bf4722a27b10773607c66e21d.tar.gz kernel-dee7ea42a1eba18bf4722a27b10773607c66e21d.zip | |
Merge tag 'kvm-x86-selftests_utils-6.10' of https://github.com/kvm-x86/linux into HEAD
KVM selftests treewide updates for 6.10:
- Define _GNU_SOURCE for all selftests to fix a warning that was introduced by
a change to kselftest_harness.h late in the 6.9 cycle, and because forcing
every test to #define _GNU_SOURCE is painful.
- Provide a global psuedo-RNG instance for all tests, so that library code can
generate random, but determinstic numbers.
- Use the global pRNG to randomly force emulation of select writes from guest
code on x86, e.g. to help validate KVM's emulation of locked accesses.
- Rename kvm_util_base.h back to kvm_util.h, as the weird layer of indirection
was added purely to avoid manually #including ucall_common.h in a handful of
locations.
- Allocate and initialize x86's GDT, IDT, TSS, segments, and default exception
handlers at VM creation, instead of forcing tests to manually trigger the
related setup.
Diffstat (limited to 'tools/testing/selftests/kvm/kvm_page_table_test.c')
| -rw-r--r-- | tools/testing/selftests/kvm/kvm_page_table_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/kvm/kvm_page_table_test.c b/tools/testing/selftests/kvm/kvm_page_table_test.c index e0ba97ac1c56..dd8b12f626d3 100644 --- a/tools/testing/selftests/kvm/kvm_page_table_test.c +++ b/tools/testing/selftests/kvm/kvm_page_table_test.c @@ -8,9 +8,6 @@ * page size have been pre-allocated on your system, if you are planning to * use hugepages to back the guest memory for testing. */ - -#define _GNU_SOURCE /* for program_invocation_name */ - #include <stdio.h> #include <stdlib.h> #include <time.h> @@ -21,6 +18,7 @@ #include "kvm_util.h" #include "processor.h" #include "guest_modes.h" +#include "ucall_common.h" #define TEST_MEM_SLOT_INDEX 1 |
