projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0c1f1
)
KVM: x86: change in pv_eoi_get_pending() to make code more readable
author
Stephen Zhang
<stephenzhangzsd@gmail.com>
Fri, 18 Dec 2020 07:51:37 +0000
(15:51 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 7 Jan 2021 23:11:29 +0000
(18:11 -0500)
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>
arch/x86/kvm/lapic.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/lapic.c
b/arch/x86/kvm/lapic.c
index 3136e05831cf35f9ac852c5b3dc6d2bd8dac4a4c..78823227c59290aeab5a2b4b9fd35efe9ce7b024 100644
(file)
--- 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)