diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2008-09-26 03:30:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:51:39 -0500 |
commit | a26bf12afb608eb5a96192eaee35fc08ffbf85aa (patch) | |
tree | f48e5dea710148abd7f2245f3dd58485da267156 | |
parent | 2786b014ec893c301ea52ef9962e7cc60f89f9b3 (diff) |
KVM: VMX: include all IRQ window exits in statistics
irq_window_exits only tracks IRQ window exits due to user space
requests, nmi_window_exits include all exits. The latter makes more
sense, so let's adjust irq_window_exits accounting.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index a4018b01e1f9..ac3453799c17 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -2767,6 +2767,7 @@ static int handle_interrupt_window(struct kvm_vcpu *vcpu, | |||
2767 | vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); | 2767 | vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, cpu_based_vm_exec_control); |
2768 | 2768 | ||
2769 | KVMTRACE_0D(PEND_INTR, vcpu, handler); | 2769 | KVMTRACE_0D(PEND_INTR, vcpu, handler); |
2770 | ++vcpu->stat.irq_window_exits; | ||
2770 | 2771 | ||
2771 | /* | 2772 | /* |
2772 | * If the user space waits to inject interrupts, exit as soon as | 2773 | * If the user space waits to inject interrupts, exit as soon as |
@@ -2775,7 +2776,6 @@ static int handle_interrupt_window(struct kvm_vcpu *vcpu, | |||
2775 | if (kvm_run->request_interrupt_window && | 2776 | if (kvm_run->request_interrupt_window && |
2776 | !vcpu->arch.irq_summary) { | 2777 | !vcpu->arch.irq_summary) { |
2777 | kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; | 2778 | kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; |
2778 | ++vcpu->stat.irq_window_exits; | ||
2779 | return 0; | 2779 | return 0; |
2780 | } | 2780 | } |
2781 | return 1; | 2781 | return 1; |