History

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.

Paul Mackerras committed 9 years ago

Commit 2ed4f9d1 parent e20bbd33 files · +22 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -896,6 +896,7 @@ struct kvm_ppc_resize_hpt { · 895 unmodified lines
896896 #define KVM_CAP_X86_GUEST_MWAIT 143
897897 #define KVM_CAP_ARM_USER_IRQ 144
898898 #define KVM_CAP_PPC_FWNMI 145
899+#define KVM_CAP_PPC_SMT_POSSIBLE 146
899900
900901 #ifdef KVM_CAP_IRQ_ROUTING
901902

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t