From patchwork Tue Jul 19 06:50:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 12922159 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 5A856C433EF for ; Tue, 19 Jul 2022 06:50:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.370377.602101 (Exim 4.92) (envelope-from ) id 1oDh3t-0006Ie-8f; Tue, 19 Jul 2022 06:50:29 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 370377.602101; Tue, 19 Jul 2022 06:50:29 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oDh3t-0006IX-64; Tue, 19 Jul 2022 06:50:29 +0000 Received: by outflank-mailman (input) for mailman id 370377; Tue, 19 Jul 2022 06:50:28 +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 1oDh3s-0006IQ-06 for xen-devel@lists.xenproject.org; Tue, 19 Jul 2022 06:50:28 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60077.outbound.protection.outlook.com [40.107.6.77]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 11d88afa-072f-11ed-bd2d-47488cf2e6aa; Tue, 19 Jul 2022 08:50:26 +0200 (CEST) Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by VI1PR04MB4864.eurprd04.prod.outlook.com (2603:10a6:803:5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23; Tue, 19 Jul 2022 06:50:25 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::60ad:4d78:a28a:7df4]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::60ad:4d78:a28a:7df4%4]) with mapi id 15.20.5438.023; Tue, 19 Jul 2022 06:50:25 +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: 11d88afa-072f-11ed-bd2d-47488cf2e6aa ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gI6EVl3ep63sP9gHJL4dbW9hP5MUX62VTwFg4hAJv1TZIwv5VqCmRRjWp8hEUsm24zEDv3DU3s39OXcGTmYzQsXg9GXEBdf1oWVr74W/Re8M9FDRnEPJiPubnB8V78QnpXfEceTVWq3VmgYc9oJdlfTLjezKZaH4WXlP65YGTpXW+fn2dstus4Y5Tc6y0yHEZmZ1bgyIewGfassRbQ9GnOeMLvGrUotCQBRUlJXwhaQTq42VqRCbzxmVWEQQ6D+6Tu0m6o+E3Cu84Q8KS9l4w3Nj5CjKmGT4+vTZ3B3HlzbUZcvGQtrpJc8aN/xyHmeUc16luFjCWxONSDjcKM4Z1Q== 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=GUAzah9w/l5Z6D5t55tUznNm6b5NNsbbbrHqYCcZYGg=; b=BtGDMfm7SnWRqbvAFLr/Q8vJl0kebJDUVftcfk1TZyszf0d//86qZL4kZgyKn3CsrJDLejTTv3FHYHx5UYSjppTuHjc4ShUtyVplftGLkz2TgFBpOz14lVBH5m6Rxos9yUpKfY3pWAenDVMbjDSkn4jYC8rqroir5VZ9DFxw1h1dFJ+6OyKDnRJQSiPxOXxegeNrsVTHGmbLkwfzUkrgvJuYdmCTMZfc9MEVQzwPyoeweQwJ7yrTYV6pacvgJc38ynpSuHhdn7PQ8ZXrBxMdxOYqsCBDwbEvJm5iOuF/SEiagAeWKDBPxuzZ/HuSaB17uvDAbQUGXJ0VvqAbRtRw8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GUAzah9w/l5Z6D5t55tUznNm6b5NNsbbbrHqYCcZYGg=; b=gmoYhUoboOqA7iGQHMRSKhCwFmfXUiD6Q+HlfLoSxHl/rti0CRizdiS/zWoGs4LctoOyJXgIn0RZBR0WN4idjOx4koZuaVGoLQ0KeuekDWCaEpV/7uPUq8UWJmWxoHMypS5nLgIU3sAmRL8kXOS/NW62hIEJjdDHUfQTZsAoB+ErhdU64KBXOp97192zSlWtxylvT2n+7sApKucBAat0P5OVcSWtxBC+xjImqn23V4alaDEwXw3/dz1AwhQnMh3EtNw/KEsUmZMJNPYggEAPAzR/ky/k2+9WZjwyZtvwbWPgZiIiPZiAl4xuCGrymuMXdBK7R2ODF7lBOv6YG5x4dQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Message-ID: <1c14781b-e1a2-e049-c0ea-a12585f74e7e@suse.com> Date: Tue, 19 Jul 2022 08:50:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: Jan Beulich Subject: [PATCH v2 0/4] x86/P2M: allow 2M superpage use for shadowed guests To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Tim Deegan Content-Language: en-US X-ClientProxiedBy: FR3P281CA0152.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::6) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c428b28-9ff7-4a23-c92f-08da6952f536 X-MS-TrafficTypeDiagnostic: VI1PR04MB4864:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l5c6skmO32uHbNBPy45K7lKniIvHQOTXJt93lz9rfD4+vNozamr3eXJY18UZZxrRP4hd4BI2i7jUoeqUm653/tfWcg80SkULYYrpACcdcvi5pjF6KMFvIU0nE+pb18nSwUWm2KFqp6FACfQHVZCetVcXf2QIvTNApc9mh5OwfuS5Dqi+CIpLw1tl/ZKQtoDqwevcn4wsZOenjcL50sbms6jPfXPB7ArgQyN9eXJyFNaHmXISzU8C8HimRVSMj5zgIiuZTDSHUDiOPSZl/aKt8CIlhU1wEOKXhiZ7dFvwirt4EKeMTKoucIdZ309lkaG7j8m2eY8wWbT764FWUrpb4SNXzhVPbpcEzNunYKXRqEcmGu12rL2JcEIpyfcIFf1RsOiQJVhpInND2A4PQEYHfC0dkEcv1ChLo4Fv0uAB8G7UuSqaPlIE/vJYU91BRjZCOCjgE49wBd+pklaADe+PtpXQHqsRcPIFd0YQ9z5nkIGvbUHCAeH3CwIfTXWD9lausJ3+IVwon6201wKvsIdFlEJwc4uNam1Dn/wGTLjApspAoyTLJ7r3OEmMuHkt3gykgmUeleKTAW+j8q6LkC+0CiLtQK2OFohbfr8WWACqpDwE7KelFq+QvNQ1ajn1ldhmbL18+enpu3cFTanrfbEQ0FgQxQt3iSQ20CqF0NYmkiBsvrsrpPYBpdDj/BSuMvxDOIm41pheRLB4CPRZB3HRw2Tv4R038jtNISZah+1MtkcVtwWo4J6wcV1Kk+n+QsJemK21qPmWGIl3rA5/1iE3UBI24GnIcnBCpjvmi8x3OXYS0KReF6mK1eK5iKrLqNRZpThLok5TW6ySBAq9yYB8PA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6560.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(376002)(396003)(366004)(136003)(39860400002)(8936002)(4326008)(66556008)(4744005)(66946007)(5660300002)(66476007)(54906003)(38100700002)(26005)(86362001)(31696002)(2906002)(478600001)(83380400001)(316002)(6486002)(8676002)(186003)(6916009)(6512007)(2616005)(6506007)(36756003)(31686004)(41300700001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?luqYzreSce2AfzCAxMnka7TgjPTW?= =?utf-8?q?oiLcrEIiTUcUhb4F1cp8pW4Sde/2musGuv8wPjT6wIoF+SOckxusBFme/c4McHGRA?= =?utf-8?q?eCbszLr3+iIopGFABryuZoHmnjAQiIeCvXwcBu0C7LspKiNFQbxh6Bdw8NemNcruG?= =?utf-8?q?fpf8aG13+5y1TW60REK8O4jARzoqJPub9rPkwH/5krvyXcFnwwBybm1nSX8GX7erv?= =?utf-8?q?7SI+JuJU3HxlfIvzNm9rGIvIpXoMK2ms4nN9f1Hypla+dNECCYYXFsGeClPL7T4eR?= =?utf-8?q?L2y4FLnAdWw2lyC0SwEwVyXsZtR8S4QvRT8qrWLtQo7cjxAarW09zArfgTP+AcwaR?= =?utf-8?q?Br+phQLRQPUKQHcqv1J80cCPbtLjhQcPUV2RQTHgyfhpoFZ+hyx14KGJeseCYGhDH?= =?utf-8?q?vnMczu7KXgMT101gGbTX12+X/br1gWSIEaD2FyU1LWrux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75AhvPAJLElFEJ?= =?utf-8?q?gR3ikC1NLkXsZFZt+Fxep44h2mVr5bH+u7q4FKRoKpU3QMX0FXFshqB8ceMSxaX1L?= =?utf-8?q?U6DdKwMq26ZTIyq/pSNbpt157HYc8oyut3p4EvQ9MNdFeWGEgZuUVgDnO3bm0pAAb?= =?utf-8?q?3dmB1RSx05L1pHVXgLOoD0ib84WjSr4MpDYpetjSZDStBkAfYUMgsSVEPIzVpMCFJ?= =?utf-8?q?SniWK/7WKgNC?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c428b28-9ff7-4a23-c92f-08da6952f536 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 06:50:25.0308 (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: 6hnKyjNcR1VLp0wQmGTgu8FGND0tnmuUSl7hODWw/e+X7oMRPut5vgAETiTXlzbvwD6mMgifkJc52b/08bVnUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4864 I did notice this anomaly in the context of IOMMU side work. 1: shadow: slightly consolidate sh_unshadow_for_p2m_change() (part I) 2: shadow: slightly consolidate sh_unshadow_for_p2m_change() (part II) 3: shadow: slightly consolidate sh_unshadow_for_p2m_change() (part III) 4: P2M: allow 2M superpage use for shadowed guests Jan