Skip to content

Commit 89ea56a

Browse files
committed
KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep()
Use KVM_ASM_SAFE_FEP, not simply KVM_ASM_SAFE, for kvm_asm_safe_fep(), as the non-FEP version doesn't force emulation (stating the obvious). Note, there are currently no users of kvm_asm_safe_fep(). Fixes: ab3b6a7 ("KVM: selftests: Add a forced emulation variation of KVM_ASM_SAFE()") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent a64dcfb commit 89ea56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/include/x86/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ void vm_install_exception_handler(struct kvm_vm *vm, int vector,
12441244
uint64_t ign_error_code; \
12451245
uint8_t vector; \
12461246
\
1247-
asm volatile(KVM_ASM_SAFE(insn) \
1247+
asm volatile(KVM_ASM_SAFE_FEP(insn) \
12481248
: KVM_ASM_SAFE_OUTPUTS(vector, ign_error_code) \
12491249
: inputs \
12501250
: KVM_ASM_SAFE_CLOBBERS); \

0 commit comments

Comments
 (0)