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
1414 #define KVM_EFAULT EFAULT
1515 #define KVM_E2BIG E2BIG
1616 #define KVM_EPERM EPERM
17+#define KVM_EOPNOTSUPP 95
1718
1819 #define KVM_HC_VAPIC_POLL_IRQ 1
1920 #define KVM_HC_MMU_OP 2
@@ -23,6 +24,7 @@ · 3 unmodified lines
2324 #define KVM_HC_MIPS_GET_CLOCK_FREQ 6
2425 #define KVM_HC_MIPS_EXIT_VM 7
2526 #define KVM_HC_MIPS_CONSOLE_OUTPUT 8
27+#define KVM_HC_CLOCK_PAIRING 9
2628
2729 /*
2830 * hypercalls use architecture specific