History

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.

Marcelo Tosatti committed 9 years ago

Commit 55dd00a1 parent 6342c504 files · +112 −0Browse files

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

Unified · Split

include/uapi/linux/kvm_para.h+2−0
@@ -14,6 +14,7 @@ · 13 unmodified lines
14#define KVM_EFAULT EFAULT14#define KVM_EFAULT EFAULT
15#define KVM_E2BIG E2BIG15#define KVM_E2BIG E2BIG
16#define KVM_EPERM EPERM16#define KVM_EPERM EPERM
17#define KVM_EOPNOTSUPP 95
17 18
18#define KVM_HC_VAPIC_POLL_IRQ 119#define KVM_HC_VAPIC_POLL_IRQ 1
19#define KVM_HC_MMU_OP 220#define KVM_HC_MMU_OP 2
@@ -23,6 +24,7 @@ · 3 unmodified lines
23#define KVM_HC_MIPS_GET_CLOCK_FREQ 624#define KVM_HC_MIPS_GET_CLOCK_FREQ 6
24#define KVM_HC_MIPS_EXIT_VM 725#define KVM_HC_MIPS_EXIT_VM 7
25#define KVM_HC_MIPS_CONSOLE_OUTPUT 826#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
27#define KVM_HC_CLOCK_PAIRING 9
26 28
27/*29/*
28 * hypercalls use architecture specific30 * hypercalls use architecture specific