From nobody Mon Feb 9 05:41:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=quarantine dis=quarantine) header.from=suse.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1639087623614128.0167109918799; Thu, 9 Dec 2021 14:07:03 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-551-LKIF_0xdOmqV8WYjYE6NdA-1; Thu, 09 Dec 2021 17:07:01 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9AAAE1927800; Thu, 9 Dec 2021 22:06:55 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 805FB45D7C; Thu, 9 Dec 2021 22:06:55 +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 570E31806D1D; Thu, 9 Dec 2021 22:06:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B9M4UVq012942 for ; Thu, 9 Dec 2021 17:04:30 -0500 Received: by smtp.corp.redhat.com (Postfix) id AFD17492CA4; Thu, 9 Dec 2021 22:04:30 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AA4A7492CA3 for ; Thu, 9 Dec 2021 22:04:30 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8995A3C0014A for ; Thu, 9 Dec 2021 22:04:30 +0000 (UTC) Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [194.104.111.102]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-449-3Dv70upiMsGCdQjZjd2QZQ-1; Thu, 09 Dec 2021 17:04:28 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp2054.outbound.protection.outlook.com [104.47.0.54]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-10-ntGyaR7GPR2TBZw6sAV3IQ-1; Thu, 09 Dec 2021 23:04:26 +0100 Received: from AM0PR04MB4899.eurprd04.prod.outlook.com (2603:10a6:208:c5::16) by AM0PR04MB4897.eurprd04.prod.outlook.com (2603:10a6:208:c8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.12; Thu, 9 Dec 2021 22:04:25 +0000 Received: from AM0PR04MB4899.eurprd04.prod.outlook.com ([fe80::2491:2b2f:154a:acf3]) by AM0PR04MB4899.eurprd04.prod.outlook.com ([fe80::2491:2b2f:154a:acf3%5]) with mapi id 15.20.4755.025; Thu, 9 Dec 2021 22:04:25 +0000 Received: from localhost (75.169.28.116) by AM6P194CA0087.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Thu, 9 Dec 2021 22:04:24 +0000 X-MC-Unique: LKIF_0xdOmqV8WYjYE6NdA-1 X-MC-Unique: 3Dv70upiMsGCdQjZjd2QZQ-1 X-MC-Unique: ntGyaR7GPR2TBZw6sAV3IQ-1 From: Jim Fehlig To: libvir-list@redhat.com Subject: [PATCH V2 2/3] remote: Add RPC support for the virDomainSetLaunchSecurityState API Date: Thu, 9 Dec 2021 15:04:14 -0700 Message-ID: <20211209220415.22039-3-jfehlig@suse.com> In-Reply-To: <20211209220415.22039-1-jfehlig@suse.com> References: <20211209220415.22039-1-jfehlig@suse.com> X-ClientProxiedBy: AM6P194CA0087.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::28) To AM0PR04MB4899.eurprd04.prod.outlook.com (2603:10a6:208:c5::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fbdce2dd-77e2-4c19-ef75-08d9bb5fdce8 X-MS-TrafficTypeDiagnostic: AM0PR04MB4897:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:116 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: /DgG3XXGCDPteN4yAlj0jL47rqsze2jBCr7PxEH8DDuUlwIPmws9ezoQS2PMShDMlEWZyBVuDA11UdxhFnakF3mlcKqZDlEm64ubgBzPS3Ww9NoXjbsTySBFF0FVbJ0YhmQxMt+XkE06KA8GjTS1Gu6/AiPK17vjXZfbtxLM+JDoCRJwGwwjkVRhFAsfi/D130ImQt1/WObL7ryCNAl9TuA5sewipKErvN+vt4LnBiicWftWv5ds5N3AEYamQR9Np4qCjfDTJihZ8AbuLVnmqnIvmhj1u4JKdzBls3Ax9OycT05P+HHaFHz0qHKYoA8EmohTCGejQkcZwqGyjUN5J/p3ezd0mIQDHU4SaHvgeTB5yUYVgzL4IyJmlHZbx7cV0y04NpoxNic/nUK8tnntSlYfR22PQCrnuu6Fi73GC8SbHFYrZ7oEMLQsSIiwkYeEP2TSIBr1eLoETfm7E75Gc+AgMk4uzgQHmb+eo9644H5nUWNGwm66pNa0Q3PoQI13SU1Q6YulUWyVMMIuBSbl31Cra6Taf6YhJ7HBMFFNmRmX5+3p6Akx6RiX9bxqVGMMntrEhjlrOMgviUnEy67WzVaD5tht0wfG9VfS7yhaGiOjqb/gCVN5F1Gu3qxpZQc+yx8G4ECbSW2UPjPXxAr+4PliIN9gE1A7Fxh/ykQVR0d4JelBITVmyPE4weiB0R6vm1igYCIRpIYccSjS6/QSmW3OKktiP/ZoHtRuhlkbZ4s= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4899.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6666004)(6916009)(83380400001)(186003)(450100002)(956004)(2616005)(6496006)(26005)(66946007)(66476007)(66556008)(8936002)(36756003)(6486002)(316002)(1076003)(38100700002)(2906002)(4326008)(508600001)(8676002)(86362001)(5660300002)(145543001)(213903007); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?JcbXpTXsYS0Txj4+xbUliy7s6K5Sb9Q6+uFDL7MIs4ZVjcjM6aphmQLI3Dh+?= =?us-ascii?Q?MC4pCSzIaQ6niBQVfPwWGUi4xBz8GFB6T0f6ygy/YyrjFwlC6OvIpZmjfRqD?= =?us-ascii?Q?lLODHzCC0JtCu7VGUX3xkKjf4lB4AXToK+Txaf/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Jkn2te9e+0sHVnKig5f16ZjEhJ2Gg7yPKQSF3IXS6iWsNd09?= =?us-ascii?Q?nsy++JVpVCePJk8NrbpU+UvbtvZto8onh1GuvNthjQVhz1cNejIz6hKi5zf4?= =?us-ascii?Q?yiI2SZxFx5kOUvVMfiio/16w1IsIhopnOBN8x5O2woKFgsbOWeItBpRJNDpo?= =?us-ascii?Q?PIz7vPLFY8AOKcRb73xi9OoRw+99QyoGJ/1RQRd525Ecdg++M6HtQx52nZSq?= =?us-ascii?Q?Ud0gGzCQ36lKIxGg0nTZWoPH2QXdXMChhhRV3kLRfVEEek6UBSz45KekKUL9?= =?us-ascii?Q?tVCGvCD/bWQ2lvdLXeh9PXyqFjGhUFyqu1IDGcEiXAiCWbyIhxzZdi6j61D6?= =?us-ascii?Q?VcPHTBh+FoKTmtY+RPx1c1YNx+Jkh/fykt9STQEu4r7FxIGgDGYozzYyeqto?= =?us-ascii?Q?xSomCF+IJJvXpyEc4L/B1b02mhLhlcrGju5PliXTdF9Onfv0PoUVp14iwYhi?= =?us-ascii?Q?W86wC7fZ/Go4L6/XubWpaKNSv6GoFLeo4hLLhI0YpU4bXgP4/PlZlKsJCymr?= =?us-ascii?Q?LTx6AY4TxgRkThXEwNclp6BjqvPeP8tCotDGTz5/T3ug5qc6641uVoiFQupC?= =?us-ascii?Q?sgM8nxueUE0WeF0E28pcKL8=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbdce2dd-77e2-4c19-ef75-08d9bb5fdce8 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4899.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2021 22:04:25.4988 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uHmxkMYxyvYSW5k4xxvzjlcSm87cRw27+OPzIYb11SlACXNYRMu4gMGatxaEuf5CiFbKwcUkXvyYb8KMgAD9ng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4897 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 1B9M4UVq012942 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1639087624246100001 Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrang=C3=A9 --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 17 ++++++++++++++++- src/remote_protocol-structs | 9 +++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 235c406a5a..604239951c 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -8574,6 +8574,7 @@ static virHypervisorDriver hypervisor_driver =3D { .domainAuthorizedSSHKeysSet =3D remoteDomainAuthorizedSSHKeysSet, /* 6= .10.0 */ .domainGetMessages =3D remoteDomainGetMessages, /* 7.1.0 */ .domainStartDirtyRateCalc =3D remoteDomainStartDirtyRateCalc, /* 7.2.0= */ + .domainSetLaunchSecurityState =3D remoteDomainSetLaunchSecurityState, = /* 8.0.0 */ }; =20 static virNetworkDriver network_driver =3D { diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 60010778ca..4f13cef662 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -272,6 +272,9 @@ const REMOTE_NODE_SEV_INFO_MAX =3D 64; /* Upper limit on number of launch security information entries */ const REMOTE_DOMAIN_LAUNCH_SECURITY_INFO_PARAMS_MAX =3D 64; =20 +/* Upper limit on number of launch security state entries */ +const REMOTE_DOMAIN_LAUNCH_SECURITY_STATE_PARAMS_MAX =3D 64; + /* Upper limit on number of parameters describing a guest */ const REMOTE_DOMAIN_GUEST_INFO_PARAMS_MAX =3D 2048; =20 @@ -3642,6 +3645,12 @@ struct remote_domain_get_launch_security_info_ret { remote_typed_param params; }; =20 +struct remote_domain_set_launch_security_state_args { + remote_nonnull_domain dom; + remote_typed_param params; + unsigned int flags; +}; + /* nwfilter binding */ =20 struct remote_nwfilter_binding_lookup_by_port_dev_args { @@ -6905,5 +6914,11 @@ enum remote_procedure { * @generate: both * @acl: none */ - REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE =3D 438 + REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE =3D 438, + + /** + * @generate: both + * @acl: domain:write + */ + REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE =3D 439 }; diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index dbef4ace79..d88176781d 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -3005,6 +3005,14 @@ struct remote_domain_get_launch_security_info_ret { remote_typed_param * params_val; } params; }; +struct remote_domain_set_launch_security_state_args { + remote_nonnull_domain dom; + struct { + u_int params_len; + remote_typed_param * params_val; + } params; + u_int flags; +}; struct remote_nwfilter_binding_lookup_by_port_dev_args { remote_nonnull_string name; }; @@ -3680,4 +3688,5 @@ enum remote_procedure { REMOTE_PROC_NODE_DEVICE_IS_ACTIVE =3D 436, REMOTE_PROC_NETWORK_CREATE_XML_FLAGS =3D 437, REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE =3D 438, + REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE =3D 439, }; --=20 2.34.1