From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v6 17/23] qapi: add SEV_MEASUREMENT event Date: Wed, 31 Jan 2018 18:45:01 +0100 Message-ID: <87mv0tvs6a.fsf@dusky.pond.sub.org> References: <20180129174132.108925-1-brijesh.singh@amd.com> <20180129174132.108925-18-brijesh.singh@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: qemu-devel@nongnu.org, "Edgar E. Iglesias" , Peter Maydell , Eduardo Habkost , kvm@vger.kernel.org, Tom Lendacky , Stefan Hajnoczi , "Michael S. Tsirkin" , Richard Henderson , "Dr. David Alan Gilbert" , Paolo Bonzini To: Brijesh Singh Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56496 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeAaRpL (ORCPT ); Wed, 31 Jan 2018 12:45:11 -0500 In-Reply-To: <20180129174132.108925-18-brijesh.singh@amd.com> (Brijesh Singh's message of "Mon, 29 Jan 2018 11:41:26 -0600") Sender: kvm-owner@vger.kernel.org List-ID: Brijesh Singh writes: > Add SEV_MEASUREMENT event which can be used by libvirt to get the > measurement of the memory regions encrypted through the SEV launch > flow. The measurement value is base64 encoded. > > Cc: Daniel P. Berrange > Cc: Eric Blake > Cc: Markus Armbruster > Signed-off-by: Brijesh Singh > --- > qapi-schema.json | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/qapi-schema.json b/qapi-schema.json > index 2046c96669bf..e1f5d14e2e3f 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -3192,3 +3192,16 @@ > # Since: 2.11 > ## > { 'command': 'watchdog-set-action', 'data' : {'action': 'WatchdogAction'} } > + > +## > +# @SEV_MEASUREMENT: > +# > +# Emitted when measurement is available for the SEV guest. > +# > +# @value: measurement value encoded in base64 > +# > +# Since: 2.12 > +# > +## > +{ 'event' : 'SEV_MEASUREMENT', > + 'data' : { 'value' : 'str' } } New event -> automatic question: do we need a way to poll for this information? Say when an event could get lost during a libvirt restart.