KVM: Note down when cpu relax intercepted or pause loop exited
authorRaghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Wed, 18 Jul 2012 13:37:46 +0000 (19:07 +0530)
committerAvi Kivity <avi@redhat.com>
Mon, 23 Jul 2012 10:01:52 +0000 (13:01 +0300)
commit4c088493c8d07e4e27bad53a99dcfdc14cdf45f8
treeb90cfa07e207bb938b6997ae62c774c0624b0dd6
parentf2a743473194a1ad44a85f8b63aeef9d63e5bf47
KVM: Note down when cpu relax intercepted or pause loop exited

Noting pause loop exited vcpu or cpu relax intercepted helps in
filtering right candidate to yield. Wrong selection of vcpu;
i.e., a vcpu that just did a pl-exit or cpu relax intercepted may
contribute to performance degradation.

Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> # on s390x
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c