From nobody Wed May 14 06:09:22 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 1527110379173176.21833974579852; Wed, 23 May 2018 14:19:39 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 77CCE3003988; Wed, 23 May 2018 21:19:37 +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 404EB60BEB; Wed, 23 May 2018 21:19:37 +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 EB69A4CA89; Wed, 23 May 2018 21:19:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4NLJDKF028766 for ; Wed, 23 May 2018 17:19:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id B8D33619FF; Wed, 23 May 2018 21:19:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E768760BEB; Wed, 23 May 2018 21:19:09 +0000 (UTC) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0040.outbound.protection.outlook.com [104.47.36.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9414A3082A32; Wed, 23 May 2018 21:19:07 +0000 (UTC) Received: from wsp141597wss.amd.com (165.204.78.1) by BL0PR12MB2449.namprd12.prod.outlook.com (2603:10b6:207:4d::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.11; Wed, 23 May 2018 21:18:58 +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=jJOyCUB9O0HdZbHQxCOS+1TBUJ/4gDz9bfQPNLTuSjI=; b=zZbcd5EgJ5UjCFAr3Ty4no57vDFF5u/EyF6YlCtPfBwIFrhuUZNMYX2CF6SWW4oFkxFkKahm1GQ5D4QYE2gcNKTwG1iELU7Har5KUfRk7jNCtAvH0XnQdPgNEwtw6Hzn2eyTvypXMmrA/Ckup6TKdH847WRA/yJToxVS74EC7UQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: libvir-list@redhat.com Date: Wed, 23 May 2018 16:18:28 -0500 Message-Id: <20180523211834.15817-4-brijesh.singh@amd.com> In-Reply-To: <20180523211834.15817-1-brijesh.singh@amd.com> References: <20180523211834.15817-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN2PR01CA0050.prod.exchangelabs.com (2603:10b6:800::18) To BL0PR12MB2449.namprd12.prod.outlook.com (2603:10b6:207:4d::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BL0PR12MB2449; X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2449; 3:F447o+M5MCw+vLOjUjdx95au9wsL5IHgi/dK4FJh9wz2+C6zZZOwaM9n1bdSZBohvMMAkSdl7fJ27dMffDHaqcxH/1HrwWhIEfPs7HK2G2YGMSJjnU+UjHjGZmbMYvbn0Np5x2X+XC1WXAhdsceSOPlDGQAbZwHOonoqK5sEbfG09udtfglXmhkuCTL2KDrzjJlYEFQc6kuFSvpo9A5QUNh1qyJerzqW9EPWmNunUEVIbIR/YNN4CRx4dm4bMWkD; 25:U+0caRSgtNXoO+33TaYLKs1riX0DuySVBGqRfE0BTVG4xjC8ykIBV2TUfeo0wd3gOmM+fbIrSHzNSGNPjcNxGxLF6QLDXgTG6f5SaQHDpQo+32fM4mwg1earU0tmmdtBcyBqVuLIf2nQZHfgDfn54xp96M/D+8gouOCuBZKYj6IcQ1Imy43qCnmbEAR7ujilufB59cg++jPTGeRY3o0w6lOBZGT78bnWM8FIoWsHP4mJT/8bcdJ3nWNIdj1vuJUZmpkY4CEE+leWAhlVFwh/gP+EYFjFTf++zc4/bqVewg213ixX2pBhDobXO8NkZNlPZympUS0bEoOP+M0zotsytw==; 31:m4/85NjagLu17UCPWqWRmX/gf25si8YynSYgpItUX2hAbYumZHIqu5L42HEu1oD6wZVwzwLvMnIGOvguxxKzxv63p7zNC+V6om/mMG2HZ55wN0FjSR1NKWHXNVI3AyAfSk7OSGo1EJoQHCcVHEXY443Dn84M//1QhIH51FRtuJXk1IsQFk6h3rGZCduKf0C5jeugPM+kc9AWszGtgrOHk4d1P8mtFjPBFFPOw+n7oZ4= X-MS-TrafficTypeDiagnostic: BL0PR12MB2449: X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2449; 20:AdLWzKcHMVUzSotkbrMLEHfKyWouK15S9auhTCVOmJ8uw8t7CygxYT1uHAM/O9VII4i322+5jqQWBd8vm87773VosZu/GMgr3VoVsgKMjHEa7/FYAnIwUESyBTF1YwYq6Rv5uy+7/nK77bxG2YAINwway93itTip9wwGGsBB7vMA65rMXXXHDAdr9lBGgs/khErbGA9Ve4CubbFI2MtgRjGLS9vKgmv+bTHil4nH4MnT94sF+vKWcGBo9oVyzqIvnudRcTwQCwiHUcn2G5wR8scBU1lnm91MHNPJPzHwFw2Q/TBB4U7agkCnxAqo48SfeXv9MxnOK9xi4JdTomSnQApn3m0LZjMZ9etLOJM9csUbOppOab+QkuWuP2lUbILwdAO5WVeyaxzOeTrqzawmnKdreFfXUc7GrA5CN5hud6bCobQquZzLOLQ8o2Ffo/dY/K/U5pFYMtS/nu+hIjeeaeXvIymP9Evyza1z15SN1hwZ/7fybwgWnd1426tSuhk9; 4:FAN8tK1jVeLFsDD1C7RrYC4TiDVPdsq0H1mnn7TzHiPagkr94u2ydT8kO4D1e4Vvyr383cqUyOJ42Ke66TymZZiTFfLADAQ0+RfsNN0w3f1Z2qoJg2qLVV1wPuOglWawTr58v+Rl0eVbo4M56bze3I/VrkNFKeP3tFpYc25PFODYxNjHN5XVnnvShLW+VEa7VJUNg5B7k4ANIGPtA+sCvbniatP7+oogCUXHdZyrKk5nhu7NfsrLL5U0aLOCo3B8b1F2lfNwAaPwZnIZeSafbG7qQIQbo6PolEIfXWpCsdzz3gHjBSIImgBnPHrcv0N/DOB3oBYhuenD7Gv5PJM0XA== 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)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BL0PR12MB2449; BCL:0; PCL:0; RULEID:; SRVR:BL0PR12MB2449; X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(366004)(39380400002)(39860400002)(15404003)(199004)(189003)(956004)(6116002)(53936002)(1076002)(3846002)(4326008)(2616005)(6306002)(236005)(36756003)(446003)(97736004)(11346002)(5660300001)(66066001)(16526019)(15650500001)(47776003)(186003)(6916009)(6666003)(44832011)(6486002)(86362001)(575784001)(16586007)(2351001)(26005)(478600001)(59450400001)(2906002)(76176011)(2361001)(51416003)(68736007)(50466002)(966005)(606006)(25786009)(476003)(52116002)(7696005)(54906003)(48376002)(7736002)(305945005)(106356001)(386003)(316002)(53416004)(486006)(81166006)(81156014)(8676002)(105586002)(50226002)(8936002)(44824005)(19607625011); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR12MB2449; H:wsp141597wss.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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; BL0PR12MB2449; 23:ddGUpQvDymWQq0G9z/5s4lFCREEvUWGuDstDJ9sbe?= =?us-ascii?Q?nPcVLJOKaf3rDorO3G1KINlfxr8RL1sqzy5VzxqFHWnxiESnTaPjYNvnwqpE?= =?us-ascii?Q?ehBJduq7hL63rkxoxzU+QHN5ODfryKT5TbGLNDiYaoSkAzWP3pR+Daf/UEWm?= =?us-ascii?Q?LuXSH/eLHGAj+0ZH6vDqz/H0qaexjBnu3Kcml749s6UHvOg4YKnqBIgVZLlV?= =?us-ascii?Q?0WGr0pY6kKSZJzcFYaou3Y2S3SUg6Zp3zG1MF9ENjGDzARCOFEB75yH77Nbq?= =?us-ascii?Q?vQK9UhtlnbOZ/9x5XIkea/sFhp/Tu+rcrkqKPxTFKN0RpKSwMXssKNixBbZx?= =?us-ascii?Q?wonSEecJ0NMG/5TQYQrwqUsD/WDAIhuWNSf9ncnLZlTMGpgzVKSMvJ5dsXGH?= =?us-ascii?Q?aWxFzgJfTb5TM5wgA1p9zWum5FNrILMxPelOxcw14mQ8mIRh03PXlh1KYZMq?= =?us-ascii?Q?f8nDZTH34JCaZysYQiD2+cQD0vBX5Z15qKFFhBDqAVLZDTNW/EenvTZ3GI5E?= =?us-ascii?Q?qj0YkWzNWxK3Ktx3qe0UGtvFuUfa+/AP0glDKjdGoE2RZs+MHSjq640XzvkY?= =?us-ascii?Q?iyvzw2hje3HznKiithntMbVI6xHQpaA4PRdk0hGUFubb6GcRNTEupB0FQhg5?= =?us-ascii?Q?AMye94B9mddnWXuOSrU/cMdmlkqgpHGUqZW+VVb1lPJU5bcf6w988YidIYSv?= =?us-ascii?Q?iYlOizshJ+9e+rGzZzWbqnNOZulAJBedbIezwMBQBMr0QUAGJDHIyZWzTPvp?= =?us-ascii?Q?CLgQoM+ihlvJysPUeNU1xCdCKbiDfoDuNsMeaHIVIRWIRB5bgZYFC0yW6UAV?= =?us-ascii?Q?IIPk3zmHRg2I5dZWdCTFwua+/7APZP7Th2FR2IuL/laEfIRSPv7R2rCtWFbR?= =?us-ascii?Q?eWZAYzVYulNt9W4OxYctPF/kaOFbWq4Pt5UPbc3gO08RWTTEr+4KQZc3ZHRb?= =?us-ascii?Q?v3fQZC4q8FVSDALNhxeSK1eLXXHjcjbW/Kv+YLUZHJghX0TxWq2PBB8w2aem?= =?us-ascii?Q?L8cxT1Dck96y1RrqAu4nVGas3vMHL/dehxvEZHOisZtKYIkGo5+pzx7PQVZz?= =?us-ascii?Q?cq0L1kxbtyyTmDJyQ08wHCr7DDj6F0kG3UpnV6+Rn7Fhwcc8z0fFS+BRNHKi?= =?us-ascii?Q?CzXJVNskJUXaPX2wePPFsyHycJ2gHcurWFuU2Lrbk5zI3zDkx3NzIdAc2UEm?= =?us-ascii?Q?PVzGHOdA14Jw3BtIl3xn+TUBfyKrFrXrz4qieF5yE1SV3KpYo3yB3AyL6IrP?= =?us-ascii?Q?r4oB1fkfSzai+xdjXwgelzn7aqXS6pKq1FRTXVLQVQPik1SfCWjmP8jVMpO6?= =?us-ascii?Q?SAehyWJB3vJ1WvsDv5xNk1wdDyS2dmhP/LTI7TaHebaCc5urrDNkCMneCnr6?= =?us-ascii?Q?wVZmU+bztigBFO9QcHHa6/XcLHvjfkW1nilgfhHdq1WmTekfJrQ98AuKeFex?= =?us-ascii?Q?A3et9ggNTQlx+thjje01jLRGCoIRglRqQ2PK2CfzkMdl2bDuJEXu8bOYPPKI?= =?us-ascii?Q?3s0EbFfx6O2mg=3D=3D?= X-Microsoft-Antispam-Message-Info: HWFQZpsksjjSO/tf7PltFt83eDRpqMLMclmFjkFcMRLNpm7Hk9xHOavyx/WAEtvC+NO2KOHt+bq1m4tMZ3F8DTGcJ2H2fKjXMT0V7fea78+GoXO0MgJvSX3aI6R5vLbq5jxdBKC6a5Q6XY7HdnsRnS7x7xHHGPGHtRBDzezwopE1h4sj8uBhYdgftuAvpmrI X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2449; 6:KMQ3Td34hnrj4X5yOSYGiTptqVbYUOqwgvS7a1by/dPMUIpimRrGALcqCeeolplqHAGjeMag1V6q9ajidhtEiAdVycn2OjmjOUTxhYd50+7sot7hM2vNdPfbh4WP8Onq6INwGXcHkeV+1DBBRzazFumHAR8n+IKDTKpat6OCHxa6xheAzhgK6DlyhDeJsu+qhs7xXpe6fu9Tc8aWZFjgQRdZNy1MVrC396ro7+2RugQXTCpzKpeZl44LrYBir86zOeeOsTP5nH6RTL5T37pQef81ID22eQ3ERtd/tnRDYMqXD6djCu55h3xyDPFGoTjSSo2zDH1E6A003QYYbjLnl70q71L9ekal3bBAK8XtGDzsJaTY40HAv7PjmfX1yZlr1sOyUltWDhVGR5/55ZQKTCqxJ4IYKwZ+ceDfs2egcMVFwFqB1ti7A2qcCSei0g9EVYjh0olkxk/2stZ5kUQsRw==; 5:ReBjkUVy5MeG9+9Hqh2VhIeJzFO5S6sy0QkuLSQMxEdHPXRsW8TXZLZm+uXPP8zNdRfckl4EYBkwsDFZIBlPiUDM08aCXhiNDpuLmF93Fz9bbq9kduHbFftHUW5TnwL0+W5tv7XAIsevZnXP9gOdLZWy4TIH4jStWCoPWMV/He0=; 24:oqn4Hl+mtCaFsCwRmH6TayLl967wmm1r3T9sVpPeRGkDQCoEZic21ZMDMn9Wnkxh7MVKlh8FPHSArL+cB6bUuJxIqLHI3rKtbKLixGtGsqU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2449; 7:oEMJNZt5tUOprybzLfgne7eH7BM4DWsRi4wYF7MkbVqTB5sjwpNmiCsHdCO503BIJKwPMmcIToAhXHIzAu9v9+nAlOCqnh6/ygmkgsFROwbxcb9ZvAW3IPdXNHHnJo6yK1xC7EpGlcu8oTqmWF9Cdl3POTbIXAEdf20/7IO19hwbe7GWeZWFdecgPly3znbhrQ7pd7ZIBNEVgPajwESsrcPXDN/Ee9Q96EicHz5haVKu09HW7C1cbBUuiTsb4SPl; 20:o7po/x92rPx3Xl4+LD5Y/UJ2T1ljrDwXHAo9G9salcGkg2xzSqlAYU9GmD6eaeMzDsuL4L7o8QuEo0wTUKw/YoOeka2UjJ+qAnEnx3PSPw/O8nYK7IPUF2gypGQc5/a1SCNH8ZjX+d6N2f/X/7yh2hhYfXFtQUAn6j948EnRD29LqqbC1QOlLmkHg3JpPJkdLkBj3CT/hVmDFOwZfTk8GXQrTP1tZKFBoXxWmairwGMGEQBFl18fKbufuaffVQYe X-MS-Office365-Filtering-Correlation-Id: 83eec2e8-b42f-40ad-66ed-08d5c0f2cc80 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 21:18:58.1574 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83eec2e8-b42f-40ad-66ed-08d5c0f2cc80 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2449 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.45]); Wed, 23 May 2018 21:19:07 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 23 May 2018 21:19:07 +0000 (UTC) for IP:'104.47.36.40' DOMAIN:'mail-sn1nam02on0040.outbound.protection.outlook.com' HELO:'NAM02-SN1-obe.outbound.protection.outlook.com' FROM:'brijesh.singh@amd.com' RCPT:'' X-RedHat-Spam-Score: -1.031 (DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, T_DKIMWL_WL_MED) 104.47.36.40 mail-sn1nam02on0040.outbound.protection.outlook.com 104.47.36.40 mail-sn1nam02on0040.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.45 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Tom Lendacky , Peter Krempa , Erik Skultety , Jon Grimm , Andrea Bolognani , Brijesh Singh , Borislav Petkov Subject: [libvirt] [PATCH v6 3/9] 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 23 May 2018 21:19:38 +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 --- docs/formatdomain.html.in | 115 ++++++++++++++++++ docs/schemas/domaincommon.rng | 39 ++++++ 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, 340 insertions(+) create mode 100644 tests/genericxml2xmlindata/launch-security-sev.xml diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 665d0f25293e..cab08ea52003 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -8310,6 +8310,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.
15:6 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 f16e157397d4..69b6c84b9540 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -77,6 +77,9 @@ + + + @@ -436,6 +439,42 @@ =20 + + + + sev + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +