]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add capability to report possible virtual SMT modes
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 21 Jun 2017 06:01:27 +0000 (16:01 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 22 Jun 2017 01:25:31 +0000 (11:25 +1000)
commit7a2565e1cca949ce2513bb09c33ebfc566de67be
treedc386c28edb9885280d62e1fb51fe2dd5b693a94
parent6f11c9beaf417857e7c5675e4f3f15e48f2e5b9a
KVM: PPC: Book3S HV: Add capability to report possible virtual SMT modes

Now that userspace can set the virtual SMT mode by enabling the
KVM_CAP_PPC_SMT capability, it is useful for userspace to be able
to query the set of possible virtual SMT modes.  This provides a
new capability, KVM_CAP_PPC_SMT_POSSIBLE, to provide this
information.  The return value is a bitmap of possible modes, with
bit N set if virtual SMT mode 2^N is available.  That is, 1 indicates
SMT1 is available, 2 indicates that SMT2 is available, 3 indicates
that both SMT1 and SMT2 are available, and so on.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Documentation/virtual/kvm/api.txt
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h