From nobody Tue May 13 23:03:12 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1528468938417161.41130906460342; Fri, 8 Jun 2018 07:42:18 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 78F3485363; Fri, 8 Jun 2018 14:42:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A15864429; Fri, 8 Jun 2018 14:42:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B19454CA82; Fri, 8 Jun 2018 14:42:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w58Efeks026276 for ; Fri, 8 Jun 2018 10:41:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id E9CA316BF6; Fri, 8 Jun 2018 14:41:40 +0000 (UTC) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E03004529 for ; Fri, 8 Jun 2018 14:41:40 +0000 (UTC) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0052.outbound.protection.outlook.com [104.47.40.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1992F308A945 for ; Fri, 8 Jun 2018 14:41:39 +0000 (UTC) Received: from localhost-010236106000.amd.com (165.204.78.1) by SN1PR12MB2461.namprd12.prod.outlook.com (2603:10b6:802:27::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.13; Fri, 8 Jun 2018 14:41:30 +0000 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:X-MS-Exchange-SenderADCheck; bh=a7Yjo5zx3Gr1Ki8YACzDzuNEf6s6jfhs4M48Y6GIIhQ=; b=B718VeGiTshswij/N2R9r5/HYcbKmhIx4VywGWonXw7g8w3fF8T6CwfQC5hXCNRTGTIos9OSJoosY++izoqgrQs/Vv8zeEAqqXOH7n3Seblz7lScd5l5EShuZ6u5IGVmhb8lE4+ovKjtUqadf6HeOBX9ax0eF3cXVU7ZZcBohfo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: libvir-list@redhat.com Date: Fri, 8 Jun 2018 09:40:56 -0500 Message-Id: <20180608144101.34228-7-brijesh.singh@amd.com> In-Reply-To: <20180608144101.34228-1-brijesh.singh@amd.com> References: <20180608144101.34228-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN4PR0501CA0133.namprd05.prod.outlook.com (2603:10b6:803:2c::11) To SN1PR12MB2461.namprd12.prod.outlook.com (2603:10b6:802:27::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN1PR12MB2461; X-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0BJby83uI6I0PoJx8AXlzrTRg9fezxQblVy3CZhZaPf4EBHNcsVteeJU1w/C/R3zUztANqllAYMKhMkPMIldn5YcI3A5EURxLQE0q5avBajbY99KUTe20qJ9KApK4hZ1ikCS48po7HrIL4t56sBQ+1omMbzt3+wED/2CltjrvnWV/ucI6oQJsDHraYgLXiuPwXTQ1ZBv/DiKBOGLIfSaAyuYP2V3iubPKqsWPvAUXKTkeIPU4ttuWBGa18jZOz6S3XbPoJj2xqQTlkfmBbFT7LBi8/loZyde52v+7a1iWWO81oEHDG9D9IxoOu8zw4GcRbaKzpDNLkFp+sfgs5memGn84fkwlQbCpuIuyC4EXLdaUxeSuDVuxULEJKBgX+Pr//4x; 4:+7PD+yyvBsuxSTeZwbde6MXrIHlhj3fWjDwrrRKsCUzh+jCLoY9NjUBQLuIpc/lS4MK9WhUWZovVzofdOQ5qQQUcDvRPRCAGiE5CDQhgX9Di+vWF4J/TfXNPr8qpDjglTrnrty0j49idvl0xJiXRhT1VR8Z98BlETRk5FWJl7MbXuj6qtW85QMnk+bbiPsR17aBhRfu9uee1+QIGIwfs553z5/UDhaVZ6neqy27qGg+Cc5kJHRmje7t/tdq2RpCr7/EG7TfbxKsEkq+uNLLYiKZ7r/ZkqcTjTw8dFtZxEakcP/YltWrytlrN4JqIxxmGrpgjfdyKGZAbiVwLzQrw4w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:SN1PR12MB2461; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB2461; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(39860400002)(39380400002)(346002)(396003)(366004)(15404003)(189003)(199004)(106356001)(68736007)(2361001)(105586002)(305945005)(7736002)(4326008)(2351001)(53416004)(86362001)(76506005)(5660300001)(606006)(966005)(50466002)(47776003)(6666003)(48376002)(81166006)(81156014)(66066001)(478600001)(6486002)(6306002)(25786009)(8676002)(6916009)(6116002)(3846002)(8936002)(1076002)(97736004)(50226002)(236005)(386003)(59450400001)(54906003)(51416003)(76176011)(36756003)(52116002)(7696005)(53936002)(316002)(16586007)(476003)(956004)(2616005)(11346002)(446003)(44832011)(486006)(15650500001)(2906002)(16526019)(186003)(26005)(44824005)(19607625011); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB2461; H:localhost-010236106000.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB2461; 23:RTM3GC5F16yVhorW3cIwIjAXjCiXLg30Pxfi+dm7i?= =?us-ascii?Q?L0xxUpB22+9680DMJFM5cCcaHxGJO8/h5FKV8gU3X1UUabRwlkv96+wdpv8d?= =?us-ascii?Q?kGnYsD+/EGZZTkdA82ER2AlAIUY/pB4MkskZrbTtuBpZZisR+l8BGmFO+3PV?= =?us-ascii?Q?6msxaHM6AT57JdEnASTkoykITb41zvqTwrALZpaKYA8GqsW5t5bgk94hhUhD?= =?us-ascii?Q?t47zDWkH2OaHarcBz4vr6kzBhhJROf7BaqrWVVhzl2ffwXRD12jm7OSI4rFL?= =?us-ascii?Q?Iw62lghbzA4SoxXpvpwNV/OF3uqH4GnN/XXZwjgICdYHdyIS72vjjlcol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E8QCApg/wgjaPidqYqFiIlbzpsD?= =?us-ascii?Q?p7E0YJ53A3kLw7vZnaKEvgNx49QI5xa/hVs1sO8JqZuQMBUuvKIuGez6N96g?= =?us-ascii?Q?KwvKgis1/QqNbtdFNv504JJJCRn6mReg622SDrJIScnaPBTV9me4HD7exx7A?= =?us-ascii?Q?91CTiJOkIJ+OpjSsImmyoffoPuDfKuPR8YhlmwQDGUwjsHYWEyB5egwCo00A?= =?us-ascii?Q?UJpbJ059Y4eISDpEEq8syhAqCXXSXzvuw/xT7rmgi6FWrszQZnOK9/SbJG2J?= =?us-ascii?Q?p+jkvw3KBOJeehef2A8hrlygzmq+OHSiU4=3D?= X-Microsoft-Antispam-Message-Info: I5NvpWs1QcqjKfPPdGLvB/VtIWQoPQaO7jEXlcLDQ0u9l9waseezHkxkb6fgIKdk0DietqbuTRR7Jj2o2C/rX1hZc4gkvug5QbvBhF+iJiqE/omvi/XMkCx/O3V14+nkaKZdSHGqzn03zAbS7LO4cy4TRxnO2k7fdz1vntRteTzRDHX23eQGraw7ubXyWSdA X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2461; 6:C554mbeYnjwRyBTPZqTWFgCg4V25SeaRaYV67UGX9dAqUwzZtX4RsqrmZl5K2mHqfd72he8puOauwvTNPhwsba674mjMltzuuweR1abzWX+kXgSKn6vmLCk3wzvOONOFBQ4SRELXjWmPxAHZYEQP38yEFwqLAGSNN7/+nMmNbBAJZrxy50u9TIazQJnmGscJoNXun/d71MQZA/SBbhvuHmKI5teRTkiNLnyQBxtn2afrO7KPER6jvbcDmoncJad+AuDG2scujTmP6qcRjaj52IdcuEOhk0o4Tf+AyKeQw4VrMW2wmSaYs+D9RwcINI/rqgTPjwIHDBYLyMbq37BmDUyVd8ujgAl4VrmHTb+Nzy7ZUSngqrfEmkUj5sAn6IBn/SY51oPxLbN1hP3l4Y90KbWFbLYSewch8GuyonIo1SGahrbqly08tpMN3NlQRR6P7xlSZZRQRzjy/bT1YDzZvg==; 5:zY/Nkn8RzbYtFJBcmRSX5vcSb6sOCzQcfqRuPUFrSMypM3TmFCDTwdm6ohPD6704D8CpMg8iIIp1IS5AwSk652CdK5jpTLQ+e4XsUjikNwj8eX0ksc596xnn5IIUl5DSNT5G0DX7LkpNM9iyg5wbYLV3C/w+DYuOX6Dl83htCT0=; 24:ol8Im9ezBFMvMJtUzQ9uAxQy2jB/Zx960l4LbORf6m0qBH4I9P5741LumAhUo0LA6569kFQXoK1VL8NK3NMM5fljF50h+xvqvko+APaekJE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB2461; 7:oi+3dUOoKZCtldB1EZeBXpF+09WpjGC98cKaY+jwl17cyOzWA2oWcwUXqU2NLyBH8vA+xZa7YoaynrtN5jzVWD+pDR2qf9r7Cty9XJ9+8DopUqi7HRduLcMMKxFBLryIvOPXYRAIzklavGnfLdaMIaRULDw4jZUc7vVbG7Je8I2D8v84QQOWyknsQmWcc+xt2CIt4ge8qNwBMBSZYMXIvpoJDItorXkT7Yon/KssmM0fHgEjm5XDtZBSCNwx/sdg; 20:SRkx5FrA87IHQ+K2wZdNFa5HdF2gAVvGPphVvopq5Zrh9QR2di7df17XuF3QC9eFxQdumgBppNwkGm2JgCiyeSc0XPJ9ki4/p7JVFl6l2/J1t/el1iJdVG9X6Vh/C7/hUCRcr6OyJNkAP8yDXSu8OZf+EUcUXnmlerOMBLswcSgbvYBJWjFCUwRgan460TjFUo14oGuhyZQnUXGGLFAYZq46iAufsDQpnDpzT0tJSMVwlU8jRPRSWDxhUEvJGD65 X-MS-Office365-Filtering-Correlation-Id: 80adfa07-66f2-4e67-0299-08d5cd4deccc X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 14:41:30.9890 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80adfa07-66f2-4e67-0299-08d5cd4deccc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2461 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Fri, 08 Jun 2018 14:41:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Fri, 08 Jun 2018 14:41:39 +0000 (UTC) for IP:'104.47.40.52' DOMAIN:'mail-co1nam03on0052.outbound.protection.outlook.com' HELO:'NAM03-CO1-obe.outbound.protection.outlook.com' FROM:'brijesh.singh@amd.com' RCPT:'' X-RedHat-Spam-Score: -0.021 (DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, T_DKIMWL_WL_MED) 104.47.40.52 mail-co1nam03on0052.outbound.protection.outlook.com 104.47.40.52 mail-co1nam03on0052.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.41 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Tom Lendacky , Jon Grimm , Brijesh Singh , Borislav Petkov Subject: [libvirt] [PATCH v9 06/11] conf: introduce launch-security element in domain X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 08 Jun 2018 14:42:17 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The launch-security element can be used to define the security model to use when launching a domain. Currently we support 'sev'. When 'sev' is used, the VM will be launched with AMD SEV feature enabled. SEV feature supports running encrypted VM under the control of KVM. Encrypted VMs have their pages (code and data) secured such that only the guest itself has access to the unencrypted version. Each encrypted VM is associated with a unique encryption key; if its data is accessed to a different entity using a different key the encrypted guests data will be incorrectly decrypted, leading to unintelligible data. Signed-off-by: Brijesh Singh Reviewed-by: Erik Skultety --- docs/formatdomain.html.in | 115 ++++++++++++++++++ docs/schemas/domaincommon.rng | 37 ++++++ src/conf/domain_conf.c | 133 +++++++++++++++++= ++++ src/conf/domain_conf.h | 27 +++++ tests/genericxml2xmlindata/launch-security-sev.xml | 24 ++++ tests/genericxml2xmltest.c | 2 + 6 files changed, 338 insertions(+) create mode 100644 tests/genericxml2xmlindata/launch-security-sev.xml diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6912762..77845fe 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -8458,6 +8458,121 @@ qemu-kvm -net nic,model=3D? /dev/null =20

Note: DEA/TDEA is synonymous with DES/TDES.

=20 +

Secure Encrypted Virtualization (SEV)

+ +

+ The contents of the <launch-security type=3D'sev'> element + is used to provide the guest owners input used for creating an encr= ypted + VM using the AMD SEV feature. + + SEV is an extension to the AMD-V architecture which supports running + encrypted virtual machine (VMs) under the control of KVM. Encrypted + VMs have their pages (code and data) secured such that only the gue= st + itself has access to the unencrypted version. Each encrypted VM is + associated with a unique encryption key; if its data is accessed to= a + different entity using a different key the encrypted guests data wi= ll + be incorrectly decrypted, leading to unintelligible data. + + For more information see various input parameters and its format se= e the SEV API spec + https://support.amd.com/TechDocs/55766_SEV-KM%20API_Specifi= cation.pdf + Since 4.4.0 +

+
+<domain>
+  ...
+  <launch-security type=3D'sev'>
+    <policy> 0x0001 </policy>
+    <cbitpos> 47 </cbitpos>
+    <reduced-phys-bits> 1 </reduced-phys-bits>
+    <session> AAACCCDD=3DFFFCCCDSDS </session>
+    <dh-cert> RBBBSDDD=3DFDDCCCDDDG </dh>
+  </sev>
+  ...
+</domain>
+
+ +
+
cbitpos
+
The required cbitpos element provides the C-bit (ak= a encryption bit) + location in guest page table entry. The value of cbitpos is + hypervisor dependent and can be obtained through the sev element + from the domain capabilities. +
+
reduced-phys-bits
+
The required reduced-phys-bits element provides the= physical + address bit reducation. Similar to cbitpos the value of= + reduced-phys-bit is hypervisor dependent and can be obtained + through the sev element from the domain capabilities. +
+
policy
+
The required policy element provides the guest poli= cy + which must be maintained by the SEV firmware. This policy is enforce= d by + the firmware and restricts what configuration and operational comman= ds + can be performed on this guest by the hypervisor. The guest policy + provided during guest launch is bound to the guest and cannot be cha= nged + throughout the lifetime of the guest. The policy is also transmitted + during snapshot and migration flows and enforced on the destination = platform. + + The guest policy is a 4 unsigned byte with the fields shown in Table: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Bit(s) Description
0 Debugging of the guest is disallowed when set
1 Sharing keys with other guests is disallowed when set
2 SEV-ES is required when set
3 Sending the guest to another platform is disallowed when se= t
4 The guest must not be transmitted to another platform that = is + not in the domain when set.
5 The guest must not be transmitted to another platform that = is + not SEV capable when set.
6:15 reserved
16:32 The guest must not be transmitted to another platform with a + lower firmware version.
+ +
+
dh-cert
+
The optional dh-cert element provides the guest own= ers + base64 encoded Diffie-Hellman (DH) key. The key is used to negotiate= a + master secret key between the SEV firmware and guest owner. This mas= ter + secret key is then used to establish a trusted channel between SEV + firmware and guest owner. +
+
session
+
The optional session element provides the guest own= ers + base64 encoded session blob defined in the SEV API spec. + + See SEV spec LAUNCH_START section for the session blob format. +
+
+

Example configs

=20

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 550fb10..1d06a5e 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -77,6 +77,9 @@ + + + @@ -436,6 +439,40 @@ =20 + + + + sev + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +