* [PATCH] KVM: x86: clean up a return
@ 2025-03-24 10:53 Dan Carpenter
2025-04-25 22:09 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2025-03-24 10:53 UTC (permalink / raw)
To: Sean Christopherson
Cc: Paolo Bonzini, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, H. Peter Anvin, kvm, linux-kernel,
kernel-janitors
Returning a literal X86EMUL_CONTINUE is slightly clearer than returning
rc.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
arch/x86/kvm/x86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c734ec0d809b..3e963aeb839e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7998,7 +7998,7 @@ static int emulator_read_write(struct x86_emulate_ctxt *ctxt,
return rc;
if (!vcpu->mmio_nr_fragments)
- return rc;
+ return X86EMUL_CONTINUE;
gpa = vcpu->mmio_fragments[0].gpa;
--
2.47.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: x86: clean up a return
2025-03-24 10:53 [PATCH] KVM: x86: clean up a return Dan Carpenter
@ 2025-04-25 22:09 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2025-04-25 22:09 UTC (permalink / raw)
To: Sean Christopherson, Dan Carpenter
Cc: Paolo Bonzini, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, H. Peter Anvin, kvm, linux-kernel,
kernel-janitors
On Mon, 24 Mar 2025 13:53:39 +0300, Dan Carpenter wrote:
> Returning a literal X86EMUL_CONTINUE is slightly clearer than returning
> rc.
Applied to kvm-x86 misc, thanks!
[1/1] KVM: x86: clean up a return
commit: f804dc6aa20f2ce504456ffbaafc95db646c211b
--
https://github.com/kvm-x86/linux/tree/next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-25 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-24 10:53 [PATCH] KVM: x86: clean up a return Dan Carpenter
2025-04-25 22:09 ` 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®