From patchwork Wed Sep 22 10:14:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 12510005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB860C433F5 for ; Wed, 22 Sep 2021 10:15:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6AA0A61178 for ; Wed, 22 Sep 2021 10:15:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6AA0A61178 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.192420.342846 (Exim 4.92) (envelope-from ) id 1mSzHQ-0004VK-TW; Wed, 22 Sep 2021 10:15:08 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 192420.342846; Wed, 22 Sep 2021 10:15:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mSzHQ-0004VD-Q4; Wed, 22 Sep 2021 10:15:08 +0000 Received: by outflank-mailman (input) for mailman id 192420; Wed, 22 Sep 2021 10:15:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mSzHP-0003Qi-UA for xen-devel@lists.xenproject.org; Wed, 22 Sep 2021 10:15:07 +0000 Received: from de-smtp-delivery-102.mimecast.com (unknown [194.104.109.102]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9b658017-5ed3-49b3-9ed6-71c69138d307; Wed, 22 Sep 2021 10:14:54 +0000 (UTC) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2053.outbound.protection.outlook.com [104.47.13.53]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-15-QG0FgcmDMgu6Vkw0smaTbw-2; Wed, 22 Sep 2021 12:14:52 +0200 Received: from VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) by VI1PR04MB4189.eurprd04.prod.outlook.com (2603:10a6:803:3d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Wed, 22 Sep 2021 10:14:47 +0000 Received: from VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::4d37:ec64:4e90:b16b]) by VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::4d37:ec64:4e90:b16b%7]) with mapi id 15.20.4544.013; Wed, 22 Sep 2021 10:14:47 +0000 Received: from [10.156.60.236] (37.24.206.209) by AM0PR02CA0093.eurprd02.prod.outlook.com (2603:10a6:208:154::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.17 via Frontend Transport; Wed, 22 Sep 2021 10:14:46 +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: 9b658017-5ed3-49b3-9ed6-71c69138d307 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1632305693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xeX058YAZuLlrCWZaRoSdAGTp0Uj3/VBmybKo4LJZZE=; b=I2TmtXtDBGokbOA3Nu7o1bZKTJSkxWFu2SXPtucSAcxEjB+X7iYRcsjnnqro626ub7LZOp jVObcU6Q+TQxAxsdgvBnGcFJQAwQcC/WDf0ffPMV4p5SzvsZ2w0r57hvLUGf/2uoeHGRHK NEyxT5kzY5NwrdoV0EmATCS4AvAYXlQ= X-MC-Unique: QG0FgcmDMgu6Vkw0smaTbw-2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W6B+IyvVIKuhEo6kGSOyJpN2DaQVNfEyp1fi8Ef/L6wgywwZox7xHU2nSUGYDYpvNNWDjqD1qQnaH0FZ+EHhbhrsD7yFHaJsPWf9LVZrSQ885iVQi4dH0f6KwXOi/ZpthaSjVVPwtWkEsWILCpsf0VE7aW5OUaGKIp3gdxfkLhA5vSGBqFe50UCu3hYi/sVayl+5wW5J9k/yrp/9sHBgbJki1JsiHwqffqT/zeJjJmGxQ5GqMt5hjip5nAZMPYiL9tRq4wz32aTKmNcnJzGIH1OK7AEjwP0u+d/AQ8yGXy+LkbmaCbgg9ig5DYT5qql9ciVN29ODANOdkub5t76BeA== 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; bh=xeX058YAZuLlrCWZaRoSdAGTp0Uj3/VBmybKo4LJZZE=; b=cureU2AMal3wkR4YSvKLHktYotH8m0+cCrWWSyYnAIGTKr9pQ238i0iLKX6aKkwvS4QAl3BnzMxPHAmVBtFmbNh1vWB3NAxTH6K5fimBZ7BpzNIormzgYlXFarS1BnGscw0lDfB5z/wOmYiJ7JLELIf7bsBMIlwO8N6tiONlWr+/4f7mI/+2k4LZeDf++LyhBLNZdMaHbbP2cdW3r+EGup2/lc6mOIyTg06cDlds/35gi7zkW8qaIALwRA3/7H4kukzqwTL8eEiW4qpJ+XCJdAyb3evSAWXHotnl2DGMNjkgv+++RNRyB8Ec/vDciUiZyipuNIwb9EOuR3FCLEZvyg== 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 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=suse.com; To: Juergen Gross , Boris Ostrovsky Cc: Stefano Stabellini , "xen-devel@lists.xenproject.org" , lkml From: Jan Beulich Subject: [PATCH 0/3] xen/privcmd: misc corrections Message-ID: <0f0db6fa-2604-9a0d-1138-0063b5a39a87@suse.com> Date: Wed, 22 Sep 2021 12:14:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Content-Language: en-US X-ClientProxiedBy: AM0PR02CA0093.eurprd02.prod.outlook.com (2603:10a6:208:154::34) To VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3ea3b95-1d9e-4b71-559b-08d97db1ce22 X-MS-TrafficTypeDiagnostic: VI1PR04MB4189: X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MhtbFWLhrDZmYZwL5r/W7e+thwRoWaWtatT/JHViMFh2z70yJ2DZGHESjQ75WdGiBTjeCY5ZPuzQD1P05tfHzjG83JsmZ4UE5R/29LSgM6u7Az+3HwEcye5wphzDkITxVpexvMb78hG7n8fHVl0fL7RXvTQrd7D4EAWa54W+LZomQjKAQQC6vhBD/HS+7sy+gp32d5/LbdMhudI5P1H+dAegk2PseW2Qc4DdPJ8y6pY3AuCApHRGHQLLIhw1x8uQ8xQvZn+fO60pA5pBBmnEFFJ/LMUAXPcc36JM6wV9Q/gZG+jZ1vYTK5y/z61Awpgl0XxAM1+Ve8xu573K1GpY9/swhYk3vYkkmfNY0nVoWacUbXC78L1dlwSraBf6T5X+2gt/jvvs9AdjWOICc1gBl7x1ObOUCRfb7lezclTAy33UhfwoOBGF9QH8eAGtjNFF259zEL1DdW2mtI4wZ70+NPDs/BenbGZQgWvJO4dfu2NzImMUOr3OhDwANc/G3niVmnt4QuYCJfq2sJT7JlBlO1iIZfVZAN0D/b6m52wb4cm7Yz5PBCXDkmje09anaFsyR5N3e2VqgNCUtQ+J6G+LBZ/JN3rs95hMoNTdKguvZe8JLc5FGgIqS3hWugc+ocYmz4ZH7syDyUEGQJwbI0PnSc8TaisBe66k6ukakpua0zfH4P0XIQYP0znuFWJQSFG+qLBdjNGY6FmyOzKOP/KR6MjpY4es6aDXgRJnGM9jOm0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5600.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(86362001)(16576012)(31686004)(316002)(54906003)(36756003)(8676002)(2906002)(186003)(6486002)(8936002)(508600001)(31696002)(110136005)(26005)(38100700002)(4744005)(2616005)(956004)(5660300002)(4326008)(66946007)(66556008)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xT8w9QCmEvcZaUcPAWnqacAWJ1sr?= =?utf-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dXl+vdRR+kaj9V1giHZReuiuzBLEAdeEAgujvxkb19EjMPq8/RduhSqvFd?= =?utf-8?q?mjtsFHi5ggtSRSZaSQe3iWi9pZBKBCLSmne93zk3bJo/W17DwamOpHsYrECqK9rvH?= =?utf-8?q?+GbQDv+fiot1XU1F8+mFiQ4AopwTO/xeem2MJll5/t6qv2kibf3JSr2kIE1mbV7cv?= =?utf-8?q?gmuLGwZ+g5L8aYeTfGwWykWOKlwpxrIOZlOR43XDlHUa/jVmNRObRrX/OQGuTR8tz?= =?utf-8?q?+3yrtnGkRObBfle8yNiefVPijhyMV9oTqOmyrG+e29IpDyd0ZYVoEuSd+XYCqfgoK?= =?utf-8?q?t2aWjuWJhBT3w9IK20acz+ENC/D9PpVkPXIf7y3dTWkYAiwN300xFOv1D8hpnDfSn?= =?utf-8?q?TY9SZo4GHpRp9xla?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3ea3b95-1d9e-4b71-559b-08d97db1ce22 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5600.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2021 10:14:47.1695 (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: LqgbeM9laLAwVbi9EzYOovfFCFxaCQcSM+Ksj0jrBS6ReAwx3OA3VoedFXlvUsad1T3xH8SXAsLtHhDdcBv5ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4189 The three changes here are largely independent, except for a contextual dependency between 2 and 3. Note that patch 1 will need actually testing, on Arm. 1: replace kcalloc() by kvcalloc() when allocating empty pages 2: fix error handling in mmap-resource processing 3: drop "pages" parameter from xen_remap_pfn() Jan