From patchwork Mon Jan 29 17:41:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10190283 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1911660388 for ; Mon, 29 Jan 2018 17:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09E3228C14 for ; Mon, 29 Jan 2018 17:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 088CE28BC9; Mon, 29 Jan 2018 17:51:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9ED3928C90 for ; Mon, 29 Jan 2018 17:51:14 +0000 (UTC) Received: from localhost ([::1]:53698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egDaL-000504-3e for patchwork-qemu-devel@patchwork.kernel.org; Mon, 29 Jan 2018 12:51:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egDRk-0005ou-QA for qemu-devel@nongnu.org; Mon, 29 Jan 2018 12:42:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egDRg-0003dQ-3C for qemu-devel@nongnu.org; Mon, 29 Jan 2018 12:42:20 -0500 Received: from mail-dm3nam03on0064.outbound.protection.outlook.com ([104.47.41.64]:11072 helo=NAM03-DM3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egDRf-0003bl-U4 for qemu-devel@nongnu.org; Mon, 29 Jan 2018 12:42:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H2TDa+rvr+rvK4Pvh4HcTZed6CuUzXnbFUmvFXeGEEc=; b=qJcLy60EaDgvoy2IawgmYfzzNQ//KMfWCMzvM7lg7isBxeB5HxZOfm0V6N/qn3XPF0I4mpYWCNwfe5bWPQACEaTIX5SzS6igC0BHyMBZb1Eo/MrHwwDojwhWuLss/b4xW++be3ccO/BAEooPRS4tlTU5WiyLB/5a+w9s3cXxQHU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by DM2PR12MB0154.namprd12.prod.outlook.com (2a01:111:e400:50ce::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 29 Jan 2018 17:42:12 +0000 From: Brijesh Singh To: qemu-devel@nongnu.org Date: Mon, 29 Jan 2018 11:41:26 -0600 Message-Id: <20180129174132.108925-18-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180129174132.108925-1-brijesh.singh@amd.com> References: <20180129174132.108925-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR17CA0018.namprd17.prod.outlook.com (2603:10b6:404:65::28) To DM2PR12MB0154.namprd12.prod.outlook.com (2a01:111:e400:50ce::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d7568b58-9df8-40f2-1150-08d5673fa20f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR12MB0154; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0154; 3:xq9vSoGC31rN07avpnWcdK7707lmvDtkUVc+ZZ3EE7sZGJJ3IAL3sR3vwOZs1QU49X32XbmTSNsPihaza4HuBqclOpvN3ohQsdER9YQf2KVpLLmUHzl+YJpuucmSpHY5anSUvsM3zjiu+WB9apj+kjuKfAnjoVio5TM8suPLq679hxxonz02T5X2Nxs1JjST+L0A0zuvpXfWFZgCLlBQ3CCiL1g9Stx0RNNZHugJK3olluOs/NmMPY2Q9QZXwy9g; 25:zsl/JkUvUoFx5BclgDPCa98zvugLS/n5K4pjRf1cV8QcU77+/fs6QNLa8Xj4GlbIQyd4EvkqsQ3u6MwOLRj7vi07OA9f7PrHtXgbayIGOhtXXpsW2p9tcbob7L2M/P15QYeT8egxvh0dwdw0EPB/vTKXCN4QdOQYRBFh6u6Inw42gT1rz9ocjt+vufx2bYvH/7Dkl86KvcOn08yxPbfT8M5Zy7/ndlEcNoeow1O9NbC5kwl+enbrPSyLMt3rf8FXNru4IrKDmeT8r6cd0wPy09QHxudy1KJciCK0tijQuP+RZI1UIs/LIi1ybXVkC5xsy39a8nfv1l4E9uPYAkRAKg==; 31:TDssQGNcgbLIIF8uvwZdimLszZ/gtucCU4rgXfju1sSPBXd7yl4PZ1gFQimswDjcQ6P62Z/dLGZNeR7GLZymyDoOslHMM19Ar1RBpBTrf7Un3xXaJ8QcwFq25pfmP+qooPuiwRS2k3p/7cn0vMMnB+jRxUmeXvVHJ22MapNsdVuz4c2Iy2kH29SdkHg4p+kcI4EmtQ4cj30B9qUPgm9fh98bfCF6UWuK7wamTT0D8sY= X-MS-TrafficTypeDiagnostic: DM2PR12MB0154: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0154; 20:b+lINvOpaL3rwWEo5AZTf18hHsfrVW+MBeELdQRFbk5I5Q8kMiEEwtQz0qaNmMG/5k5DR/mcyegLvaADHK2awxXGn5kvRcUV2+fzjK1LYkDz56kDp+4NhDuYMQUQyARdVvocyDi4QPQT580wIkuLL7zEX0u//qBX+3ynV03ZvOL+X477UOfR/374UPjx5QcAVQFJCbJkZNHG5kny0+APzR3xAhK16UvIfFjpXkWx+bv7yf3r7SM35sS5h4uMCJh/gPUnS31bDFN2BivzIgBoq7zsU+ftcW107jlTppVy++ail0L1nuFqbSN2iLIJy/80gRbf/GYIc5TafJojTyoZnxwmoTkxloi2Mje/0Oty6lxbm5+mBVCFBGS3EIN7CO6hFhWG7YBdzG4+NeoOCIcqGfwtC/PhQoEuVsBxPTjXy79SzfvvCZqCAGeS3M8BPDjfnNnJ2gNEWnZqqoY2S0oF3WWN//yE30U3A3ru7r8+pK25KUqZ2bms0uU7uf41hCyh; 4:ZnjxOElG379suAchcoHyiDcewr7m0HGQ/Ur4VddL9Xm8XiSVnvkKp7jdnMl56XlSJ2iaiRgAAslC//ewDFKPqzCEFfXdYxKXc5r7jvv0sviaFpfPDLit9G29SdB3ejNGI+HRKLr6M3uyF8Yt8FwR3iVuIH65wV1WPYumLQJuni2MvToV9DexuBhJ/3N+XpYvDTZAOk7MxslxO4tSqjIShA94+zZIgTPTX9Pr3fivvIjuvCD8/LzdMJblKtUkbGTpgJfk/4m0StV9XxejB36r8AT8ySNxpEaO/9xYkAIDoc68+UUUxvKJBsdeb6V354Ss X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231101)(944501161)(93006095)(93001095)(3002001)(6055026)(6041288)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:DM2PR12MB0154; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0154; X-Forefront-PRVS: 0567A15835 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(39860400002)(376002)(39380400002)(396003)(366004)(346002)(199004)(189003)(48376002)(8656006)(39060400002)(4326008)(6486002)(68736007)(36756003)(478600001)(26005)(97736004)(16526019)(53936002)(386003)(50466002)(86362001)(25786009)(8666007)(16586007)(54906003)(186003)(47776003)(316002)(7416002)(305945005)(7696005)(105586002)(106356001)(76176011)(51416003)(2906002)(81156014)(66066001)(81166006)(8676002)(2361001)(53416004)(3846002)(50226002)(52116002)(6116002)(2351001)(1076002)(8936002)(7736002)(6666003)(6916009)(5660300001)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0154; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0154; 23:GhKJ9gpP0MmhiDpHNUGZSWJgopNaMGWSBwl8o9E1T?= =?us-ascii?Q?yRlSp0H2ADEhaq1HHcZf1AqeX8HZC0w1aSKIcMjdDBauXV+W1mSlksWWcj8A?= =?us-ascii?Q?4s7BSvzpSRdxAmHJgdIgT/AAdUdK7uapH5bCl1HZwmKXs1c+h0AivOoi9rG+?= =?us-ascii?Q?Rm/rBrWlYiO35N5AGI7kx2E4FaOht68xRE8DvMWz7Fp4ZOJH5CkNUE+2MGlf?= =?us-ascii?Q?vZC9DOsBywvSBahqZvcsUxhM9KV3JlR461RLr7fhGeKxhyu/JQ8AotlbmRo8?= =?us-ascii?Q?sQMGatz5wc2yrN3MYxLh7X4VkpRQ/pFbXnsYzGejwJkl7JvIXwg2uFIxAKCh?= =?us-ascii?Q?wPv1vEUAWG2JrdsA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SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0154; 20:73N0YKcnJiMYh/NjgAhaaSDwqMbKDwRQ7YBuF/zm6ZtyHodqPkel+z2MTCOtBwBLthdZKm/CEqNWNIEvXKUjQRAASGj8oVRvSB0aAY5vd2s/iNqkstbupVfcXPp4tU7Hmc17zvi3b4pIKIytNZNpgcKsw8mvhMckEVEKG28IzMMfQn6TmTc7XdOOiP2qeFDQQt2nvZh4xOy7Ztszz6wWBAqB/Kr/rX0Zr8qgdfo7EZ0/zL6kmioFghoRlwjlqaw1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 17:42:12.8696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7568b58-9df8-40f2-1150-08d5673fa20f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0154 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.41.64 Subject: [Qemu-devel] [PATCH v6 17/23] qapi: add SEV_MEASUREMENT event X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E. Iglesias" , Peter Maydell , Eduardo Habkost , kvm@vger.kernel.org, Tom Lendacky , Stefan Hajnoczi , "Michael S. Tsirkin" , Richard Henderson , "Dr. David Alan Gilbert" , Markus Armbruster , Brijesh Singh , Paolo Bonzini Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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' } }