]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: diag9c (directed yield) forwarding
authorPierre Morel <pmorel@linux.ibm.com>
Mon, 7 Sep 2020 13:26:07 +0000 (15:26 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 9 Mar 2021 09:16:26 +0000 (10:16 +0100)
commit87e28a15c42cc592009c32a8c20e5789059027c2
treed1fecf787809e547737239ce637072fcca473c18
parent38860756a19042c2159178f57ec6e147b13ddfc2
KVM: s390: diag9c (directed yield) forwarding

When we intercept a DIAG_9C from the guest we verify that the
target real CPU associated with the virtual CPU designated by
the guest is running and if not we forward the DIAG_9C to the
target real CPU.

To avoid a diag9c storm we allow a maximal rate of diag9c forwarding.

The rate is calculated as a count per second defined as a new
parameter of the s390 kvm module: diag9c_forwarding_hz .

The default value of 0 is to not forward diag9c.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Link: https://lore.kernel.org/r/1613997661-22525-2-git-send-email-pmorel@linux.ibm.com
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Documentation/virt/kvm/s390-diag.rst
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/smp.h
arch/s390/kernel/smp.c
arch/s390/kvm/diag.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h