KVM: x86: add VCPU stat for KVM_REQ_EVENT processing
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Dec 2016 15:05:19 +0000 (16:05 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:47:59 +0000 (14:47 +0100)
commit0f1e261ead16ce09169bf2d223d4c8803576f85e
tree763cd3367f54cb645fda4af331247fa24004863b
parent0f89b207b04a1a399e19d35293658e3a571da3d7
KVM: x86: add VCPU stat for KVM_REQ_EVENT processing

This statistic can be useful to estimate the cost of an IRQ injection
scenario, by comparing it with irq_injections.  For example the stat
shows that sti;hlt triggers more KVM_REQ_EVENT than sti;nop.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c