KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep()
Sean Christopherson
maintainerPATCH 1/1 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 ab3b6a7de8df ("KVM: selftests: Add a forced emulation variation of KVM_ASM_SAFE()")
Signed-off-by Sean Christopherson <[email protected]>
--- tools/testing/selftests/kvm/include/x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/kvm/include/x86/processor.h +1 -1
@@ -1251,7 +1251,7 @@ void vm_install_exception_handler(struct kvm_vm *vm, int vector,uint64_t ign_error_code; \uint8_t vector; \ \ - asm volatile(KVM_ASM_SAFE(insn) \ + asm volatile(KVM_ASM_SAFE_FEP(insn) \ : KVM_ASM_SAFE_OUTPUTS(vector, ign_error_code) \ : inputs \ : KVM_ASM_SAFE_CLOBBERS); \
base-commit: eb723766b1030a23c38adf2348b7c3d1409d11f0
Signature · 1 line
2.48.1.262.g85cc9f2d1e-goog
Sean Christopherson
maintainerQuoted 3 lines · Sean Christopherson
Use
KVM_ASM_SAFE_FEP, not simplyKVM_ASM_SAFE, forkvm_asm_safe_fep(), as the non-FEP version doesn't force emulation (stating the obvious). Note, there are currently no users ofkvm_asm_safe_fep().
Applied to kvm-x86 selftests, thanks!
[1/1] KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep()
https://github.com/kvm-x86/linux/commit/89ea56a4043a