From nobody Wed May 14 15:45:02 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 152109949483225.657971686429278; Thu, 15 Mar 2018 00:38:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 70A13C052500; Thu, 15 Mar 2018 07:38:13 +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 396E85D755; Thu, 15 Mar 2018 07:38:13 +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 F046D65D3A; Thu, 15 Mar 2018 07:38:12 +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 w2EFkIgg006809 for ; Wed, 14 Mar 2018 11:46:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id 01FBA60BEB; Wed, 14 Mar 2018 15:46:18 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB5FB60BE3; Wed, 14 Mar 2018 15:46:17 +0000 (UTC) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0050.outbound.protection.outlook.com [104.47.37.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D38BD85545; Wed, 14 Mar 2018 15:46:16 +0000 (UTC) Received: from wsp141597wss.amd.com (165.204.78.1) by DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Wed, 14 Mar 2018 15:46:10 +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; bh=hFQ8UD6PgoUb3StiauVQKvh1M8LNhNgJ+vorDOcaqv4=; b=NSlibU+5T0sxH2r43v5fMrzbsvhvd7zT/JWCCGug6AlED2GXCU93Zv4ni3TFNSlWGtg0xzRw61az5anoR4K5GBENKwhOp8iZFbwj7O8BpSkQdRmpff3pDJrMwJqgzv3nzkpmzff9N5TFU2IyyovN+iZx3gt3sAu8UByVy5iUlhY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: libvir-list@redhat.com Date: Wed, 14 Mar 2018 10:44:31 -0500 Message-Id: <20180314154435.17991-6-brijesh.singh@amd.com> In-Reply-To: <20180314154435.17991-1-brijesh.singh@amd.com> References: <20180314154435.17991-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: MWHPR1701CA0015.namprd17.prod.outlook.com (2603:10b6:301:14::25) To DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2eb22463-677d-45d9-10df-08d589c2b608 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM2PR12MB0156; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 3:RAJctpsRpMqw42zhhDqoJfGesqc6/QvvBVHQv8L+2qjJf8bUCQIya2F/nF7eVrrmv3g37IvGItBuxXlZ24o6bai/B5YNO/ponthueye5bYS0kYnquQwv5SMJqeG4hjsXtwvO7LJm7rJ8bv4yM8u7dN9mrjAnF3aKHYUyRdQmg/8J4fGX+/otcUe/S2P6asX+zLlIsgWLy4BjlVmkOduI//+JLqbt6yI62WuA969XpQAiw8PE7W4paWzV80NHMK9H; 25:FsQpV/lVMxF5XoYW7vvvepXpFYM/x9yLm5jxBKy2OTApt+M7xpzFhfseouIxhiEEOhUOz6M33Xx+Sdb8V2dBFtVxFyiXD6X6YaI9DOPUsB+FRk41xb0969eKA+uqhmoVMVIdqqrp59X+E1rizqPAnkFo0t9LrN+lDKIlU1ILtwCilP8IN7SB5lmdxnuYtWGimyO0ePmTdOplQLe9aMwfgHEkmbc5IMCaGXSCEO0J7p4iYwIyDMEnU3fcdC4FSQSZnHVAJnmtGBRi89uP0x85ADXW9ZzMszQbeLYhLUhef9KH+AwGRGxzew/2KhZvLpWXGdkw7wz9VmyGFhDX/kCw9Q==; 31:0G46b4PMEayjp8FRfIFWGA79doY2M0oo+kBXiFP6hqi/zUzW/23Lq0IwwFRLzEqtjkH5P5q2N21JsLZYntSjAJvjxEfi4q1RwpH3jlCXPMcqHTWmH4fY66GjdM8NN6taS/QUJjaT0xmrnkyLa11mQ5enE7H8vGAz858AqQwuQI9Ldb3rzYk89tLz+DwUDM8gx0MZZodD2NfSNWeS/uWhKu02YFc99sivWl4y7cwE99M= X-MS-TrafficTypeDiagnostic: DM2PR12MB0156: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:Hr4STOAjl2ZIuaxrUjHSwTd4yTsAtogl/jR0hqN3vHzZyWR8+Tv1oKAEK0NPvqWtu1n3gDNgSWGgA0NqU2/dabXFMFlTjGX4w1KRasM5ebNHvtm9evDZOWAZ++5YSvATJRfRo1UpNFUrBlSp2cu3wqUoSdA00cR2k8zog1Imhf4Y93UndYPe9izlz7EGQU87nutQMJnWya6tBUPn136K6ycy2s/KAkCCWVAMJwVz8gmaNkMxu2i+HRUkB42DzVMiEXWuvbQnjWxFy27MKPA7SFQp19ijxBUpaR+nlAZniq9YUTsOMOXXz7fVA+WJp310qezuhpS2jUjjwlk3JFW0WMcVNRvatUkmEPukYFDn/wHCLow8T6fuVvoM/FBLet91LY+9d6JP/lPgmaRDxDoi4og9EDTn5kFIgAmxqQzitC9ptdEBigNgBob1j1+3wVuG0qMNQA1sQeHi+bk/PbuxkiM8UUyzvVPIDrVJ9tGXPQIj8L+42h2BAzsYfRz9t+bg; 4:KYx+GQ1opWPqRqKOoYuHZh9PBllxG8zn77rxJkxSPUZj6wRXmLEG3mywwOAlwp0MR57VkYWmPmFAQADoeVLOzpk82vAbej/mFwxODWpt5JqqukooxfQPXGSmeKVSYG/mFVlrR95eW/LHs9Y8dlJ0Hl1Ntd9zwDgICawH2S2Ng3cZa3ww9lYSYVlYVAVlJ3f5HRvVodbJQmMLTU5SXvsxUC7jS221+rno/18ciADBzFS3Zdul6bVZsOULsRC7C/r9/GJIIuYqBP3TQ2Z77mNxjN5NR/fdvzF+ejBEoDz8nFgecq5WRTEsg4neWDBkPI77+xbcOaaVdnxfkjXGG0yozoPO1YTw9VBnXqbuYsGsSUw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231221)(944501244)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM2PR12MB0156; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0156; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(366004)(39860400002)(376002)(346002)(396003)(39380400002)(199004)(189003)(59450400001)(2950100002)(6916009)(81166006)(2351001)(81156014)(4326008)(6116002)(478600001)(6666003)(52116002)(51416003)(7736002)(8676002)(3846002)(7696005)(305945005)(48376002)(106356001)(2361001)(50466002)(53936002)(16586007)(76176011)(47776003)(5660300001)(316002)(6486002)(54906003)(53416004)(68736007)(105586002)(97736004)(1076002)(66066001)(8936002)(50226002)(186003)(16526019)(15650500001)(386003)(36756003)(26005)(2906002)(86362001)(575784001)(25786009)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0156; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 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; DM2PR12MB0156; 23:+ripZhqkMR2evusL+4IwhgFtkEK2xXVCokAXNNQV1?= =?us-ascii?Q?OfqYC1k7jbNHtJwvnFcyDuiyeern85xU+Bl9L4mp/fVd5beHUYwe4Yu7nkkz?= =?us-ascii?Q?UgbkfUwQ071sydNimiWEGCxvgNM57yP/SVns5L8NBvI10N1cPd3xTe92LQtQ?= =?us-ascii?Q?7OufGFRVsLcDoHwk5skTpAFj00sMpYtOKaTiD+1huqCeqS0J3oBhEZixQwtm?= =?us-ascii?Q?CbeVkRxaZ0Kd3OVLEUuRP7Hgf7Lhia5L+3M5cbRTmykitVW0oapZRlan+5PF?= =?us-ascii?Q?f5asfBaVZZm/f4G8ZlGpxgWDxGLTLH6fcNyS4TjBcxL+JFsi6CwQrZ1od983?= =?us-ascii?Q?t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nchk5bgzPWh0do8jgXkZIhjWxZUWO2j17+wjSYxj460t0Yzf/+E21aFZQsWx5NDXsIKDCWuBaPp/cyPrwwYv/Kxk/8roHNXg7uLLtUakq7CYPKXH7x/epPe3S2o45q2cuJBNUN7u/h97Jz2xyBOSZaFC8UGFbkNeZaiT6LwW5csmm2ta+UJicp62YwKD2GJKE7nizjoTfeywOtyLHxQF47FaJV75w31KUNduwzl8pdK+D2rAWpvOsTLIyH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:lDK5S+6L3+yphR7YAUithsVatOv5SH3eff9db2pZARcv2S4htCxafkVdCDjN9Aei3P6At+dz+LBp75Ll/+fkTOmI2tYCQcgG42r0YK1CgbWHSBsWM6E/O79tXX1+rEykIaampwKnGMRAyDZlUDtpz76TgGw6Kfjx3LBowJvKFXBg/y3s8Kwjuv/3cahP1W4NpOKqDiW+HBvG/wrByx0x5yS6lrG8Mw4zy9GbUl3V/oCHLa5chx9TOQJF/9GI6i+R X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 15:46:10.1248 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2eb22463-677d-45d9-10df-08d589c2b608 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0156 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.28]); Wed, 14 Mar 2018 15:46:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 14 Mar 2018 15:46:17 +0000 (UTC) for IP:'104.47.37.50' DOMAIN:'mail-cys01nam02on0050.outbound.protection.outlook.com' HELO:'NAM02-CY1-obe.outbound.protection.outlook.com' FROM:'brijesh.singh@amd.com' RCPT:'' X-RedHat-Spam-Score: -0.031 (DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS) 104.47.37.50 mail-cys01nam02on0050.outbound.protection.outlook.com 104.47.37.50 mail-cys01nam02on0050.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Tom Lendacky , Peter Krempa , Xiaogang Chen , Jon Grimm , Brijesh Singh , Borislav Petkov Subject: [libvirt] [PATCH v3 5/9] libvirt: add new public API to get launch security info 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 15 Mar 2018 07:38:14 +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 API can be used outside the libvirt to get the launch security information. When SEV is enabled, the API can be used to get the measurement of the launch process. Signed-off-by: Brijesh Singh --- include/libvirt/libvirt-domain.h | 17 ++++++++++++++ src/driver-hypervisor.h | 7 ++++++ src/libvirt-domain.c | 48 ++++++++++++++++++++++++++++++++++++= ++++ src/libvirt_public.syms | 5 +++++ 4 files changed, 77 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index 4128d5585255..733c4109549c 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -4763,4 +4763,21 @@ int virDomainSetLifecycleAction(virDomainPtr domain, unsigned int action, unsigned int flags); =20 +/** + * Launch Security API + */ + +/** + * VIR_DOMAIN_LAUNCH_SECURITY_SEV_MEASUREMENT: + * + * Macro represents the launch measurement of the SEV guest, + * as VIR_TYPED_PARAM_STRING. + */ +#define VIR_DOMAIN_LAUNCH_SECURITY_SEV_MEASUREMENT "sev-measurement" + +int virDomainGetLaunchSecurityInfo(virDomainPtr domain, + virTypedParameterPtr *params, + int *nparams, + unsigned int flags); + #endif /* __VIR_LIBVIRT_DOMAIN_H__ */ diff --git a/src/driver-hypervisor.h b/src/driver-hypervisor.h index ce0e2b252552..b06641394db9 100644 --- a/src/driver-hypervisor.h +++ b/src/driver-hypervisor.h @@ -1283,6 +1283,12 @@ typedef int unsigned int action, unsigned int flags); =20 +typedef int +(*virDrvDomainGetLaunchSecurityInfo)(virDomainPtr domain, + virTypedParameterPtr *params, + int *nparams, + unsigned int flags); + =20 typedef struct _virHypervisorDriver virHypervisorDriver; typedef virHypervisorDriver *virHypervisorDriverPtr; @@ -1528,6 +1534,7 @@ struct _virHypervisorDriver { virDrvDomainSetVcpu domainSetVcpu; virDrvDomainSetBlockThreshold domainSetBlockThreshold; virDrvDomainSetLifecycleAction domainSetLifecycleAction; + virDrvDomainGetLaunchSecurityInfo domainGetLaunchSecurityInfo; }; =20 =20 diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index eaec0979ad49..71a43b0c2c75 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -12095,3 +12095,51 @@ int virDomainSetLifecycleAction(virDomainPtr domai= n, virDispatchError(domain->conn); return -1; } + +/** + * virDomainGetLaunchSecurityInfo: + * @domain: a domain object + * @params: where to store security info + * @nparams: number of items in @params + * @flags: currently used, set to 0. + * + * Get the launch security info. In case of the SEV guest, this will + * return the launch measurement. + * + * Returns -1 in case of failure, 0 in case of success. + */ +int virDomainGetLaunchSecurityInfo(virDomainPtr domain, + virTypedParameterPtr *params, + int *nparams, + unsigned int flags) +{ + virConnectPtr conn =3D domain->conn; + + VIR_DOMAIN_DEBUG(domain, "params=3D%p, nparams=3D%p flags=3D0x%x", + params, nparams, flags); + + virResetLastError(); + + virCheckDomainReturn(domain, -1); + virCheckNonNullArgGoto(params, error); + virCheckNonNullArgGoto(nparams, error); + virCheckReadOnlyGoto(conn->flags, error); + + if (VIR_DRV_SUPPORTS_FEATURE(domain->conn->driver, domain->conn, + VIR_DRV_FEATURE_TYPED_PARAM_STRING)) + flags |=3D VIR_TYPED_PARAM_STRING_OKAY; + + if (conn->driver->domainGetLaunchSecurityInfo) { + int ret; + ret =3D conn->driver->domainGetLaunchSecurityInfo(domain, params, + nparams, flags); + if (ret < 0) + goto error; + return ret; + } + virReportUnsupportedError(); + + error: + virDispatchError(domain->conn); + return -1; +} diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms index 95df3a0dbc7b..caba2862d371 100644 --- a/src/libvirt_public.syms +++ b/src/libvirt_public.syms @@ -785,4 +785,9 @@ LIBVIRT_4.1.0 { virStoragePoolLookupByTargetPath; } LIBVIRT_3.9.0; =20 +LIBVIRT_4.2.0 { + global: + virDomainGetLaunchSecurityInfo; +} LIBVIRT_4.1.0; + # .... define new API here using predicted next version number .... --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list