lkml.org 
[lkml]   [2012]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] kvm: svm: count all irq windows exit
    From
    Date
    Also count the exits of fast-path.

    Signed-off-by: Jason Wang <jasowang@redhat.com>
    ---
    arch/x86/kvm/svm.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
    index 53efd59..5ef7233 100644
    --- a/arch/x86/kvm/svm.c
    +++ b/arch/x86/kvm/svm.c
    @@ -3235,6 +3235,7 @@ static int interrupt_window_interception(struct vcpu_svm *svm)
    svm_clear_vintr(svm);
    svm->vmcb->control.int_ctl &= ~V_IRQ_MASK;
    mark_dirty(svm->vmcb, VMCB_INTR);
    + ++svm->vcpu.stat.irq_window_exits;
    /*
    * If the user space waits to inject interrupts, exit as soon as
    * possible
    @@ -3242,7 +3243,6 @@ static int interrupt_window_interception(struct vcpu_svm *svm)
    if (!irqchip_in_kernel(svm->vcpu.kvm) &&
    kvm_run->request_interrupt_window &&
    !kvm_cpu_has_interrupt(&svm->vcpu)) {
    - ++svm->vcpu.stat.irq_window_exits;
    kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN;
    return 0;
    }


    \
     
     \ /
      Last update: 2012-03-08 11:15    [W:0.018 / U:18.324 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site