acrn-hypervisor/hypervisor/include/arch/x86/asm
Yuanyuan Zhao 23177d0a1d hv: add rtcdev emulate vrtc
Current code would read physical RTC register and return it directly to guest.

This patch would read a base physical RTC time and a base physical TSC time
at initialize stage. Then when guest tries to read vRTC time, ACRN HV would
read the real TSC time and use the TSC offset to calculate the real RTC time.

This patch only support BIN data mode and 24 hour mode.
BCD data mode and 12 hour mode will add in other patch.
The accuracy of clock provided by this patch is limited by TSC, and will
be improved in a following patch also.

Tracked-On: #7440
Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2022-05-12 13:20:21 +08:00
..
boot Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
guest hv: add rtcdev emulate vrtc 2022-05-12 13:20:21 +08:00
lib Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
apicreg.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
board.h hv: remove obsolete declarations related to RDT 2022-04-26 14:27:01 +08:00
cpu_caps.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
cpu.h Fix: write xmm registers correctly 2022-05-06 10:29:33 +08:00
cpufeatures.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
cpuid.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
default_acpi_info.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
e820.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
gdt.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
host_pm.h hv: dm: Use new power management data structures 2021-07-15 11:53:54 +08:00
idt.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
init.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
io.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
ioapic.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
irq.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
lapic.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
mmu.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
msr.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
notify.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
page.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
pci_dev.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
per_cpu.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
pgtable.h hv: remove pgentry_present field in struct pgtable 2022-04-20 17:38:02 +08:00
platform_caps.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
rdt.h hv: support CAT on hybrid platform 2022-04-18 15:33:11 +08:00
rtcm.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
rtct.h hv: refine the hard-coded GPA SSRAM area size 2022-04-18 16:47:23 +08:00
security.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
seed.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
sgx.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
trampoline.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
tsc.h doc: update timer HLD doc after modularization 2021-06-09 17:11:25 -04:00
vm_config.h hv: refine for HPAn setting 2022-04-22 14:46:05 +08:00
vmx.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vtd.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
zeropage.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00