diff options
author | Sean Christopherson <seanjc@google.com> | 2024-03-14 21:54:56 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-04-29 22:50:43 +0300 |
commit | e1ff11525d3c52159a8f262c209e5b9a9ef84918 (patch) | |
tree | 657db1214c9993c2c39026340030fb82551f7714 /tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h | |
parent | 73369acd9fbdf6cbf3029cace886abcc626f46ad (diff) | |
download | linux-e1ff11525d3c52159a8f262c209e5b9a9ef84918.tar.xz |
KVM: selftests: Add global snapshot of kvm_is_forced_emulation_enabled()
Add a global snapshot of kvm_is_forced_emulation_enabled() and sync it to
all VMs by default so that core library code can force emulation, e.g. to
allow for easier testing of the intersections between emulation and other
features in KVM.
Link: https://lore.kernel.org/r/20240314185459.2439072-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h')
-rw-r--r-- | tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h b/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h index 9f1725192aa2..41aba476640a 100644 --- a/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h +++ b/tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h @@ -5,6 +5,8 @@ #include <stdbool.h> #include <stdint.h> +extern bool is_forced_emulation_enabled; + struct kvm_vm_arch { uint64_t c_bit; uint64_t s_bit; |