]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sthyi: add cache to store hypervisor info
authorQingFeng Hao <haoqf@linux.vnet.ibm.com>
Fri, 29 Sep 2017 10:41:51 +0000 (12:41 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 9 Oct 2017 09:15:35 +0000 (11:15 +0200)
commitd5a4de22db097ba2147f4afc484f48507b77cc6c
tree9b530f5034bad26c87adf9b17919d01438e20e18
parent23fa3e6e0ef1d1695dc0cb504dac554d82eae909
s390/sthyi: add cache to store hypervisor info

STHYI requires extensive locking in the higher hypervisors and is
very computational/memory expensive. Therefore we cache the retrieved
hypervisor info whose valid period is 1s with mutex to allow concurrent
access. rw semaphore can't benefit here due to cache line bounce.

Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kernel/sthyi.c
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c