From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evi6P-0001zy-GN for qemu-devel@nongnu.org; Tue, 13 Mar 2018 07:28:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evi6L-0004lk-I5 for qemu-devel@nongnu.org; Tue, 13 Mar 2018 07:28:21 -0400 Received: from mail-co1nam03on0079.outbound.protection.outlook.com ([104.47.40.79]:9984 helo=NAM03-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evi6L-0004kp-7u for qemu-devel@nongnu.org; Tue, 13 Mar 2018 07:28:17 -0400 References: <20180308124901.83533-1-brijesh.singh@amd.com> <20180308124901.83533-25-brijesh.singh@amd.com> <0218f497-d397-0f49-3256-79d461e25be2@redhat.com> From: Brijesh Singh Message-ID: Date: Tue, 13 Mar 2018 06:28:03 -0500 MIME-Version: 1.0 In-Reply-To: <0218f497-d397-0f49-3256-79d461e25be2@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH v12 24/28] sev/i386: add migration blocker List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: brijesh.singh@amd.com, Peter Maydell , kvm@vger.kernel.org, "Michael S. Tsirkin" , Stefan Hajnoczi , Alexander Graf , "Edgar E. Iglesias" , Markus Armbruster , Bruce Rogers , Christian Borntraeger , Marcel Apfelbaum , Borislav Petkov , Thomas Lendacky , Eduardo Habkost , Richard Henderson , "Dr. David Alan Gilbert" , Alistair Francis , Cornelia Huck , Peter Crosthwaite On 3/13/18 4:33 AM, Paolo Bonzini wrote: > On 08/03/2018 13:48, Brijesh Singh wrote: >> sev_set_guest_state(SEV_STATE_RUNNING); >> + >> + /* add migration blocker */ >> + error_setg(&sev_mig_blocker, >> + "SEV: Migration is not implemented"); >> + ret =3D migrate_add_blocker(sev_mig_blocker, &local_err); >> + if (local_err) { >> + error_report_err(local_err); >> + error_free(sev_mig_blocker); >> + exit(1); >> + } >> } > I think this should be in sev_guest_init instead? Does migration > transfer the measurement, or is it lost forever? Not a blocker though. The launch measurement does not get transferred during the migration. During migration we get totally different measurement which is wrapped with transport key etc and that need to send to destination. IIRC, in my first attempt I was adding this blocker in sev_guest_init() but migration_add_blocker() was failing because=C2=A0 sev_guest_init() is calle= d before the migration_object_init(). > > Paolo