cloud-hypervisor/hypervisor/src
Rob Bradford 658658e76c hypervisor: kvm: Ignore -EINVAL from KVM_KVMCLOCK_CTRL ioctl()
If the guest hasn't initialised a PV clock then the KVM_KVMCLOCK_CTRL
ioctl will return -EINVAL. Therefore if running in the firmware or an OS
that doesn't use the PV clock then we should ignore that error

Tested by migrating a VM that has not yet booted into the Linux kernel
(just in firmware) by specifying no disk image:

e.g. target/debug/cloud-hypervisor --kernel ~/workloads/hypervisor-fw --api-socket /tmp/api --serial tty --console off

Fixes: #3586

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-01-19 10:12:57 +01:00
..
arch hypervisor: drop one unsafe from mock_vmm 2021-11-18 14:42:55 +00:00
kvm hypervisor: kvm: Ignore -EINVAL from KVM_KVMCLOCK_CTRL ioctl() 2022-01-19 10:12:57 +01:00
mshv hypervisor: mshv: Fix beta clippy issue 2022-01-14 14:33:18 +00:00
cpu.rs hypervisor: Add Misc register to Save/Restore state for MSHV 2021-10-15 14:54:02 -07:00
device.rs hypervisor: Implement get_device_attr method for AArch64 2020-09-23 12:37:25 +01:00
hypervisor.rs hypervisor: Add get_host_ipa_limit for AArch64 2021-06-10 12:06:17 +02:00
lib.rs misc: Remove unnecessary "extern crate" 2021-05-12 17:26:11 +02:00
vm.rs hypervisor: Add support for setting KVM identity map 2021-12-04 19:33:34 +00:00