From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC][PATCH] Add support for the GUEST_SMBASE VMCS field for Intel VT-x. Date: Wed, 06 Jun 2012 10:55:37 +0300 Message-ID: <4FCF0CF9.1010102@redhat.com> References: <4FB61795.9080601@sec.t-labs.tu-berlin.de> <4FB8E602.5030409@redhat.com> <20120605115904.GC17624@rhea> <4FCE050A.8070709@redhat.com> <20120605182759.GA23670@rhea> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1026 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737Ab2FFHzj (ORCPT ); Wed, 6 Jun 2012 03:55:39 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q567tdYL029570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Jun 2012 03:55:39 -0400 In-Reply-To: <20120605182759.GA23670@rhea> Sender: kvm-owner@vger.kernel.org List-ID: On 06/05/2012 09:27 PM, Matthias Lange wrote: > On Tue, Jun 05, 2012 at 04:09:30PM +0300, Avi Kivity wrote: >> On 06/05/2012 02:59 PM, Matthias Lange wrote: >> > Do you mean the ABI defined in the Intel Software Developer's manual 3B? Or is >> > vmcs12 only an ABI internal to the kvm module? >> >> The latter. We want to be able to live migrate a guest with nested >> guests, and if the format of vmcs12 changes, the migration will break. > > I'm trying to understand how the migration is implemented in kvm. Can you > point me to some sort of documentation or pieces of code where I can start > digging through the mechanism? >>From kvm's point of view, it's just KVM_GET_REGS (and KVM_GET_SREGS, etc.) from the source, followed by KVM_SET_REGS (etc.) on the target. KVM_GET_DIRTY_LOG makes the migration live. -- error compiling committee.c: too many arguments to function