From: Stephen Zhang Date: Fri, 18 Dec 2020 07:51:37 +0000 (+0800) Subject: KVM: x86: change in pv_eoi_get_pending() to make code more readable X-Git-Tag: howlett/maple/20220722_2~4041^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=de7860c8a388e4cb757c7da26889b9e2641ffcfe;p=users%2Fjedix%2Flinux-maple.git KVM: x86: change in pv_eoi_get_pending() to make code more readable Signed-off-by: Stephen Zhang Message-Id: <1608277897-1932-1-git-send-email-stephenzhangzsd@gmail.com> Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 3136e05831cf..78823227c592 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)