* [PATCH] KVM: x86: change in pv_eoi_get_pending() to make code more readable
@ 2020-12-18 7:51 Stephen Zhang
2020-12-21 18:30 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Zhang @ 2020-12-18 7:51 UTC (permalink / raw)
To: pbonzini, seanjc, vkuznets, wanpengli, jmattson, joro, tglx,
mingo, bp, x86, hpa
Cc: kvm, linux-kernel, Stephen Zhang
Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
---
arch/x86/kvm/lapic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 3136e05..7882322 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -674,7 +674,7 @@ static bool pv_eoi_get_pending(struct kvm_vcpu *vcpu)
(unsigned long long)vcpu->arch.pv_eoi.msr_val);
return false;
}
- return val & 0x1;
+ return val & KVM_PV_EOI_ENABLED;
}
static void pv_eoi_set_pending(struct kvm_vcpu *vcpu)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: x86: change in pv_eoi_get_pending() to make code more readable
2020-12-18 7:51 [PATCH] KVM: x86: change in pv_eoi_get_pending() to make code more readable Stephen Zhang
@ 2020-12-21 18:30 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-12-21 18:30 UTC (permalink / raw)
To: Stephen Zhang, seanjc, vkuznets, wanpengli, jmattson, joro, tglx,
mingo, bp, x86, hpa
Cc: kvm, linux-kernel
On 18/12/20 08:51, Stephen Zhang wrote:
> Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
> ---
> arch/x86/kvm/lapic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
> index 3136e05..7882322 100644
> --- a/arch/x86/kvm/lapic.c
> +++ b/arch/x86/kvm/lapic.c
> @@ -674,7 +674,7 @@ static bool pv_eoi_get_pending(struct kvm_vcpu *vcpu)
> (unsigned long long)vcpu->arch.pv_eoi.msr_val);
> return false;
> }
> - return val & 0x1;
> + return val & KVM_PV_EOI_ENABLED;
> }
>
> static void pv_eoi_set_pending(struct kvm_vcpu *vcpu)
>
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-21 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 7:51 [PATCH] KVM: x86: change in pv_eoi_get_pending() to make code more readable Stephen Zhang
2020-12-21 18:30 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).