summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStephen Zhang <stephenzhangzsd@gmail.com>2020-12-18 15:51:37 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-07 18:11:29 -0500
commitde7860c8a388e4cb757c7da26889b9e2641ffcfe (patch)
tree2fc3d31aa76e4285def5aa8ecbff44c52778de2c /arch
parent7f0c1f1a8277de906a242a6ef907476149f006de (diff)
KVM: x86: change in pv_eoi_get_pending() to make code more readable
Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com> Message-Id: <1608277897-1932-1-git-send-email-stephenzhangzsd@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/lapic.c2
1 files changed, 1 insertions, 1 deletions
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)