]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: guest support for topology function
authorPierre Morel <pmorel@linux.ibm.com>
Thu, 14 Jul 2022 10:18:23 +0000 (12:18 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 20 Jul 2022 08:57:36 +0000 (10:57 +0200)
commit60ee0e28fda25ff80a9eae1ed27e443a9ad60b00
tree11defb5fa0332ff31d98b40e37f21cc20a0a48c6
parent92e89bbd2d6f35603012803c923a67692bd57fd0
KVM: s390: guest support for topology function

We report a topology change to the guest for any CPU hotplug.

The reporting to the guest is done using the Multiprocessor
Topology-Change-Report (MTCR) bit of the utility entry in the guest's
SCA which will be cleared during the interpretation of PTF.

On every vCPU creation we set the MCTR bit to let the guest know the
next time it uses the PTF with command 2 instruction that the
topology changed and that it should use the STSI(15.1.x) instruction
to get the topology details.

STSI(15.1.x) gives information on the CPU configuration topology.
Let's accept the interception of STSI with the function code 15 and
let the userland part of the hypervisor handle it when userland
supports the CPU Topology facility.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20220714101824.101601-2-pmorel@linux.ibm.com
Message-Id: <20220714101824.101601-2-pmorel@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/kvm/vsie.c