]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Check for pending events before attempting injection
authorAvi Kivity <avi@redhat.com>
Tue, 27 Jul 2010 09:30:24 +0000 (12:30 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:50 +0000 (10:52 +0200)
commit9c87334d19be8603a74f0e97cdc0ac01b697bdd9
tree7b65456a0527fc3ea753a49c528643fd3b52a7d6
parent2bb2f1aa951ac804fa4c51b9bb4ac3bf74ca0f7b
KVM: Check for pending events before attempting injection

Instead of blindly attempting to inject an event before each guest entry,
check for a possible event first in vcpu->requests.  Sites that can trigger
event injection are modified to set KVM_REQ_EVENT:

- interrupt, nmi window opening
- ppr updates
- i8259 output changes
- local apic irr changes
- rflags updates
- gif flag set
- event set on exit

This improves non-injecting entry performance, and sets the stage for
non-atomic injection.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h