From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Blake Subject: Re: [Qemu-devel] [PATCH v6 17/23] qapi: add SEV_MEASUREMENT event Date: Thu, 1 Feb 2018 09:28:50 -0600 Message-ID: References: <20180129174132.108925-1-brijesh.singh@amd.com> <20180129174132.108925-18-brijesh.singh@amd.com> <87mv0tvs6a.fsf@dusky.pond.sub.org> <315572b0-2893-2247-c20b-717becd9661c@amd.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bKRDeOFmNCqxXsz0l5zfweeCobkEqKJnQ" Cc: "Edgar E. Iglesias" , Peter Maydell , Eduardo Habkost , kvm@vger.kernel.org, Tom Lendacky , Stefan Hajnoczi , "Michael S. Tsirkin" , Richard Henderson , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Paolo Bonzini To: Brijesh Singh , Markus Armbruster Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40280 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908AbeBAP3F (ORCPT ); Thu, 1 Feb 2018 10:29:05 -0500 In-Reply-To: <315572b0-2893-2247-c20b-717becd9661c@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bKRDeOFmNCqxXsz0l5zfweeCobkEqKJnQ Content-Type: multipart/mixed; boundary="olhtts79DqgivbeIWH2mbbrMshUPz3pTS"; protected-headers="v1" From: Eric Blake To: Brijesh Singh , Markus Armbruster Cc: "Edgar E. Iglesias" , Peter Maydell , Eduardo Habkost , kvm@vger.kernel.org, Tom Lendacky , Stefan Hajnoczi , "Michael S. Tsirkin" , Richard Henderson , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Paolo Bonzini Message-ID: Subject: Re: [Qemu-devel] [PATCH v6 17/23] qapi: add SEV_MEASUREMENT event References: <20180129174132.108925-1-brijesh.singh@amd.com> <20180129174132.108925-18-brijesh.singh@amd.com> <87mv0tvs6a.fsf@dusky.pond.sub.org> <315572b0-2893-2247-c20b-717becd9661c@amd.com> In-Reply-To: <315572b0-2893-2247-c20b-717becd9661c@amd.com> --olhtts79DqgivbeIWH2mbbrMshUPz3pTS Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 02/01/2018 09:25 AM, Brijesh Singh wrote: >>> +{ 'event' : 'SEV_MEASUREMENT', >>> +=C2=A0 'data' : { 'value' : 'str' } } >> >> New event -> automatic question: do we need a way to poll for this >> information?=C2=A0 Say when an event could get lost during a libvirt r= estart. >> >=20 >=20 > In our initial SEV patches for libvirt we ran into similar cases where > the event was dropped on restart, and now leaning towards dropping this= > event patch and add a new QMP command which can be used by libvirt to > retrieve the measurement. An event may still be useful to minimize the amount of polling required when the connection is not broken. It's just that any setup that ONLY permits events (and not also polling) is fragile. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --olhtts79DqgivbeIWH2mbbrMshUPz3pTS-- --bKRDeOFmNCqxXsz0l5zfweeCobkEqKJnQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlpzMjIACgkQp6FrSiUn Q2qmcgf/Wbjb1pHzEZamCpKSJ8aWG6oRnLCm9Ncmt3dDZmHS8Chx/ie9DR4bKNF9 XwGjlbcxrVMOj1jipMXI+SEe8YV6FDmiMLOKb9CZJa3Yxu/YdpFaz3TzFRwmu4wM +C0GYKspAQRiDfTlzqVUBy5ZLZ4ufBzstSx5j0hCFx2LhTD9Cc9VJxUFIF8yMrMc Z0sTZJuH+gy+lFM4ytC/fG1Zi4woryQF3Yer+QCxTBW3l8zG+a3e+koN8MFWXeSL wxpSlaZkB2ZAXMmWOwDCwCK+m7sPpRVwx/mvcP3+J+3gkLEFzGZSV4QohXbiEVM8 dim4m3Wj+5NP6BrH7wQGc0JcY//SoQ== =Qss6 -----END PGP SIGNATURE----- --bKRDeOFmNCqxXsz0l5zfweeCobkEqKJnQ--