diff options
author | Sean Christopherson <seanjc@google.com> | 2024-01-10 02:02:47 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-01-31 02:29:44 +0300 |
commit | ab3b6a7de8df00b380fb66a523c79e3b387aa877 (patch) | |
tree | 2d012ee5f35c86405358056dc99d2084e7d04c44 /lib/memory-notifier-error-inject.c | |
parent | cd34fd8c758e968aae15944b1679c974af719648 (diff) | |
download | linux-ab3b6a7de8df00b380fb66a523c79e3b387aa877.tar.xz |
KVM: selftests: Add a forced emulation variation of KVM_ASM_SAFE()
Add KVM_ASM_SAFE_FEP() to allow forcing emulation on an instruction that
might fault. Note, KVM skips RIP past the FEP prefix before injecting an
exception, i.e. the fixup needs to be on the instruction itself. Do not
check for FEP support, that is firmly the responsibility of whatever code
wants to use KVM_ASM_SAFE_FEP().
Sadly, chaining variadic arguments that contain commas doesn't work, thus
the unfortunate amount of copy+paste.
Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-28-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions