From patchwork Wed Mar 7 16:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10264537 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 CFA0F602C8 for ; Wed, 7 Mar 2018 17:08:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB61D294D4 for ; Wed, 7 Mar 2018 17:08:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFD6F2958A; Wed, 7 Mar 2018 17:08:08 +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 93437294D4 for ; Wed, 7 Mar 2018 17:08:07 +0000 (UTC) Received: from localhost ([::1]:34434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etcXu-0004nX-Q9 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 07 Mar 2018 12:08:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etcHn-0004qc-6p for qemu-devel@nongnu.org; Wed, 07 Mar 2018 11:51:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etcHj-0008O2-BO for qemu-devel@nongnu.org; Wed, 07 Mar 2018 11:51:27 -0500 Received: from mail-by2nam03on0085.outbound.protection.outlook.com ([104.47.42.85]:43840 helo=NAM03-BY2-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 1etcHj-0008ML-3N for qemu-devel@nongnu.org; Wed, 07 Mar 2018 11:51:23 -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=AEQA7Af6hHD+T3oEM5xvpi75alHF/fbThi9I3EBRL70=; b=uDDwekJp6l3r/Mt7gxt5LsolywHn9yvfzJQDorMmfpxUZG61qPDBcSOhBiPmKEK+qdtZIUUgp6N2UkTTz7HqzxkXSHo7kk0zwSQ2chRw9GNF8Ho6E8l3OQX+/j816HAYYTQvmbzkDkCzxcEPUStJQDLwZ9rhY1Mz57KUgi3zYKE= 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 (2a01:111:e400:5144::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 7 Mar 2018 16:51:19 +0000 From: Brijesh Singh To: qemu-devel@nongnu.org Date: Wed, 7 Mar 2018 10:50:28 -0600 Message-Id: <20180307165038.88640-19-brijesh.singh@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180307165038.88640-1-brijesh.singh@amd.com> References: <20180307165038.88640-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN4PR0501CA0095.namprd05.prod.outlook.com (2603:10b6:803:22::33) To SN1PR12MB0158.namprd12.prod.outlook.com (2a01:111:e400:5144::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a021db4e-8226-4f58-8555-08d5844ba6ba X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN1PR12MB0158; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 3:oJzaI84YDSCQf9MXzDNUNDYocVKKus2NA/DrMJhXO1sq/JUrAx2FaVySBENb5jaOCJq2cNBqgNuyd3RHQs18fpYMI2qY8Ep5xuoGIvl9WysFP8gu8r1oP80AzN8PyY253CZPocCQ7/FgxJIShOZgbbgyT1jzVSrZX4pO0MxMzhLwYESsBPly+k89ns3YJXma6p2W1D2jv9WgF84knOSIg4BI0QV73+uXBfokZWl7vcCS4n5Udk4n2e7X11Dc8vIu; 25:de32kQJj/LhDrAwTmUDP0xH3FQCXId+bnTNCxQ+uu8uhtsfqT+HHD1NBUoj00+k92cgPhmEreVLBMepoAMIdg0k9caYzVEC+0xp2nu1K8tblbgV40dyTYOqLZkqKlu0aRNOeRJJGZ4EzMkcPqc+/PVSirDMuzd744jnStg3Cz2HnUXoOUOPwatxR0PFEhxZlVlNoCpGJ32rCU6AA7mvXheTMZgiuyIclismxJjaFMnbKf+HA1nAI8+/zClypnIMkw/GGGidgZWKchtNIUMx7pxJH0yO1EMQzO4mydh4tzNCWXs3ZGYfHBTLIhn8zQ7FsVc1zhIRkl6j/crq8TvRbOg==; 31:UPrApQRJOUfy/avxD5EUYMaRIjQwYtODmAPdUwJZ+Xi5GsOZX139n2pIJV48g4Dldsp0n1TdnH73zYNA18mLTZO4Scl3KDJa7w7bPYtIQD1Qi1DxT9sZ0fKECi8MpA6kBLFDapLCAfOYXWZMiDepCK0zCVDOwmoofAQ6wNDrVj0l5jx+OVpKKUQ99kdQdrpSrf+GAQWonlzVDPckQGAQ59tiz5UOJiinaWxf0bkuX3Y= X-MS-TrafficTypeDiagnostic: SN1PR12MB0158: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 20:3K4mSSROosm22ML2s0Mb+MBTIHcE9dakLGDrcHHx9GYc244+QM5BlLa1eiDSICIt1Frj9WF+6yWgU5NUkf4n3khlvkv3jpXYJMBYpJJefGCiVhgXM48jZelxPLErRMSBqMooe3+MBNo4Skb1nzF+sKYg0/CdBqTYly1XwSF/WoRCL2niAZyu15Pg9rI0LaaOCz7BLD1l36938P0xl66nTTeMJAj2V/VzS1EaQQXT8k5xe2vySTqascIZ79ttCqGBspYIf8VhwyKzJIYiInGLwFH2ANXxqQJeYFPbtq6YSWWeP14tvkBspZV+OJFs3oJ8y7ahcOnnWUUnf+dnltsaSR6JQlP03genJuASGCL+sf9BGK/pi88Gs7v637WD95IuJaeXl3ZVNbeh3WrvpKe7ICXvLkGaBYy4COBkQaHowdcU6rSQ24HcmOdx7TwzovXn8s6a4gq8BuG3utn+MZrx40izq/qOqv6YOoyDo0gu/5su0IEdf9lJU5MOCWkZdICQ; 4:F25foUL2fIN4eAclHGXB1foNhBWuRi2PnTsuq29ZDv2rAFgQJxtYcowDjek1BX0Lz3lpVMozOrYvgeNUPWvc18mfH5QLhFkU4bVYI/aJLogs1I8b7THQoEjOAUmtFz6E0N6XVKluI7W5Sp0054qk0Ep5hkP74CZr0NfnRG03kKQbh2dpiKqD3Un2JEgdtWqL++sjR1tBTeWjU7WKPrUX3rNIWaReYSeX4xfF/8w89J+9LtgBSRvIeOliRGT1FnBcLIRzaNqD8gdw8ttGx3VqYYTBnsm8P4PTx0YrDo4cgp18togsB5GqtlyNUAORyzlv X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(3002001)(6055026)(6041288)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:SN1PR12MB0158; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0158; X-Forefront-PRVS: 0604AFA86B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(39380400002)(39860400002)(376002)(346002)(396003)(366004)(189003)(199004)(53936002)(8666007)(2950100002)(6486002)(6666003)(6916009)(53416004)(3846002)(1076002)(6116002)(4326008)(54906003)(8656006)(2906002)(25786009)(59450400001)(386003)(68736007)(478600001)(48376002)(50466002)(105586002)(2361001)(2351001)(575784001)(86362001)(66066001)(106356001)(47776003)(186003)(16526019)(51416003)(76176011)(52116002)(7696005)(26005)(16586007)(316002)(50226002)(8936002)(8676002)(81156014)(81166006)(36756003)(7416002)(97736004)(305945005)(7736002)(39060400002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0158; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:THs29IcdH/5Oibgf499np1Vo4v535AKo8oFYf4+PE?= =?us-ascii?Q?YZMBGXf2MoB6W0x0to5shqXcv7U8IM+U+DKQmdmgjHxjI+RcmoZ0+FUX5fT/?= =?us-ascii?Q?M0D9X3zTZM9gYhKeQcaLpkMml75av1fm4dSUKYwKOyRbtgnmzJNEqLAFNAQo?= =?us-ascii?Q?b7oNXXrKdRIOhJNbv9BhHFiEvzxfR9IOhz4nkdPSu7TE0YyePg4/Bk8bRZBV?= =?us-ascii?Q?gOoQy9GvAEuGo8lQsCK4mE8lwz55mhbHsT7c+8LyxISKfJ3fWIu8h70vuRus?= =?us-ascii?Q?NUQK4b+sMCDkY297klZoV1BJc2QAIaT1bIrK3xUTiqjgb5k3fVggQDeA7XKP?= =?us-ascii?Q?V4bZiB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hZ+XTOZOaawh+VVhPtvRfLzno1j7XNPPnm0Xs45wLCdPqLTWSDpace8WW1OIB+EsOc5gMvRf6KOALFt2kPTANO5ihDDrYCpps2VxAD2PkgFer8BN40zexq12e5ZVmGTdEKtGkNGn3579jIPGtiR/jnXVO73L4ugNFyyWoG1PtzKTjvUjN5AhoSf/+WryEiTSASJG4eXzGL2eKUgERhCeT68Y/ruSA8HC+yN2FM/tKuqWpYm4C SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 20:ydscjQN/eiklPsNTx9bOq8H4jZx5/AnMsI2Ci1kMPW5ZPUNkSAbq5xTWj0LRQ1Oo3OUCBF4XHv27g1W+cCrvD5ZVBq/XcDA+CCmWsUpTiHR5UoOpwYBrzMISSidY/eEWE17HB2AsYF2u5uA5knBEmmeKOGP23IyBxOmxRaOVdHt6oyPGn69LFebCAXvJXYyIblVkFhTDqfOIVyuyRZ4Qq5VyL4p29zco6/t3HkaVLTIr8pN238GZ8w36GgItqBLc X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2018 16:51:19.0573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a021db4e-8226-4f58-8555-08d5844ba6ba 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.42.85 Subject: [Qemu-devel] [PATCH v11 18/28] sev/i386: add support to LAUNCH_MEASURE command 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: Peter Maydell , Brijesh Singh , kvm@vger.kernel.org, "Michael S. Tsirkin" , Stefan Hajnoczi , Alexander Graf , "Edgar E. Iglesias" , Markus Armbruster , Bruce Rogers , Christian Borntraeger , Marcel Apfelbaum , Borislav Petkov , Thomas Lendacky , Eduardo Habkost , Richard Henderson , "Dr. David Alan Gilbert" , Alistair Francis , Cornelia Huck , Richard Henderson , Peter Crosthwaite , Paolo Bonzini Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP During machine creation we encrypted the guest bios image, the LAUNCH_MEASURE command can be used to retrieve the measurement of the encrypted memory region. This measurement is a signature of the memory contents that can be sent to the guest owner as an attestation that the memory was encrypted correctly by the firmware. VM management tools like libvirt can query the measurement using query-sev-launch-measure QMP command. Cc: Paolo Bonzini Cc: Richard Henderson Cc: Eduardo Habkost Signed-off-by: Brijesh Singh --- target/i386/sev-stub.c | 5 ++++ target/i386/sev.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ target/i386/sev_i386.h | 2 ++ target/i386/trace-events | 1 + 4 files changed, 71 insertions(+) diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c index c86d8c139237..2f61c32ec975 100644 --- a/target/i386/sev-stub.c +++ b/target/i386/sev-stub.c @@ -39,3 +39,8 @@ uint32_t sev_get_reduced_phys_bits(void) { return 0; } + +char *sev_get_launch_measurement(void) +{ + return NULL; +} diff --git a/target/i386/sev.c b/target/i386/sev.c index 6a5f026e8fc6..e01c753be3ec 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -511,6 +511,68 @@ sev_launch_update_data(uint8_t *addr, uint64_t len) return ret; } +static void +sev_launch_get_measure(Notifier *notifier, void *unused) +{ + int ret, error; + guchar *data; + SEVState *s = sev_state; + struct kvm_sev_launch_measure *measurement; + + if (!sev_check_state(SEV_STATE_LUPDATE)) { + return; + } + + measurement = g_new0(struct kvm_sev_launch_measure, 1); + + /* query the measurement blob length */ + ret = sev_ioctl(sev_state->sev_fd, KVM_SEV_LAUNCH_MEASURE, + measurement, &error); + if (!measurement->len) { + error_report("%s: LAUNCH_MEASURE ret=%d fw_error=%d '%s'", + __func__, ret, error, fw_error_to_str(errno)); + goto free_measurement; + } + + data = g_new0(guchar, measurement->len); + measurement->uaddr = (unsigned long)data; + + /* get the measurement blob */ + ret = sev_ioctl(sev_state->sev_fd, KVM_SEV_LAUNCH_MEASURE, + measurement, &error); + if (ret) { + error_report("%s: LAUNCH_MEASURE ret=%d fw_error=%d '%s'", + __func__, ret, error, fw_error_to_str(errno)); + goto free_data; + } + + sev_set_guest_state(SEV_STATE_LSECRET); + + /* encode the measurement value and emit the event */ + s->measurement = g_base64_encode(data, measurement->len); + trace_kvm_sev_launch_measurement(s->measurement); + +free_data: + g_free(data); +free_measurement: + g_free(measurement); +} + +char * +sev_get_launch_measurement(void) +{ + if (sev_state && + sev_state->state >= SEV_STATE_LSECRET) { + return g_strdup(sev_state->measurement); + } + + return NULL; +} + +static Notifier sev_machine_done_notify = { + .notify = sev_launch_get_measure, +}; + void * sev_guest_init(const char *id) { @@ -588,6 +650,7 @@ sev_guest_init(const char *id) } ram_block_notifier_add(&sev_ram_notifier); + qemu_add_machine_init_done_notifier(&sev_machine_done_notify); return s; err: diff --git a/target/i386/sev_i386.h b/target/i386/sev_i386.h index c06be12c8079..c21d1f31d712 100644 --- a/target/i386/sev_i386.h +++ b/target/i386/sev_i386.h @@ -42,6 +42,7 @@ extern uint64_t sev_get_me_mask(void); extern SevInfo *sev_get_info(void); extern uint32_t sev_get_cbit_position(void); extern uint32_t sev_get_reduced_phys_bits(void); +extern char *sev_get_launch_measurement(void); typedef struct QSevGuestInfo QSevGuestInfo; typedef struct QSevGuestInfoClass QSevGuestInfoClass; @@ -83,6 +84,7 @@ struct SEVState { uint32_t handle; int sev_fd; SevState state; + gchar *measurement; }; typedef struct SEVState SEVState; diff --git a/target/i386/trace-events b/target/i386/trace-events index c0cd8e93217f..f7a1a1e6b85c 100644 --- a/target/i386/trace-events +++ b/target/i386/trace-events @@ -13,3 +13,4 @@ kvm_memcrypt_unregister_region(void *addr, size_t len) "addr %p len 0x%lu" kvm_sev_change_state(const char *old, const char *new) "%s -> %s" kvm_sev_launch_start(int policy, void *session, void *pdh) "policy 0x%x session %p pdh %p" kvm_sev_launch_update_data(void *addr, uint64_t len) "addr %p len 0x%" PRIu64 +kvm_sev_launch_measurement(const char *value) "data %s"