summaryrefslogtreecommitdiff
path: root/include/uapi/linux/kvm_para.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2017-01-24 20:09:39 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-07 20:16:45 +0300
commit55dd00a73a518281bc846dc5de1a718349431eb2 (patch)
tree13c912f125578744049bf28902e26e5e30b57b66 /include/uapi/linux/kvm_para.h
parent6342c50ad12e8ce0736e722184a7dbdea4a3477f (diff)
downloadlinux-55dd00a73a518281bc846dc5de1a718349431eb2.tar.xz
KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall
Add a hypercall to retrieve the host realtime clock and the TSC value used to calculate that clock read. Used to implement clock synchronization between host and guest. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux/kvm_para.h')
-rw-r--r--include/uapi/linux/kvm_para.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm_para.h b/include/uapi/linux/kvm_para.h
index bf6cd7d5cac2..fed506aeff62 100644
--- a/include/uapi/linux/kvm_para.h
+++ b/include/uapi/linux/kvm_para.h
@@ -14,6 +14,7 @@
#define KVM_EFAULT EFAULT
#define KVM_E2BIG E2BIG
#define KVM_EPERM EPERM
+#define KVM_EOPNOTSUPP 95
#define KVM_HC_VAPIC_POLL_IRQ 1
#define KVM_HC_MMU_OP 2
@@ -23,6 +24,7 @@
#define KVM_HC_MIPS_GET_CLOCK_FREQ 6
#define KVM_HC_MIPS_EXIT_VM 7
#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
+#define KVM_HC_CLOCK_PAIRING 9
/*
* hypercalls use architecture specific