[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241108161312.28365-1-jgross@suse.com>
Date: Fri, 8 Nov 2024 17:13:12 +0100
From: Juergen Gross <jgross@...e.com>
To: linux-kernel@...r.kernel.org,
x86@...nel.org,
kvm@...r.kernel.org
Cc: Juergen Gross <jgross@...e.com>,
Sean Christopherson <seanjc@...gle.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>
Subject: [PATCH] KVM/x86: don't use a literal 1 instead of RET_PF_RETRY
Using a literal 1 instead of RET_PF_RETRY is not nice, fix that.
Signed-off-by: Juergen Gross <jgross@...e.com>
---
arch/x86/kvm/mmu/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 8e853a5fc867..d4a9f845b373 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -6157,7 +6157,7 @@ int noinline kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, u64 err
vcpu->stat.pf_spurious++;
if (r != RET_PF_EMULATE)
- return 1;
+ return RET_PF_RETRY;
emulate:
return x86_emulate_instruction(vcpu, cr2_or_gpa, emulation_type, insn,
--
2.43.0
Powered by blists - more mailing lists