From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Subject: Re: [Qemu-devel] [PATCH v6 18/23] sev: emit the SEV_MEASUREMENT event Date: Thu, 8 Feb 2018 16:22:33 +0000 Message-ID: <20180208162233.GN20703@redhat.com> References: <20180129174132.108925-1-brijesh.singh@amd.com> <20180129174132.108925-19-brijesh.singh@amd.com> <20180130200838.GB2319@work-vm> <0abe3fee-a970-dc82-fd92-ad923bfa863a@amd.com> <20180201172709.GJ2457@work-vm> <07d86670-e960-db04-52a9-5e6ecee18bc3@amd.com> <20180202151616.GM15403@redhat.com> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Brijesh Singh , "Edgar E. Iglesias" , Peter Maydell , Eduardo Habkost , kvm@vger.kernel.org, Tom Lendacky , "Chen, Xiaogang" , Stefan Hajnoczi , "Michael S. Tsirkin" , Richard Henderson , "Dr. David Alan Gilbert" , qemu-devel@nongnu.org, Paolo Bonzini To: Brijesh Singh Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58234 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751786AbeBHQWt (ORCPT ); Thu, 8 Feb 2018 11:22:49 -0500 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Feb 08, 2018 at 10:17:28AM -0600, Brijesh Singh wrote: > > Anyway, the main issue is event emitted before "qmp_capabilities" are > dropped silently , see [1] . In our case, the measurement event is emitted > during the machine creation time, libvirt was still waiting to reconnect > the monitor when event was emitted hence libvirt never gets the event. > Because of this, I am not able to see any strong reason to emit the event. > Do you see any issue with libvirt issuing a 'query-sev-launch-measure' to > get the measurement on reconnect ? Hmm, yes, I see so there can be a race between SEV emitting the event and libvirtd making the initial monitor connection. In that case, we definitely to have a QMP command to let libvirt explicitly query it. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|