From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Subject: Re: [PATCH v12 09/28] qmp: add query-sev command Date: Thu, 8 Mar 2018 16:52:20 +0000 Message-ID: <20180308165220.GG4718@redhat.com> References: <20180308124901.83533-1-brijesh.singh@amd.com> <20180308124901.83533-10-brijesh.singh@amd.com> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "Edgar E. Iglesias" , Peter Maydell , Borislav Petkov , Eduardo Habkost , kvm@vger.kernel.org, "Michael S. Tsirkin" , Marcel Apfelbaum , Markus Armbruster , Peter Crosthwaite , Richard Henderson , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Christian Borntraeger , Alexander Graf , Stefan Hajnoczi , Cornelia Huck , Paolo Bonzini , Thomas Lendacky , Alistair Francis , Bruce Rogers To: Brijesh Singh Return-path: Content-Disposition: inline In-Reply-To: <20180308124901.83533-10-brijesh.singh@amd.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Thu, Mar 08, 2018 at 06:48:42AM -0600, Brijesh Singh wrote: > The QMP query command can used to retrieve the SEV information when > memory encryption is enabled on AMD platform. >=20 > Cc: Eric Blake > Cc: "Daniel P. Berrang=C3=A9" > Cc: "Dr. David Alan Gilbert" > Cc: Markus Armbruster > Reviewed-by: Eric Blake > Signed-off-by: Brijesh Singh > --- > monitor.c | 7 +++++ > qapi/misc.json | 76 +++++++++++++++++++++++++++++++++++++++++++= ++++++++ > target/i386/monitor.c | 8 ++++++ > 3 files changed, 91 insertions(+) > diff --git a/qapi/misc.json b/qapi/misc.json > index bd04469a4ba2..14681729f8fc 100644 > --- a/qapi/misc.json > +++ b/qapi/misc.json > @@ -3201,3 +3201,79 @@ > # Since: 2.9 > ## > { 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' } > + > + > +## > +# @SevState: > +# > +# An enumeration of SEV state information used during @query-sev. > +# > +# @uninit: The guest is uninitialized. > +# > +# @lupdate: The guest is currently being launched and plaintext and > +# reigster state is being imported. Typo s/reigster/register/ > +# > +# @lsecret: The guest is currently being launched and ciphertext data > +# are being imported. > +# > +# @running: The guest is fully launched or migrated in. > +# > +# @supdate: The guest is currently being migrated out to another machi= ne. > +# > +# @rupdate: The guest is currently being migrated from another machine= . > +# > +# Since: 2.12 > +## > +{ 'enum': 'SevState', > + 'data': ['uninit', 'lupdate', 'lsecret', 'running', 'supdate', 'rupd= ate' ] } Regards, Daniel --=20 |: https://berrange.com -o- https://www.flickr.com/photos/dberran= ge :| |: https://libvirt.org -o- https://fstop138.berrange.c= om :| |: https://entangle-photo.org -o- https://www.instagram.com/dberran= ge :|