acrn-hypervisor/hypervisor/arch/x86
Jian Jun Chen 31b8b698ce hv: TLFS: Add tsc_offset support for reference time
TLFS spec defines that when a VM is created, the value of
HV_X64_MSR_TIME_REF_COUNT is set to zero. Now tsc_offset is not
supported properly, so guest get a drifted reference time.

This patch implements tsc_offset. tsc_scale and tsc_offset
are calculated when a VM is launched and are saved in
struct acrn_hyperv of struct acrn_vm.

Tracked-On: #5956
Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2021-04-23 10:48:07 +08:00
..
boot hv: modularization: remove global variable efiloader_sig. 2021-01-27 15:59:47 +08:00
configs hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
guest hv: TLFS: Add tsc_offset support for reference time 2021-04-23 10:48:07 +08:00
lib HV: rewrite memcpy_s to be iso c11 compliant 2020-06-08 13:30:04 +08:00
seed hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
cpu_caps.c hv: cpu_cap: PAW over 39 bits must support 1GB large page 2021-04-22 14:35:57 +08:00
cpu_state_tbl.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
cpu.c hv: smp: fix an isuue about SMP sync 2021-04-21 10:54:48 +08:00
e820.c hv: e820: remove get_mem_range_info 2021-04-21 14:00:44 +08:00
exception.c hv/mod_irq: move NMI and exception handler out of x86/irq.c 2021-03-24 11:38:14 +08:00
gdt.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
idt.S hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
init.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
ioapic.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
irq.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
Kconfig kv: kconfig: remove some unused ram size kconfig 2021-03-01 13:10:04 +08:00
lapic.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
mmu.c hv: pgtable: use new algo to calculate PPT/EPT_PD_PAGE_NUM 2021-04-22 14:35:57 +08:00
nmi.c hv/mod_irq: move NMI and exception handler out of x86/irq.c 2021-03-24 11:38:14 +08:00
notify.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
page.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
pagetable.c hv: pgtable: move sanitize_pte into pagetable.c 2021-03-29 13:28:55 +08:00
platform_caps.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
pm.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
rdt.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
rtcm.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
sched.S hv: sched: rename schedule related structs and vars 2019-10-16 10:25:53 +08:00
security.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
sgx.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
timer.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
trampoline.c hv: memory order: use mfence to strengthen the fast string operations order 2021-04-20 13:28:44 +08:00
vmx.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
vtd.c hv/mod-irq: use arch specific header files 2021-03-24 11:38:14 +08:00
wakeup.S hv: pm: correct the function name 2019-09-11 17:30:24 +08:00