projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3c045d
)
KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on PPR update
author
Paolo Bonzini
<pbonzini@redhat.com>
Sun, 18 Dec 2016 12:54:58 +0000
(13:54 +0100)
committer
Radim Krčmář
<rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:48:02 +0000
(14:48 +0100)
On PPR update, we set KVM_REQ_EVENT unconditionally anytime PPR is lowered.
But we can take into account IRR here already.
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/lapic.c
b/arch/x86/kvm/lapic.c
index a878e33119a397bcdef40d211ded8eb9e0abb582..457fb206647d5a371c572e3ed0cda6b609ff3bec 100644
(file)
--- a/
arch/x86/kvm/lapic.c
+++ b/
arch/x86/kvm/lapic.c
@@
-607,7
+607,8
@@
static void apic_update_ppr(struct kvm_lapic *apic)
{
u32 ppr;
- if (__apic_update_ppr(apic, &ppr))
+ if (__apic_update_ppr(apic, &ppr) &&
+ apic_has_interrupt_for_ppr(apic, ppr) != -1)
kvm_make_request(KVM_REQ_EVENT, apic->vcpu);
}