From patchwork Wed Dec 6 20:03:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10097079 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 8D10D60210 for ; Wed, 6 Dec 2017 20:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D19128A60 for ; Wed, 6 Dec 2017 20:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FBA429B55; Wed, 6 Dec 2017 20:09:57 +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 CA23A28A60 for ; Wed, 6 Dec 2017 20:09:56 +0000 (UTC) Received: from localhost ([::1]:57523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMg0x-0004Ui-St for patchwork-qemu-devel@patchwork.kernel.org; Wed, 06 Dec 2017 15:09:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMfw7-0006TQ-22 for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMfw3-0002nB-Rb for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:55 -0500 Received: from mail-sn1nam01on0043.outbound.protection.outlook.com ([104.47.32.43]:55952 helo=NAM01-SN1-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 1eMfw3-0002ma-Ix for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:51 -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=gLaufY0IGAyZILXufHqDBbSa6U3gKGfYibvcghlu/2Y=; b=ej5oD3cpIXkfoYT9LniYZL6uF8Ltxim1IN38i3lDHesIs0lunXnYUpVhXr+lhVldk5NgE5M+j1MhsBMcX8PvKvBKKYkyJoDUF6wydPib9IQBOjknOtcZ01Jq4AdhmCZ8XQ6dT1ZNJ1aRnEuc6yPOiLNsLbojQffaZnUBrl0p7lg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 6 Dec 2017 20:04:46 +0000 From: Brijesh Singh To: qemu-devel@nongnu.org Date: Wed, 6 Dec 2017 14:03:40 -0600 Message-Id: <20171206200346.116537-18-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171206200346.116537-1-brijesh.singh@amd.com> References: <20171206200346.116537-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR14CA0035.namprd14.prod.outlook.com (10.171.172.149) To SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d6b458f5-78b2-456a-fd1f-08d53ce49a7c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286); SRVR:SN1PR12MB0158; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 3:8wHkoqDHtcK4J34VHAoweGu74oyU8KB2RAh6xPXFI27o13fqqWZpAZyvN+ix82M3XSkkBEX1992NZeVN2L5hy6xhEmzCbwhUw1NW87wJO++8fZexn879sEMhjXroIRry+lwKQ9b5NGRECe0AoMLdne6s6R40MFoCMozIA7zUVCv5OvJ1AOtdPCZdvcJ3fQXiIyzBzJBGLvN/jT7Y6+FCmTukozpFa+qGOoS6c1niv2M9DWR41iL+Ug1lznhMBHqx; 25:jA8mRfUQ0C+N6IX0pyjs9Q64D2jnnbvRYGheVUwiVZG5K1ajKCcQgK4EeBxw9hmndlbcuaTNV1LgEpYG5FJk51z5I+EJm0DhN6Po5vZXrbbk4ziXNFnChlYguGil4eOvPG0JdhkPaKkBgtd039APmmedik1G/7Bstp4DQRwETG0YtphiQV7Zj/1Rcy9yofNjTuN0stSiNjhH8LYwNFT4XGFDhKT6h/CEg6ZS4PJu8OXOGZPSulel6yBTT2mTylPNp0YqVJZhWkKC6ddIXcLK08kBWXSBRDwArcjT7GTrci4Mr4sYQDGq23o9LX7UVs0vU1ncGZFqcmTQEc8Z5D8Kgw==; 31:EpJbW9uzsnWRMtf16CD8NFyOjEAjl0vnxIYRoKPP8sWo0x34RKWUsmh+BotFAQ5FJL3QxleCbW38l5JXYqTQYXTkzNo7T1atwtvBiyEqr5VRjVpgouCa5OhoR9y1KJreoldYcV2q0cg2RpfmI8Y7tUr8oCcxgKEr5cJSqKXiENYpx/DcME56Ric+Lzd4hUjLCXq8gG2HxF+perGJJwxO5MRcXUaQ++rbGytbBrVwD/w= X-MS-TrafficTypeDiagnostic: SN1PR12MB0158: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 20:JzbT/ZJe+/DoO0YRmZvUe1aJKCzuP2UENpy1N3lbzyLWZR4WT7oqiH3rdFj6QlfSpqI6al85WHis+fvU4C49+uOmnYqiPwyVqndkDHSj4Io/qxhMKX7OzXMtGsYkqKdU0SqIGDbpnnqurQR/n2GC0zs16En8CpXaUnwnLHIzrigWoJYqELlh1vegUOC68BAGMl0+/5TQtBLjfobFMsr8wJBAMaxidkc9g05Qu0WiVjgwSoD9KjP38SLdW1pXqWcqhJpvO/DGZBcg3Ns9Rr7dgBCq815Src6IjwSWDaj1Zo8UmxIZjkYSgUTBxL24rpWKab4VIJxoO8hxEWZ25Up4MZpl10ZipIJGGJI9pW+djRKKZV66FWlVRu5QXcaCaSPyIUK15RFAeRtRsC6JDfeV9YWfijgHVh6bSxRMp2Sya+8DE70W3agpWCrOOIgskXl3NbqQJWPmzcVHU4JlnX/WCaouhuEineqgr20trbuHsjGxaNloLGjW7+q+DcIKkTgs; 4:jlS8R4vN/+7yVrNvkKslAJYze76rZ6EJp8tet0c4cyYCw9a2WPEmW/Z7CEXFbuJqFpaNsBX+XixQ9rO/GRVvisW+DvZ0w72xi8nRYsm2qm4fk6Y40y35IObLf5ba78vceLM4QNiXW0F89ZSsixpjKdoliAC0yL0UbfroHsjbn6qHG8VjHdfHb+nhwvXIXqC1lkXnSeut5TWlCYtbHxPXlCr5ivu98Z+zwyR6utn+N0r66dLmnO5VCAHzAtqgKP0eqgplay6UkUQ10oSuc4Ruue6nZ17reE/wI2HXoYjmAuA8UbMuzD3FTRny20SD3BUR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231022)(6055026)(6041248)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148)(201708071742011); SRVR:SN1PR12MB0158; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN1PR12MB0158; X-Forefront-PRVS: 05134F8B4F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(366004)(199004)(189003)(16526018)(16586007)(33646002)(53416004)(105586002)(39060400002)(4326008)(305945005)(2351001)(106356001)(2361001)(7736002)(7696005)(86362001)(52116002)(8936002)(316002)(53936002)(97736004)(76176011)(51416003)(36756003)(66066001)(1076002)(3846002)(25786009)(6116002)(47776003)(50226002)(68736007)(54906003)(6916009)(2950100002)(478600001)(6666003)(8666007)(5660300001)(8656006)(8676002)(101416001)(81156014)(81166006)(2906002)(7416002)(48376002)(6486002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0158; 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; SN1PR12MB0158; 23:8sCzBoWu/7I6guhU695cN+MWmzn/WoANz7mdBJWWy?= =?us-ascii?Q?rHHnw8/Xpg2sz29V4DqLDdf2Komq4rYyvjgxQFM6Lb2u/QZ57BtK8kk9UXoy?= =?us-ascii?Q?/B53tyAsLsVO3c0z8ezrkZgq9+f61F9zgX5S5LmP2krKZAFfZ8D2x+hDKq+P?= =?us-ascii?Q?UyRaTBkXsxVCgQfBA77xWYTHgYiPf1Aclh3LlIHOlJkW55l/qNmTnKAlyr/I?= =?us-ascii?Q?EPEZ5fZBnp+srrItjps7jjufFGLknd2M3JsT254oo0CWRtAXs09AaL6YRqzk?= =?us-ascii?Q?LpCG68L6a8s7FSHWPc/0FZotp3gkmBQNPYAA/CV+SOSDhJvK3d9v0S1fQEBL?= =?us-ascii?Q?ae0/uQx9GugleUNU3o3B4ol53yB+McA3L08I4qejQ5iWLSSJBGAnPgqRY3EG?= =?us-ascii?Q?asPlzyjoeDJ3/6MoE5NkMPjFUQQedV5imZBwZd7fhN1N58gWeEogMNEhSerC?= =?us-ascii?Q?N1RBsO0ad33ge5//qF5gnCFDBAFIR2lcXRyboF9HRAk4v3XDxDR+0B2OvZLK?= =?us-ascii?Q?1VtqQUtNIvCjcdw60IJHIvxfPWu8KRxVvqDASbjaqlsqApNg7eCxCeUl2Ie2?= =?us-ascii?Q?PBwfinygboWjSK6P02DWFurZ4yhwCSlAPolkqY/ZyTIR3c+nCpa+P5X00Jjy?= =?us-ascii?Q?/R6c3T9QqPt/oJ1Ph+zne1m4lilonHxN4GiwA+aE4WG6obsQYqAzfEPC/2oT?= =?us-ascii?Q?cCc2PzPAV/uq8ql6am0YzSNCsTrfytwOLHshWc0HLZfYvA9ovUVIMHWy0SCf?= =?us-ascii?Q?fXAbirVopTvckcB6svnQ63jKUjN4hglYWhhy62qdeJinaSjwOkR0/j7XlP6i?= =?us-ascii?Q?9KkMRhrj/iDWSfvkHUdyJn7/LFdP+15aa/GPng8yucbFZhaSQrE0soVLOn/P?= =?us-ascii?Q?Q/a19tK6LZivI/r47Os5cmGoDv2TDT5rasDh0NRxe4X93Ztpvz7Qlz3fCCQc?= =?us-ascii?Q?OoWYU31Cnsx06PXU+nZlFNV66cyXjU4vTv/nmXzhIm6Jt+DnJqTdxCVpjwP4?= =?us-ascii?Q?eMhXIjED+uLwxEXuKyGXjqdlLdFSloAt6fX6uwB8tdky6tf9Nfrded6+zmYk?= =?us-ascii?Q?lqe6a/ji/HcWtBsj8yMj54nBwH/Qg23e9SZLscIZfUZbB6J79w5F4WMvopbt?= =?us-ascii?Q?H+TdbQnPN6VPHupRlC3lXNmsamRR2IN2EeZqP9jXABYeGTtKmhZDNjdkJNUb?= =?us-ascii?Q?wmI/tdvZ4//5lWXIGtF49HqzXFBB+uJbFtIEE3hnSbyKaHO7S36pEeaIg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR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+1RYyWG8VONMwG9TNVWaipE0d2PvtGUIQ8W+e8sjzEmMe2rDw5gFdQp8qPvQrsVUs23B1//EHWVgr1v5mbR6nPOFyACHeO4Rgaq6jHCjRsCtqNwy85OlV4NQgfVRIOpT2OO98trrH00y+Pwj8kPM4PkpOp5gQ+zPPweiIrbm6+PfOWgCFf458LecqBOj5g/B X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2017 20:04:46.7229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6b458f5-78b2-456a-fd1f-08d53ce49a7c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0158 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.32.43 Subject: [Qemu-devel] [PATCH v5 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 , Peter Crosthwaite , Eduardo Habkost , kvm@vger.kernel.org, Marcel Apfelbaum , Markus Armbruster , "Michael S. Tsirkin" , Richard Henderson , "Dr. David Alan Gilbert" , Alistair Francis , Christian Borntraeger , Brijesh Singh , Stefan Hajnoczi , Cornelia Huck , Paolo Bonzini , Thomas Lendacky , Borislav Petkov , Richard Henderson 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 7eec403cd34a..f63659eda45b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3203,3 +3203,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.11 +# +## +{ 'event' : 'SEV_MEASUREMENT', + 'data' : { 'value' : 'str' } }