aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2017-06-21 16:01:27 +1000
committerPaul Mackerras <paulus@ozlabs.org>2017-06-22 11:25:31 +1000
commit2ed4f9dd19c0f76f7fb56c4b201696d29149325c (patch)
treedc386c28edb9885280d62e1fb51fe2dd5b693a94 /include/uapi
parentKVM: PPC: Book3S HV: Exit guest upon MCE when FWNMI capability is enabled (diff)
downloadlinux-dev-2ed4f9dd19c0f76f7fb56c4b201696d29149325c.tar.xz
linux-dev-2ed4f9dd19c0f76f7fb56c4b201696d29149325c.zip
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>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 89bc145b4051..36ea74aa3422 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -896,6 +896,7 @@ struct kvm_ppc_resize_hpt {
#define KVM_CAP_X86_GUEST_MWAIT 143
#define KVM_CAP_ARM_USER_IRQ 144
#define KVM_CAP_PPC_FWNMI 145
+#define KVM_CAP_PPC_SMT_POSSIBLE 146
#ifdef KVM_CAP_IRQ_ROUTING