hv: Add vrtc emulation support for ACRN partition mode

This patch adds code to support read-only RTC support for guests
run by partition mode ACRN. It supports RW for CMOS address port 0x70
and RO for CMOS data port 0x71. Reads to CMOS RAM offsets are fetched
by reading CMOS h/w directly and writes to CMOS offsets are discarded.

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
Sainath Grandhi
2018-08-14 22:21:11 -07:00
committed by lijinxia
parent f63c7a7355
commit 022ef92b62
4 changed files with 91 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
if (vm_desc->vm_vuart) {
vm->vuart = vuart_init(vm);
}
vrtc_init(vm);
vpci_init(vm);
#endif