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>
Showing
- arch/s390/include/asm/kvm_host.h 1 addition, 0 deletionsarch/s390/include/asm/kvm_host.h
- arch/s390/kvm/diag.c 25 additions, 0 deletionsarch/s390/kvm/diag.c
- arch/s390/kvm/kvm-s390.c 1 addition, 0 deletionsarch/s390/kvm/kvm-s390.c
- include/linux/kvm_host.h 1 addition, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 26 additions, 16 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment