From patchwork Tue Nov 26 17:19:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 13886246 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6C39D65531 for ; Tue, 26 Nov 2024 17:20:23 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.843945.1259512 (Exim 4.92) (envelope-from ) id 1tFzEM-0004ZX-D7; Tue, 26 Nov 2024 17:20:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 843945.1259512; Tue, 26 Nov 2024 17:20:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tFzEM-0004ZQ-9r; Tue, 26 Nov 2024 17:20:06 +0000 Received: by outflank-mailman (input) for mailman id 843945; Tue, 26 Nov 2024 17:20:05 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tFzEL-0004Pz-JR for xen-devel@lists.xenproject.org; Tue, 26 Nov 2024 17:20:05 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on20626.outbound.protection.outlook.com [2a01:111:f403:2406::626]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id a7b90930-ac1a-11ef-a0cd-8be0dac302b0; Tue, 26 Nov 2024 18:19:56 +0100 (CET) Received: from DS7PR06CA0023.namprd06.prod.outlook.com (2603:10b6:8:2a::14) by IA1PR12MB9032.namprd12.prod.outlook.com (2603:10b6:208:3f3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Tue, 26 Nov 2024 17:19:50 +0000 Received: from DS1PEPF00017097.namprd05.prod.outlook.com (2603:10b6:8:2a:cafe::f5) by DS7PR06CA0023.outlook.office365.com (2603:10b6:8:2a::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.20 via Frontend Transport; Tue, 26 Nov 2024 17:19:50 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by DS1PEPF00017097.mail.protection.outlook.com (10.167.18.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8207.12 via Frontend Transport; Tue, 26 Nov 2024 17:19:49 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 26 Nov 2024 11:19:49 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 26 Nov 2024 11:19:48 -0600 Received: from amd-BIRMANPLUS.mshome.net (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 26 Nov 2024 11:19:48 -0600 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a7b90930-ac1a-11ef-a0cd-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjQwNjo6NjI2IiwiaGVsbyI6Ik5BTTAyLVNOMS1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6ImE3YjkwOTMwLWFjMWEtMTFlZi1hMGNkLThiZTBkYWMzMDJiMCIsInRzIjoxNzMyNjQxNTk2LjcyNzg5OSwic2VuZGVyIjoiamFzb24uYW5kcnl1a0BhbWQuY29tIiwicmVjaXBpZW50IjoieGVuLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnIn0= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lmz4W+cnNuqashzG9E1//MLpO/eop6VvKf4zxIP+0Ul0mteimmCW/vTNL1fKBJF3XMLTpTaV84NSeamg7pXz6xs8MMoX9goHvugYUhDXqaa0pJ3z82HN8Awej0vMt+h9uMDZdNaaJDsTplpBjwJRC/4D6t6z2WOjlq0GfjTewPynD7/2nyihqvs7KyBzuX1mYjfD6KE0HTpyBvtfh5YprwWHNNdZ5D3vSFiEdR38PzoqIoQstVdrHx07ZAgfdU9/ZbeVikXG17wQ/yQ0of/1AUy3KvZul5/b8HoEmHGtdC+I1C/IdT8R09dCfsE0o5Njr2IXs/cZU+AxhHMGhLaUIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lgUbu1p1G8VrX+7vvopPeVN3XfOcljEX1p1X+gAqQc8=; b=wtdgL9N0skrOaiWAy8U0o0Asd7N3LQcIIACw5YmzRXu6fgvbWX/myxs2TEYVLTwXuEQQOQtWVXN93lVAgbkmVW4fXj0gV1jH4USfkVFrdrlW7dVUXevtSCMANx3Rwtzf141jxrSiLEmIYU3v6wrCBDUtaB+muwhEWJzWA76c6LvrEM6JHG7WeWkzhNic/aoI0rgzTwrD3K2RSHq177lssXArGLn24r/lo8PwetyViQ7VI8W3LtV2VOCinFLscZykHanGYyFNv1GoHbZvBKEwzO1U6aPNgcTpN6zvxPTLIw4O33tCtqQs7o0rX6mDpq4aggZCkTBVehW2kOoo5Avs+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lgUbu1p1G8VrX+7vvopPeVN3XfOcljEX1p1X+gAqQc8=; b=n0kx32GRdRxwSmiMVi9twAN8F19UecKc7MGCzRozbe6CZQfuzqUtF9z/mvzC4dBNU6YaGunoVRPFXRpoERH+5jfqihyfaJWy6Nz9oxVudUhHTrkADbbIsjnmp8vrSsdTkKhzkYm1iydI9s8LNQsm0InjseYmWoxVjwgRpVcD4Dw= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: Jason Andryuk To: CC: Jason Andryuk , Anthony PERARD Subject: [PATCH v2 0/2] xl suspend/resume commands Date: Tue, 26 Nov 2024 12:19:39 -0500 Message-ID: <20241126171941.170897-1-jason.andryuk@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017097:EE_|IA1PR12MB9032:EE_ X-MS-Office365-Filtering-Correlation-Id: f7b654aa-95f1-4ae6-d386-08dd0e3e88a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?63GyqkVEb6VWnP0OoPVBX+7zlwUu5Io?= =?utf-8?q?4DPdQSyEeBmJMBfONmqQZCzWzwwwgob+k7iETDQXZaRjp0lJHZ9U/RCFwfx+an3Yc?= =?utf-8?q?t29jgNV3R9EtWf8HS5889euSvJgNpy9U4zI2+BnRgv5M4ylobiO1fFsCxhTQ7XDR+?= =?utf-8?q?0BM25paLdiwZtv0B0crr67Id0j03l3Ufc7fKK/mo8n3yg/QefBSQ2gSm2aiu+7660?= =?utf-8?q?GT0MCQnooOdDL1fdkpSkDOPCg7X3ZYyF5blYF23vOcBZe4Kyoe2AFI0/cwTAkm5f4?= =?utf-8?q?ew8XYeYDjLxLNBIYNZll9iPvSS8BOgju/tvEc8j03dFvbg61jrHn/CoF+/RYTX1ja?= =?utf-8?q?0oNpTjktCz/nWpTkCj7VUw2LHk0rn3+br1RE9tdxy7sG2mSyQ9VTTCufUNqb37CgV?= =?utf-8?q?Yot3CsKOd9nLhEYHZPxz5lQE6mF61k7h/nCfEa5M3GhQCmyW1MmHYLwz2uNKebDTh?= =?utf-8?q?IYQRsm+oeySL0jTR+T5r1GXBU8Ax9gHi9TYci0Ac7DdRbVB2VpKhMVbrltST+Uq0I?= =?utf-8?q?4eIJ18lrgoTvtWhCgDD6Og2SAdHo38CsNrk1Ugu8bM7WQyCrsHffPYvLh8VZKtd6C?= =?utf-8?q?ioP0xiekrk9wuoiPksQHNicLYGzyjS8WxsWet3LZN0AI9pL1Q9JaBsKgYG6dYc6AQ?= =?utf-8?q?aBInNVx224pvHEQRzUi8rKX+ak6cxt4DIS0w/sKLNtvTUKj2bvjXm9anbmyx5l7Gc?= =?utf-8?q?Gwqg3B3/boKdrZPdcmrMLEtYnPq8J5wBLo2+fRRdKnKQlNW9KB0RmHfFSHH4lIgFF?= =?utf-8?q?MiEdEDBrJazu+sbdduzKGK5BH7cWglTxYztsJrXkGcl6XRqeDrZJatbA73iNuhFfV?= =?utf-8?q?a+u+oN12zQ+cUHoq8ISbzhF6PNbHU5+FhcXYK4+ZCa2ZRm5WN20N2ry4WF/iZGSLW?= =?utf-8?q?XOiarjgmXyuvR992WyWj0NSHU0oWwifh/U1h5TJ4YMLCJyTnRHisgeo6uJ75anDLW?= =?utf-8?q?3uYPX9NBGm0o4Yq5zNtGn6nap2agOeP/CL8EY1wonAAF+MgbT5t5x7Ms9rm4fCYhW?= =?utf-8?q?xqqvy0iysqfAm0asYZcsusNdFIxdQCfLrbUW0mixGsy30leJLZ1hkA7ffiQ9u0n9j?= =?utf-8?q?moHkatKsofAE69OvlKou4HvQCLIUqmK2ThB7msfKSSCNrE3oHNJoem4coaKJa/CRP?= =?utf-8?q?wqIWXf6YGu8D30JmZFuF4SSJF2TMBXTALNibCvCH+J2Zf1ZYhkZGtetrEUtasXfa3?= =?utf-8?q?Oxo2b1YYUOMgwIEV/cjVn++gyK7fluCTvA6g55FdoIGnwR/v6gsvwa7VIvGlyNTwG?= =?utf-8?q?dh7hNYB6YZIfCCGYYXKfdN1SuHbt95KM/TRmjCr4Q3tsVX53d09eCfKqc0VcPQfGC?= =?utf-8?q?WtarEP7CQO3g4zXsNyEQu2iU0lA+hg22pIWVHtmHh12W5Ir3oRUkpMmaGAmAUyI3e?= =?utf-8?q?s7flXFyqtwQ?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 17:19:49.8452 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f7b654aa-95f1-4ae6-d386-08dd0e3e88a1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017097.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB9032 This is a v2 of Cyril's implementation of xl suspend/resume. This is a cooperative operation like libvirt's suspend. I renamed suspend-to-ram to just suspend. xl also needed a fixup to avoid exiting when the domain suspends. Jason Andryuk (1): xl: Keep monitoring suspended domain zithro / Cyril RĂ©bert (1): tools/xl: add suspend and resume subcommands docs/man/xl.1.pod.in | 12 +++++++++ tools/xl/xl.h | 3 +++ tools/xl/xl_cmdtable.c | 10 ++++++++ tools/xl/xl_vmcontrol.c | 54 ++++++++++++++++++++++++++++++++++++++++- 4 files changed, 78 insertions(+), 1 deletion(-)