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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -14,6 +14,7 @@ · 13 unmodified lines | ||
| 14 | 14 | #define KVM_EFAULT EFAULT |
| 15 | 15 | #define KVM_E2BIG E2BIG |
| 16 | 16 | #define KVM_EPERM EPERM |
| 17 | +#define KVM_EOPNOTSUPP 95 | |
| 17 | 18 | |
| 18 | 19 | #define KVM_HC_VAPIC_POLL_IRQ 1 |
| 19 | 20 | #define KVM_HC_MMU_OP 2 |
| @@ -23,6 +24,7 @@ · 3 unmodified lines | ||
| 23 | 24 | #define KVM_HC_MIPS_GET_CLOCK_FREQ 6 |
| 24 | 25 | #define KVM_HC_MIPS_EXIT_VM 7 |
| 25 | 26 | #define KVM_HC_MIPS_CONSOLE_OUTPUT 8 |
| 27 | +#define KVM_HC_CLOCK_PAIRING 9 | |
| 26 | 28 | |
| 27 | 29 | /* |
| 28 | 30 | * hypercalls use architecture specific |