From patchwork Mon Oct 2 15:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 13406335 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 3350CE784BD for ; Mon, 2 Oct 2023 15:12:17 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.611609.951122 (Exim 4.92) (envelope-from ) id 1qnKaT-0000iX-R2; Mon, 02 Oct 2023 15:11:57 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 611609.951122; Mon, 02 Oct 2023 15:11:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qnKaT-0000iQ-OK; Mon, 02 Oct 2023 15:11:57 +0000 Received: by outflank-mailman (input) for mailman id 611609; Mon, 02 Oct 2023 15:11:56 +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 1qnKaS-0000iK-Az for xen-devel@lists.xenproject.org; Mon, 02 Oct 2023 15:11:56 +0000 Received: from esa6.hc3370-68.iphmx.com (esa6.hc3370-68.iphmx.com [216.71.155.175]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 03fe02c6-6136-11ee-98d2-6d05b1d4d9a1; Mon, 02 Oct 2023 17:11:54 +0200 (CEST) Received: from mail-dm6nam11lp2169.outbound.protection.outlook.com (HELO NAM11-DM6-obe.outbound.protection.outlook.com) ([104.47.57.169]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Oct 2023 11:11:49 -0400 Received: from MW4PR03MB6428.namprd03.prod.outlook.com (2603:10b6:303:123::8) by BY1PR03MB7261.namprd03.prod.outlook.com (2603:10b6:a03:526::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.25; Mon, 2 Oct 2023 15:11:44 +0000 Received: from MW4PR03MB6428.namprd03.prod.outlook.com ([fe80::ddbc:172e:c4a3:ec6f]) by MW4PR03MB6428.namprd03.prod.outlook.com ([fe80::ddbc:172e:c4a3:ec6f%4]) with mapi id 15.20.6813.035; Mon, 2 Oct 2023 15:11:44 +0000 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: 03fe02c6-6136-11ee-98d2-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1696259514; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=jJsAOx8kE/kN1hdqURUPL3sawGxjRQ4dpNqXCPPjqIs=; b=ggF6cg5OSyWG+0+i9MOs0G2flvPxjeVYMW7TUXPkv95xepHAEoRIIbkG 6l3ejlYux6P61W2R5naz9BxT5FWJ295oO0p5PzMMZ6XChBw6ghtKSpMBG 1sqtWCTmXP4DICKmGE+Xxv4tSRfnj3IXkf/07z6vEWHaAxHh6kO3Qasy5 M=; X-CSE-ConnectionGUID: xtF7i30RRDmcBqkzfiVY9A== X-CSE-MsgGUID: 6OtbiRVETGSCFHNbz+1CmA== X-IronPort-RemoteIP: 104.47.57.169 X-IronPort-MID: 123653168 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED X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PHrP4gr5N0tOpTntAse9qBDnhPxICOsqXYtKNTOO0AeVxelZhrcKqAeQeBEWmNQ96U 9hGZIOcuEZDzJB/LvHCN/TKadd/DGFmprY+ts31x1WPGVXgzkL1XYANu6ceHcGIzVuNN4CO7 e3wNFInDakcWR/VLXBOpFUN9KzweEijfjdEGc7OyI= X-Talos-CUID: 9a23:tcA+jWH9MQksNGFSqmJ36GBLG5t9SEfxyXz6OkyqB2dXeey8HAo= X-Talos-MUID: 9a23:9y/v5wguHJvoB3KJYLDbbsMpauB06aWUNm0xvq4tlemiPz4zYhyYpWHi X-IronPort-AV: E=Sophos;i="6.03,194,1694750400"; d="scan'208";a="123653168" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HdNyFeUVKN/HR8aQmSHzIZ/Xul83aWti7Gh66saFmT0OfksOZAAg/fdNcI+aKQgtUXuIKyg/m235MRAA7MAN7RbiybOFn8pnNn98NPh89UYMAgB2QNwvluCUmkI83jvSdNAdid62EoUEEZ7+rOZAb1CYJ5xs/oUXLR4AIt+3e92L2c025/VA8b1luwPB0611qyBxdC+zGVITgBPLkOEjNT72pp8zR28fRbpDakOwCCMIMt91gI07jwJCcV3F/0mbIw0K+F0Cw5IKwTLBf/JmrC2Z5BLsHaFcuaBx9ZjtZTQLEmO2nBtwfwqGMlZRrp/tAlyyoL6tcL8o1K8y3nmMJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=UPu3fqfcmif+jqYw8nntfTTKnqMjKbEV4zKLUA72rgA=; b=aev8UkgXjQ4RyyN91YzNF12RAJXwIFzfczVyHy5Qw8+ShFGu/D0+rtG4kzY84JzE5zW/+6z8QNArCpMGSONWXXT9NrkjUkz69ig8Go2QKJkvU+6haMf8XIyAKbLSCcHO+B7BjXqBi7e+wa7dqH6hKoWAhNm43QgymW93FJ0fW6IwD22JoPLG4F4yd/o1RtjZmp39nD1VFrR/+5NDXcrCluNeHbNSZvHGYij7baNsgaFBl5g/056fUAnawpCdhBFAxpqhGgSfFMTiFQyymJH52oFA9IhIdAbOicydJSjedV5xvpgpb0aL869rCZfMg/jPoiKP5odRWtiSMZtb+qBdHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UPu3fqfcmif+jqYw8nntfTTKnqMjKbEV4zKLUA72rgA=; b=Q39JEcWuvCFyfmu0JDV1IW5F47FeillrUID9fvvwhFCV2yB/riE7PZVVxQ6CVUobIjcGxm7oyAGCbgoiAAQERshfvzOGwuDKMGFz51zg3rwIuUO1d/Br1vlNXLtxnddGsOGhm5ioSiwOQh7SHVIlQ+5a2wW2ZGqPCCV5LkYhc9s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org, henry.wang@arm.com Cc: Roger Pau Monne , Tamas K Lengyel , Jan Beulich , Andrew Cooper , George Dunlap , Wei Liu , Julien Grall , Stefano Stabellini Subject: [PATCH v5 00/10] runstate/time area registration by (guest) physical address Date: Mon, 2 Oct 2023 17:11:17 +0200 Message-ID: <20231002151127.71020-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.42.0 X-ClientProxiedBy: LO2P265CA0510.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13b::17) To MW4PR03MB6428.namprd03.prod.outlook.com (2603:10b6:303:123::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR03MB6428:EE_|BY1PR03MB7261:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f547de5-da4a-49d0-2ac5-08dbc359e323 X-LD-Processed: 335836de-42ef-43a2-b145-348c2ee9ca5b,ExtAddr,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YwS6EM21O1VtzEhcW8vlO4hUPLyZ90u58EPkjhE2e4heqdNalwtdF03cojZuGjzD5UlYoLrDDvw/KOmf6LJv5WhIKZLMp+ZlztPur9sfb98uq4CdCY/AWRoXmSS1394a71Suj1RkOcUNGrwHdFgeUWm9okE0V1uBOYcOalSZNxNxWiguUh2pg+3T6tpjuj0b8KmcavH6nrD/05dVGAuXTA7BOS9NA8YbkM6pyMVvb8DFa7aulXcREGRlSxNlyfRxilUictLF4sbZgGBUtr3asEWC3DU/gzZo+Unzi3izuXbsoc0OSZfSHN/wqBfndub836YMQQSMTjVge0CHdiuNfGo5rXkAGj7j9VIzxdYg8H4UMIs+/3rBZppoVt8Moj4+U/gIvYsqNrlacbNH5ZNuZ5DF4VQBGs3l12czYe1lfkSVrC7xiZGExMtnnV6QrfYnmGNoBNGP8vxS7DU+ssC6E8noUdHa/n5bz43DY23X52R2su9DquKnwDMdOUn6nJDE76rv0QdcKoUH3SvyvdX8hcFPxCLX0h0ZTEVgiP6Ao62ZdBgArzDxSU+yeK7Llisq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR03MB6428.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(346002)(376002)(136003)(396003)(366004)(230922051799003)(1800799009)(451199024)(186009)(64100799003)(4326008)(8676002)(5660300002)(8936002)(6512007)(7416002)(478600001)(6666004)(6486002)(2906002)(6506007)(26005)(1076003)(83380400001)(2616005)(66476007)(66556008)(54906003)(316002)(36756003)(41300700001)(86362001)(82960400001)(38100700002)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?O/+47iSgPPY1XQ22p8Y/P1XZw0y+?= =?utf-8?q?1AJzS73QP7X+1geZC7I2dHc4ptDZG8YJGdP9p/LEgggEUydYpgZSxum5HdZ6lTGax?= =?utf-8?q?68D4pZ4iwXUWa19IpMykwDIuUt7LxZJYhki0ASw9f5rRydTctNxmhe8fNOnwXmyVA?= =?utf-8?q?8Oetx+Ay180CiA4Cpb/5lXPcZXGqhpJh8PBqY/KfzInIEaFk8Mn5ClLSetAMsdf6E?= =?utf-8?q?E0v7keMnTdOGQQBZXGRBrIGwYYFOHUX3tclwuxuMVQA3S6x4rqD8dntTXLDdko+qu?= =?utf-8?q?ETVDaGM8hkhOyM89QvnUJgHoMiPgbWc00sgOCcYRMHSum10ozL+pGU78wgoH8HX1A?= =?utf-8?q?5rpjbwRH+PNvXpkZuC+Ohhu44HAIa3Uii1U+uFUsPv/4+RuBd/PZr/sRBjbXNpnK7?= =?utf-8?q?xf9t31Oo4Xw8LbmPOszJYt37mrtn62no2zHrYYYHhS34w5xDfvdARk2+PeBf9iECi?= =?utf-8?q?t/zTXs77GKPvCmDAvurCT1kgHuJpzspPBwXut0wza5jTiG4awXeaZ/urH5mXSQDoZ?= =?utf-8?q?wWvSRe2YRizUIro7Pz3G0jCWc7OzBMK7P1zzRAgRyOHPy1mb0SCOW2AKPLa28Emzy?= =?utf-8?q?HNHUWSuj6BM+ozVix6xrU7YWE8O084+ptzafDhQCehERN0LAlwMMMh0ps2oi94cl8?= =?utf-8?q?d/K8cW4+5V49mcMGG4sak77JnDy0LEQgBb7wJz44JORyhNkAcmw8FFFS8lsS/RAx9?= =?utf-8?q?nnIQAUO1+EVvtI/U6s7yAdX7/wtVMZS6184by6qDFp2PM17ibDWAcqlikGprzDloO?= =?utf-8?q?v4w+72YeExWr7syzepaHl9SbHERey3FN/jf2m70FO+8iLChpwLt6SukLrzXBcXqcr?= =?utf-8?q?Tv3AtL43Gn28jhgDPcXncpkXUYHjyXoonlYtSyZ8LGuDBu/q1W9gYGQfyXwTdom8p?= =?utf-8?q?HDD4jFqgrii/rb1z4kyOJjJYrOWl0C/xAVjf/DqSB+JyqFFRTydUDaRU95TPUy5we?= =?utf-8?q?F6IHVxmCkbmJsXhyjFIvyLIN/K6qpr3GZqE9GcH2EZZLD6l+NLhUs5ArciNVr6gia?= =?utf-8?q?2QLPfoXYutLMYLevlK08p3qFwAFUWR5KdGLuqw9gXtjpaHzYGVKMnBVdff3deI1C9?= =?utf-8?q?RL0nDtRVnM46wO3/k2Dh6SOo7LUEw3/kR3vH5Ay8RJf9QbGUS9FskDU6HugF2v07A?= =?utf-8?q?0h9L8ORUsHSam4WshDsQTgQo3+JxbB9TbR1Tv06kw++Hn64tiT/t6LOkKCSstwLS9?= =?utf-8?q?g7362DgbFseJ0x8XQSngeCWeV61Xwytx84OJRjgzOm/SQpb8Lzg7MBykNNkzpki+l?= =?utf-8?q?6Hpqi/iV04Muc1tiEqzdIKR8HbzOc2vw1INF2YIVJztSVYcbn765WDcCTG0473W5r?= =?utf-8?q?dxBDakMH21AnE2uwgDXJ4niDJ435W4VRHPV9IaVtKkCBeoxP0zw49zU5vZckaaZgC?= =?utf-8?q?YB07kW8c/GSyt9CnluzsfH39V1lTD58WBWPoiWL4kIabO8TsU9u4AB6eiRl0hkyK2?= =?utf-8?q?xMLt00GDNerSQ62OnrPURj1D7oS5P2rJqSdul18QKWE/IDClVA6Kin/JDTHpcXRi+?= =?utf-8?q?LslBmOhyl3Cn?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: eMBf/t5q/+NL21GoyiJhR5VcnGLyUjvUc1DMkKMBQURpBGd+nXRPAdeVgMO0lGQ/Fp5tuITTHqtuSd2TPdP8z2vlRMgiCa0KCBSHMuIM+bLo0DDm4PMHCHdPl1zwlyqjXrECm8w0dzQ93O5XO+xdMDKw9NBgN7efU3AkKLyQ9mwDtJTRalkUOT87WQxw/+BmE2bdvB3i9dNH9Zbv3df560qVfFjlhPB0SX6sipmIuuTti6AaJKplDKZsZYd3jMHrlLzvAvQSC7TF6ezLCVOkHUXhGu9RdJOyzt1JqpBq0cPRMl6PosvpEec2FuJxF8mK3EatrB6BPltBCO5e3zh7R2sz9850tNUnXeTsU5/rZCgknPc9UrZ6lEOlvtJ5M/1DiZofNRZ85XvGirhDr0L+nh+8isP1bp6KgpUOp7c9zL7fMbBnH4nBVFK1UR0EnmCJo956oKb/aVFX2diWuvQARjS4qO7fARk1S0spyBvLx+BFfiN5k95PUuc9ZnrUUEdiBAGHl2pwoMqGZbjnF+MmMpBfytc1nuHV4dy77VHg6V5okpMivXFM0Bw6sYdJuXTN91Y7UAJpkKhwE9RJNUzXogpyxzgN6PDlMUMAv8X+W6DUhTbL/ZqIl+/JAqJAKB0ivka7tdJQWQGrTuYgf6ADvIf/rcXb1RguW6SxgNUnSzL6EUJhkF3gac8wQx0Wr3mvB3A8PWmePavcVCX7pJtUG35HPtdCRnoqr2ZaWJFileY+2FwV/898t9HjE6GCZHjRbIe2G+ytxstkUk03RhMgAZ30jEw2BsEuwbk1jCcOdb5XjsxPTeSQt7e5Ahd/y0MZ8ziIUAIBPNODO6ktTXE3rZSTOQqyOKicYtAbK6r77orEuCOOW6XsZaCTkeid+3mwNHI/GsAfDAZo+P19xDD2niyIzu72EWVans+U+yE2fIg= X-OriginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f547de5-da4a-49d0-2ac5-08dbc359e323 X-MS-Exchange-CrossTenant-AuthSource: MW4PR03MB6428.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2023 15:11:44.5292 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qln5HNpVCToAl5VW9wNNj7pCXvgS+tTvrRynVy78ekC5chvoE2P5qqU8nEIDmttQLVMTlOavZGWtZvI4TfeZ1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB7261 Since it was indicated that introducing specific new vCPU ops may be beneficial independent of the introduction of a fully physical- address-based ABI flavor, here we go. There continue to be a few open questions throughout the series, resolving of which was one of the main goals of the earlier postings. v5 adds one vm-fork specific pre-patch that does simply the introduced code later on. It does also fix a vm-fork bug. Patches 1 and 6 are missing and Ack from the mem-sharing maintainer. Whole series will need a Release-Ack. Thanks, Roger. Jan Beulich (9): x86/shim: zap runstate and time area handles during shutdown domain: GADDR based shared guest area registration alternative - teardown domain: update GADDR based runstate guest area x86: update GADDR based secondary time area x86/mem-sharing: copy GADDR based shared guest areas domain: map/unmap GADDR based shared guest areas domain: introduce GADDR based runstate area registration alternative x86: introduce GADDR based secondary time area registration alternative common: convert vCPU info area registration Roger Pau Monne (1): mem_sharing/fork: do not attempt to populate vcpu_info page xen/arch/x86/domain.c | 33 +++ xen/arch/x86/include/asm/domain.h | 3 + xen/arch/x86/include/asm/shared.h | 19 +- xen/arch/x86/mm/mem_sharing.c | 73 +++---- xen/arch/x86/pv/shim.c | 10 +- xen/arch/x86/time.c | 34 +++- xen/arch/x86/x86_64/asm-offsets.c | 2 +- xen/arch/x86/x86_64/domain.c | 36 ++++ xen/arch/x86/x86_64/traps.c | 2 +- xen/common/compat/domain.c | 2 +- xen/common/domain.c | 324 ++++++++++++++++++++++-------- xen/include/public/vcpu.h | 19 ++ xen/include/xen/domain.h | 12 +- xen/include/xen/sched.h | 8 +- xen/include/xen/shared.h | 3 +- 15 files changed, 440 insertions(+), 140 deletions(-)