History

KVM: x86: Accept KVM_[GS]ET_TSC_KHZ as a VM ioctl.

This sets the default TSC frequency for subsequently created vCPUs.

David Woodhouse committed 4 years ago

Commit ffbb61d1 parent fe3787a4 files · +37 −6Browse files

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

Unified · Split

include/uapi/linux/kvm.h+3−1
@@ -1144,6 +1144,7 @@ struct kvm_ppc_resize_hpt { · 1143 unmodified lines
11441144 #define KVM_CAP_S390_MEM_OP_EXTENSION 211
11451145 #define KVM_CAP_PMU_CAPABILITY 212
11461146 #define KVM_CAP_DISABLE_QUIRKS2 213
1147+#define KVM_CAP_VM_TSC_CONTROL 214
11471148
11481149 #ifdef KVM_CAP_IRQ_ROUTING
11491150
@@ -1471,7 +1472,8 @@ struct kvm_s390_ucas_mapping { · 321 unmodified lines
14711472 #define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
14721473 /* Available with KVM_CAP_PPC_GET_PVINFO */
14731474 #define KVM_PPC_GET_PVINFO _IOW(KVMIO, 0xa1, struct kvm_ppc_pvinfo)
1474−/* Available with KVM_CAP_TSC_CONTROL */
1475+/* Available with KVM_CAP_TSC_CONTROL for a vCPU, or with
1476+* KVM_CAP_VM_TSC_CONTROL to set defaults for a VM */
14751477 #define KVM_SET_TSC_KHZ _IO(KVMIO, 0xa2)
14761478 #define KVM_GET_TSC_KHZ _IO(KVMIO, 0xa3)
14771479 /* Available with KVM_CAP_PCI_2_3 */