diff options
| author | Alexander Potapenko <glider@google.com> | 2024-09-11 15:21:46 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-09-11 14:21:28 +0000 |
| commit | ad0c4256ae1d3f76868800f80d9aa24b24baa6c8 (patch) | |
| tree | dc48a174197837aa411fbf52077d314f3c9be633 | |
| parent | 75aa2725554a1144d20003b40d8c1c0a7f4baa20 (diff) | |
sys/linux/dev_kvm.txt: pass clock IDs to KVM_GET_CLOCK/KVM_SET_CLOCK
See https://docs.kernel.org/virt/kvm/api.html#kvm-get-clock for more info.
| -rw-r--r-- | sys/linux/dev_kvm.txt | 4 | ||||
| -rw-r--r-- | sys/linux/dev_kvm.txt.const | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/linux/dev_kvm.txt b/sys/linux/dev_kvm.txt index 6ce760033..4b4648d6c 100644 --- a/sys/linux/dev_kvm.txt +++ b/sys/linux/dev_kvm.txt @@ -897,9 +897,11 @@ kvm_vcpu_events [ arm64 kvm_vcpu_events_arm64 ] +kvm_clock_flags = KVM_CLOCK_TSC_STABLE, KVM_CLOCK_REALTIME, KVM_CLOCK_HOST_TSC + kvm_clock_data { clock int64 - flags int32 + flags flags[kvm_clock_flags, int32] pad0 int32 realtime int64 host_tsc int64 diff --git a/sys/linux/dev_kvm.txt.const b/sys/linux/dev_kvm.txt.const index 44a7e67cf..4d8b7db25 100644 --- a/sys/linux/dev_kvm.txt.const +++ b/sys/linux/dev_kvm.txt.const @@ -107,6 +107,9 @@ KVM_CAP_X86_USER_SPACE_MSR = 188 KVM_CAP_XEN_HVM = 38, arm64:mips64le:ppc64le:s390x:??? KVM_CHECK_EXTENSION = 44547, mips64le:ppc64le:536915459 KVM_CLEAR_DIRTY_LOG = 3222843072 +KVM_CLOCK_HOST_TSC = 8 +KVM_CLOCK_REALTIME = 4 +KVM_CLOCK_TSC_STABLE = 2 KVM_CPUID_FEATURES = 1073741825, arm64:mips64le:ppc64le:s390x:??? KVM_CPUID_FLAG_SIGNIFCANT_INDEX = 1, arm64:mips64le:ppc64le:s390x:??? KVM_CPUID_FLAG_STATEFUL_FUNC = 2, arm64:mips64le:ppc64le:s390x:??? |
