From nobody Tue Feb 10 02:49:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623307570; cv=none; d=zohomail.com; s=zohoarc; b=XbBefXIA+nQDGy6OvCXUSiH8SmvGnZFSzxR6+TlfAb60Y7tav/aY/Mo4Gnv/kZROFxcaCHJjJhp5IM8eoSKBtEeh9APDL2H63lL6CVOfJI5LKFMrGZH8j4OKtN+a3B/++RBUMXXoNTFpZRZEgnncdSwvkZOV7lG2Wh5Lnl0AtRI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623307570; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=FjkQZ0yzu9xDnZx5K+AIPt7jpTRH0jKavlFDBx0pW4E=; b=mJbyl7E2Wx/n1LaIIr2gAERltDtBaKGngcT/gKTqjm7SKmrxe9SBVVSimkZNV4P0JpakIMuVxmwUb0n3D5IBY1/5wGGmWjDBjOu7qeDd5VYNI6EVVaJiurRDTy9jbSZrelGmyVmtM96d0pIfV1vKTNnTlcDlrAhbaWqY5eUTr1M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1623307570853265.6877806089792; Wed, 9 Jun 2021 23:46:10 -0700 (PDT) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-178-pk8LWBU2NUuncXk0a7MVbA-1; Thu, 10 Jun 2021 02:46:08 -0400 Received: by mail-wm1-f71.google.com with SMTP id k5-20020a05600c1c85b02901ac8b854c50so2674795wms.5 for ; Wed, 09 Jun 2021 23:46:08 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (235.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.235]) by smtp.gmail.com with ESMTPSA id z3sm2371221wrl.13.2021.06.09.23.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 23:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623307569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FjkQZ0yzu9xDnZx5K+AIPt7jpTRH0jKavlFDBx0pW4E=; b=aya2ydUTACtW4R/1800one6PxE4WnjS1OMJHgu9loe6RJWm39dXQ1sl8ByNFEF/yJ6FYCP 4+a8uNsGW/GcvdMyOx5vR7GNBa37StlydI2PjDAkhWK1fNNgDFKrbyOW2dkAImMeZ/ig9g Dchh7QQHo3QnOKWNWwxnCRL8b7v+Z08= X-MC-Unique: pk8LWBU2NUuncXk0a7MVbA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FjkQZ0yzu9xDnZx5K+AIPt7jpTRH0jKavlFDBx0pW4E=; b=dXLv524G2PGRnv3d0PRlD2hd4RtFKIrWtYHU+jNW7KMvEpRqNWscfzrGUZPyJNMI0H uqknf/AcwaQbi0BTT0UWwIqwDo2v7usFv+tALzn1L4UD0rgD79xqWjH/vMuKl6dWvrdI eG8GWVmC5fqjKs5kbhoVKa23vQfcBjpjR/gtRb7Xn8+DCa0MSt+N5+BBgsegLfGPC/cu jTUdcbJKxZ89PYROk94YynYXYtYjfxLRBN2OkijddBr8tGQOpMr08X0G/0BAuUuHW9FQ smdTLCrXBr2manSpOpC2NiOFPyaZCcQENedfy1g9pZii7a3HE3M2EK9wLXxaqhfBkBzu ofGA== X-Gm-Message-State: AOAM533qLdvEehpehyD5gF6AP7EHnmAQb43rFsCRLWKqyutUQ3zbVeZr w8chnc7HE2c7fBksgcJ/1DHDOm5CiyIomf/cd+1WQN63BIfSFeoVVLssrnIIfRNQB0RLrTGkgAn gvT7ij71aoDPGsg== X-Received: by 2002:adf:f382:: with SMTP id m2mr3538140wro.394.1623307567422; Wed, 09 Jun 2021 23:46:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD3Y33J1pqwWZ9Wgz1TCngLNjD7qht0/s4Q5cBDHjR8jdAs61L8MQXcXpM3FRBfHv1mIIpEQ== X-Received: by 2002:adf:f382:: with SMTP id m2mr3538127wro.394.1623307567295; Wed, 09 Jun 2021 23:46:07 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Dr . David Alan Gilbert" , Connor Kuehl , Markus Armbruster , Brijesh Singh , Eric Blake , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 02/11] qapi/misc-target: Group SEV QAPI definitions Date: Thu, 10 Jun 2021 08:45:47 +0200 Message-Id: <20210610064556.1421620-3-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210610064556.1421620-1-philmd@redhat.com> References: <20210610064556.1421620-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) There is already a section with various SEV commands / types, so move the SEV guest attestation together. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Markus Armbruster --- qapi/misc-target.json | 75 +++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/qapi/misc-target.json b/qapi/misc-target.json index 5573dcf8f08..1b81f7017d4 100644 --- a/qapi/misc-target.json +++ b/qapi/misc-target.json @@ -219,6 +219,43 @@ 'data': { 'packet-header': 'str', 'secret': 'str', '*gpa': 'uint64' }, 'if': 'defined(TARGET_I386)' } =20 +## +# @SevAttestationReport: +# +# The struct describes attestation report for a Secure Encrypted Virtualiz= ation +# feature. +# +# @data: guest attestation report (base64 encoded) +# +# +# Since: 6.1 +## +{ 'struct': 'SevAttestationReport', + 'data': { 'data': 'str'}, + 'if': 'defined(TARGET_I386)' } + +## +# @query-sev-attestation-report: +# +# This command is used to get the SEV attestation report, and is supported= on AMD +# X86 platforms only. +# +# @mnonce: a random 16 bytes value encoded in base64 (it will be included = in report) +# +# Returns: SevAttestationReport objects. +# +# Since: 6.1 +# +# Example: +# +# -> { "execute" : "query-sev-attestation-report", "arguments": { "mnonce"= : "aaaaaaa" } } +# <- { "return" : { "data": "aaaaaaaabbbddddd"} } +# +## +{ 'command': 'query-sev-attestation-report', 'data': { 'mnonce': 'str' }, + 'returns': 'SevAttestationReport', + 'if': 'defined(TARGET_I386)' } + ## # @dump-skeys: # @@ -285,41 +322,3 @@ ## { 'command': 'query-gic-capabilities', 'returns': ['GICCapability'], 'if': 'defined(TARGET_ARM)' } - - -## -# @SevAttestationReport: -# -# The struct describes attestation report for a Secure Encrypted Virtualiz= ation -# feature. -# -# @data: guest attestation report (base64 encoded) -# -# -# Since: 6.1 -## -{ 'struct': 'SevAttestationReport', - 'data': { 'data': 'str'}, - 'if': 'defined(TARGET_I386)' } - -## -# @query-sev-attestation-report: -# -# This command is used to get the SEV attestation report, and is supported= on AMD -# X86 platforms only. -# -# @mnonce: a random 16 bytes value encoded in base64 (it will be included = in report) -# -# Returns: SevAttestationReport objects. -# -# Since: 6.1 -# -# Example: -# -# -> { "execute" : "query-sev-attestation-report", "arguments": { "mnonce"= : "aaaaaaa" } } -# <- { "return" : { "data": "aaaaaaaabbbddddd"} } -# -## -{ 'command': 'query-sev-attestation-report', 'data': { 'mnonce': 'str' }, - 'returns': 'SevAttestationReport', - 'if': 'defined(TARGET_I386)' } --=20 2.31.1