Skip to content

kvm: nVMX: Checkpoint/restore support for VMX state

Jim Mattson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 54 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8kvm: nVMX: Prepare for checkpointing L2 statearch/x86/kvm/vmx.c+46 -270 replies
2/8kvm: nVMX: Refactor handle_vmon()arch/x86/kvm/vmx.c+51 -400 replies
3/8kvm: nVMX: Refactor handle_vmptrld()arch/x86/kvm/vmx.c+13 -90 replies
4/8kvm: nVMX: Refactor nested_get_vmcs12_pages()arch/x86/kvm/vmx.c+68 -690 replies
5/8kvm: nVMX: Split VMCS checks from nested_vmx_run()arch/x86/kvm/vmx.c+88 -780 replies
6/8kvm: nVMX: Refactor nested_vmx_run()arch/x86/kvm/vmx.c+55 -430 replies
7/8kvm: nVMX: Introduce KVM_CAP_VMX_STATEDocumentation/virtual/kvm/api.txt arch/x86/include/asm/kvm_host.h arch/x86/include/uapi/asm/kvm.h +3 more+222 -035 replies
8/8kvm: nVMX: Defer gpa->hpa lookups for set_vmx_statearch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx.c arch/x86/kvm/x86.c+20 -53 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] kvm: nVMX: Checkpoint/restore support for VMX state

This series of patches introduces checkpoint and restore operations for the VMX state of a VM, so that VMX-capable VMs can be migrated.

Two new ioctls are introduced: KVM_GET_VMX_STATE and KVM_SET_VMX_STATE. The VMX state that is checkpointed/restored consists of the VMXON region address (if any), the current VMCS address (if any), and the cached current VMCS contents (if any). One piece of implementation-specific state that is also checkpointed/restored is the nested_run_pending bit.

On live migration, our userspace process does not have access to guest memory when the VM is set up on the target host, so some operations that require a GPA->HPA mapping are deferred until the next vcpu_run using a new vcpu request.