KVM: s390: Implement the directed yield (diag 9c) hypervisor call for KVM
authorKonstantin Weitz <WEITZKON@de.ibm.com>
Wed, 25 Apr 2012 13:30:38 +0000 (15:30 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 1 May 2012 00:38:31 +0000 (21:38 -0300)
commit41628d334361670d825fb03c04568f5ef9f084dc
tree88b2eadd0f7de12f1d8b226e4491532b8783ee94
parentb6ddf05ff68d81a7c1736717faf492b70e9bf4f9
KVM: s390: Implement the directed yield (diag 9c) hypervisor call for KVM

This patch implements the directed yield hypercall found on other
System z hypervisors. It delegates execution time to the virtual cpu
specified in the instruction's parameter.

Useful to avoid long spinlock waits in the guest.

Christian Borntraeger: moved common code in virt/kvm/

Signed-off-by: Konstantin Weitz <WEITZKON@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/diag.c
arch/s390/kvm/kvm-s390.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c