#
76ffc801 |
| 04-Apr-2023 |
Mathias Krause <minipli@grsecurity.net> |
x86/access: Add forced emulation support
Add support to force access tests to be handled by the emulator, if supported by KVM. Due to emulation being rather slow, make the forced emulation nodefaul
x86/access: Add forced emulation support
Add support to force access tests to be handled by the emulator, if supported by KVM. Due to emulation being rather slow, make the forced emulation nodefault, i.e. a manual-only testcase. Note, "manual" just means the test runner needs to specify a specific group(s), i.e. the test is still easy to enable in CI for compatible setups.
Manually check for FEP support in the test instead of using the "check" option to query the module param, as any non-zero force_emulation_prefix value enables FEP (see KVM commit d500e1ed3dc8 ("KVM: x86: Allow clearing RFLAGS.RF on forced emulation to test code #DBs") and scripts/runtime.bash only supports checking for a single value.
Defer enabling FEP for the nested VMX variants to a future patch. KVM has a bug related to emulating NOP (yes, NOP) for L2, and the nVMX varaints will require additional massaging to propagate the "allow emulation" flag.
Signed-off-by: Mathias Krause <minipli@grsecurity.net> [sean: make generic fep testcase nodefault instead of impossible] Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20230404165341.163500-6-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
26a9b17e |
| 04-Apr-2023 |
Sean Christopherson <seanjc@google.com> |
x86/access: Use standard pass/fail reporting machinery
Use the standard reporting machinery in the access test so that future changes to skip variants of the test actually get reported as SKIPs.
Si
x86/access: Use standard pass/fail reporting machinery
Use the standard reporting machinery in the access test so that future changes to skip variants of the test actually get reported as SKIPs.
Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20230404165341.163500-5-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
88c78d29 |
| 04-Apr-2023 |
Sean Christopherson <seanjc@google.com> |
x86/access: Replace spaces with tabs in access_test.c
Replace spaces with tabs in the access test wrapper to adhere to the preferred style.
No functional change intended.
Signed-off-by: Sean Chris
x86/access: Replace spaces with tabs in access_test.c
Replace spaces with tabs in the access test wrapper to adhere to the preferred style.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20230404165341.163500-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
1399f7f7 |
| 14-Mar-2022 |
Andrew Jones <drjones@redhat.com> |
Merge branch 'misc/queue' into 'master'
misc/queue: Rename TARGET_EFI to CONFIG_EFI
See merge request kvm-unit-tests/kvm-unit-tests!26
|
#
c98ce6e0 |
| 23-Feb-2022 |
Alexandru Elisei <alexandru.elisei@arm.com> |
Rename --target-efi to --[enable|disable]-efi
Rename --target-efi to --enable-efi to make it similar to autoconf's configure script options. Add the --disable-efi option for symmetry and to make it
Rename --target-efi to --[enable|disable]-efi
Rename --target-efi to --enable-efi to make it similar to autoconf's configure script options. Add the --disable-efi option for symmetry and to make it easy for the option to change from disabled by default to enabled by default in the future.
Suggested-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
92a6c9b9 |
| 18-Jan-2022 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge remote-tracking branch 'upstream/uefi' into master
Merge UEFI test support into the master branch.
|
#
22866f1e |
| 10-Nov-2021 |
Aaron Lewis <aaronlewis@google.com> |
x86: Clean up the global, page_table_levels, in access.c
Remove the global, page table levels, from access.c and store it in the test struct ac_test_t instead.
Signed-off-by: Aaron Lewis <aaronlewi
x86: Clean up the global, page_table_levels, in access.c
Remove the global, page table levels, from access.c and store it in the test struct ac_test_t instead.
Signed-off-by: Aaron Lewis <aaronlewis@google.com> Message-Id: <20211110212001.3745914-14-aaronlewis@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
0f10d9ae |
| 10-Nov-2021 |
Aaron Lewis <aaronlewis@google.com> |
x86: Prepare access test for running in L2
Move main out of access.c in preparation for running the test in L2. This allows access.c to be used as common code that will be included in a nested tests
x86: Prepare access test for running in L2
Move main out of access.c in preparation for running the test in L2. This allows access.c to be used as common code that will be included in a nested tests later in this series.
Signed-off-by: Aaron Lewis <aaronlewis@google.com> Message-Id: <20211110212001.3745914-12-aaronlewis@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|