devices, vmm: Add legacy CMOS device

Based off of crosvm revision b5237bbcf074eb30cf368a138c0835081e747d71
add a CMOS device. This environments that can't use KVM clock to get the
current time (e.g. Windows and EFI.)

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-10-02 15:21:54 +01:00
parent 47367eb61b
commit 8ea4145f98
6 changed files with 139 additions and 2 deletions

View File

@@ -31,10 +31,11 @@ path = "vhost_rs"
features = ["vhost-user-slave"]
[features]
default = ["acpi", "pci"]
default = ["acpi", "pci", "cmos"]
acpi = ["vmm/acpi"]
pci = ["vmm/pci_support"]
mmio = ["vmm/mmio_support"]
cmos = ["vmm/cmos"]
# Integration tests require a special environment to run in
integration_tests = []