KVM: Don't update PPR on any APIC read
authorAvi Kivity <avi@redhat.com>
Sun, 22 Jul 2012 14:41:00 +0000 (17:41 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 30 Jul 2012 23:47:32 +0000 (20:47 -0300)
commit4a4541a40e1fe145c72c4b959fac524a5600d9fb
tree2d9aa84f2cfa1156603d10002b3d21c9b507f70e
parentade38c311a0ad8c32e902fe1d0ae74d0d44bc71e
KVM: Don't update PPR on any APIC read

The current code will update the PPR on almost any APIC read; however
that's only required if we read the PPR.

kvm_update_ppr() shows up in some profiles, albeit with a low usage (~1%).
This should reduce it further (it will still be called during interrupt
processing).

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/lapic.c