From: Jim Mattson Subject: [PATCH 0/8] kvm: nVMX: Checkpoint/restore support for VMX state Date: Wed, 30 Nov 2016 12:03:41 -0800 Message-ID: <1480536229-11754-1-git-send-email-jmattson@google.com> Cc: Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-pf0-f182.google.com ([209.85.192.182]:33680 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757855AbcK3UE0 (ORCPT ); Wed, 30 Nov 2016 15:04:26 -0500 Received: by mail-pf0-f182.google.com with SMTP id d2so40845912pfd.0 for ; Wed, 30 Nov 2016 12:04:26 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: 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.