* [PATCH] KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep()
@ 2025-01-30 16:31 Sean Christopherson
2025-02-15 0:50 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Sean Christopherson @ 2025-01-30 16:31 UTC (permalink / raw)
To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel
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 <seanjc@google.com>
---
tools/testing/selftests/kvm/include/x86/processor.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/include/x86/processor.h b/tools/testing/selftests/kvm/include/x86/processor.h
index e28c3e462fa7..61578f038aff 100644
--- a/tools/testing/selftests/kvm/include/x86/processor.h
+++ b/tools/testing/selftests/kvm/include/x86/processor.h
@@ -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
--
2.48.1.262.g85cc9f2d1e-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep()
2025-01-30 16:31 [PATCH] KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep() Sean Christopherson
@ 2025-02-15 0:50 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2025-02-15 0:50 UTC (permalink / raw)
To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel
On Thu, 30 Jan 2025 08:31:35 -0800, Sean Christopherson wrote:
> 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().
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
--
https://github.com/kvm-x86/linux/tree/next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-15 0:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-30 16:31 [PATCH] KVM: selftests: Actually emit forced emulation prefix for kvm_asm_safe_fep() Sean Christopherson
2025-02-15 0:50 ` Sean Christopherson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®