You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aa5dbc1
Browse filesBrowse the repository at this point in the historyBrowse files
openvmm: support snapshotting UEFI and nested-virtualization VMs
Two gaps prevented a successful snapshot save/restore of a KVM-backed VM.
UEFI restore: the UEFI device's logger and watchdog platform resolvers were
only registered in the LoadMode::Uefi arm. A restore sets the load mode to
None (firmware is not reloaded) while still instantiating the UEFI device
from the chipset config, so restoring a UEFI VM failed with "no resolver for
uefi_logger:platform". Register those resolvers whenever the UEFI device is
present, independent of the load mode.
Nested virtualization: the KVM backend's nested_state()/set_nested_state()
returned NotSupported, so saving or restoring a partition with nested
virtualization enabled failed: the vCPU's nested VMX/SVM state (VMCS12 and
the per-vCPU nested control fields) was never captured, and a nested guest
running an L2 at save time could not be resumed. Add the KVM_GET_NESTED_STATE
/ KVM_SET_NESTED_STATE ioctls to the kvm crate; get_nested_state() sizes the
buffer from KVM_CHECK_EXTENSION(KVM_CAP_NESTED_STATE) and returns an empty
blob when the host lacks the capability, and set_nested_state() pushes the
opaque blob back. NestedState save/restore is already ordered last in the
per-VP state list, after registers, MSRs, and CPUID, which the kernel
validates the blob against on restore. An empty blob takes the reset path,
so a guest-initiated reset is not aborted.
Note the nested-state support in the snapshots guide and point save-snapshot's
help at the file-backed-memory requirement.
0 commit comments