Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp271096rwl; Tue, 4 Apr 2023 23:43:08 -0700 (PDT) X-Google-Smtp-Source: AKy350atnKNk+FjMwekqWr9RPphd3EAW+1vCeqCEWP7kQQG30fE3me0GGSNYV88+nVAxU9owdLu2 X-Received: by 2002:a17:906:da0d:b0:931:42d2:a77f with SMTP id fi13-20020a170906da0d00b0093142d2a77fmr2104102ejb.15.1680676987803; Tue, 04 Apr 2023 23:43:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680676987; cv=pass; d=google.com; s=arc-20160816; b=L/1KTkVUW2pZXHCvtPgEsmHOxUgzj3wKvHQVY2q7Zx0a+yjr+Xq3GxHHbbIhbLUeeL tih6tNG2jl5v6LqbR2yzUZYw2ygqL3j2RsmDPg5wEYB87IYL1i67Teah+SX8z//jF8RK 34mgE8nLU8kRnecnVGNYr8y7WGf5iKwavDyVsCFAf1P04a9UFOocl3F5s0R8OEix4mEh r9edh7WY9vuw+PJ3ItOBzW4eyz4BdxK43XfRyLfOmcsmNDc1k7JE68y4NtdCZMsgA/Lx k+Eouh2dhin+wg2YaARW5tPHng/q347X+zerqkoWjSsuJ8bIJieItRilNXHdZxjB1oPr wdWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=x9okYGVeaMPU+ZZuUofZ4nPcJNFM73uYCUZEQH8z6K4=; b=v2HeaR6yRkUst11loFvRALM1VuHaf4djyJfX5uB6p2mOiW5Gr8iWPpl6RBtdrPumTR Fo5m3YMNLRPoZscbr4Baq6M74pYPS5J0NaID1Tt11fXYcQq+VvxiCT41DH6+/47K0Zw6 7zAFfZAb3q8KTNrsdnmQgtwYqbhHJ7P8wi+LKFt/MvD9tRtheBcWFAW7+afKZibYHudi szTKovV2pEXOqOX31XHgR6WPJ/8i0oWLiJ77CHPnWAQpVHmS/8ROKsC9A9PZL+dwxySn 3AExjXm30O7osPW86/XSqBnOwEc1pu6qo/p14PHYO9OZDWMNnZHjQykYPb3L2gKTzHZC mz7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=VYHNdDdc; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr17-20020a170906a99100b00939bca46571si1088902ejb.207.2023.04.04.23.42.43; Tue, 04 Apr 2023 23:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=VYHNdDdc; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237024AbjDEGfQ (ORCPT + 99 others); Wed, 5 Apr 2023 02:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236860AbjDEGfO (ORCPT ); Wed, 5 Apr 2023 02:35:14 -0400 Received: from BN6PR00CU002.outbound.protection.outlook.com (mail-eastus2azon11021019.outbound.protection.outlook.com [52.101.57.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E673C30FF; Tue, 4 Apr 2023 23:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=USBlyGF9L2OVDmasXF5Rr42/7povTB5YvoGSMT9cSxlT+K95Vp/x0EiIWFVno7l+PSFwYWWp+8JWQ5SM8cQHF4Hus7Mk/HNiCJsAKtOAH+UvGVr+HFxdEfHNO60hXuXbpfO19gzL5J5TQQg8uQiwmUE/496oDEnqh2aH5iZSF9ybOycxnnPufzGtSWSV1vMqHS1+vCSPydcB/pzNRL+S+zk2rK+6fvdy4XMmywlUar5SKxGMl58FhfhI7n0fIctEMv575FtLSTbykln8QVQO61eEFogVI9wnMYqK1OJ8/RNBMSQPZ4fmfbPuvcUwS2/NSxBbEmQbGbtS5dO1WDtZnQ== 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=x9okYGVeaMPU+ZZuUofZ4nPcJNFM73uYCUZEQH8z6K4=; b=Y0qiav2ifHjusRpTYpLBUGfzaeHSSv3FvoqUq87LHBSRmjY2QET2T6YoCrNMBeKl0eyKURRpySUoOAIY7csmfsdG467wGZ+K+8OBo7BgE4OJ6VtC1wCh+SD0lCGoUb7MXNp+3a8mrUmI64C9v4j9/9Hj25/lz9i3WuLKDSnmtgjZLg6z2oy/Wk76ghk9Eswhjy/XE9eEnrUPnoTJzyRnJMAK1RqhPg7QDIR0np4EJx3NN1oNntPJob+taWZFwDqlJpPYbs+HqG+17gqdMe9gnWl4sS1pTOMZtSzkVtRGGksh64qjUG3wz479xW+I5l0M5fFWk2CFnAXzLs9u7GR5IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x9okYGVeaMPU+ZZuUofZ4nPcJNFM73uYCUZEQH8z6K4=; b=VYHNdDdcTqHdBTOVB3WRT1w8DyThfMyq8MnvKaA6/HuSQq6V82tFmDcDK6GCcyl0g3I/ERnULSzh4FI2TX4pp99Dn4DsnV+vFK3GP0VdalRBHEjCe10mkJTVs0x06qw4G3cgPfNiuzSiFKCS0AgJFI3rKsqhgiOcW7HsJx/cWIo= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by SJ1PR21MB3409.namprd21.prod.outlook.com (2603:10b6:a03:453::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.13; Wed, 5 Apr 2023 06:34:56 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::2e52:d6aa:9a99:500a]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::2e52:d6aa:9a99:500a%5]) with mapi id 15.20.6298.014; Wed, 5 Apr 2023 06:34:56 +0000 From: Dexuan Cui To: =?utf-8?B?UGV0ciBUZXNhxZnDrWs=?= CC: Dexuan-Linux Cui , Petr Tesarik , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Konrad Rzeszutek Wilk , Jianxiong Gao , David Stevens , Joerg Roedel , "open list:DMA MAPPING HELPERS" , open list , Roberto Sassu , "Michael Kelley (LINUX)" , Tianyu Lan , "linux-hyperv@vger.kernel.org" , Kelsey Steele Subject: RE: [PATCH v1 2/2] swiotlb: Fix slot alignment checks Thread-Topic: [PATCH v1 2/2] swiotlb: Fix slot alignment checks Thread-Index: AQHZZy9yhTeXGQzb+UuJvAtlASQcDK8blAYAgACPDoCAAAMzcIAAEHvIgAACA6CAAAKKgIAABxSg Date: Wed, 5 Apr 2023 06:34:56 +0000 Message-ID: References: <20230405064019.6258ebb3@meshulam.tesarici.cz> <20230405072801.05bb94ef@meshulam.tesarici.cz> <20230405075034.3c36bb77@meshulam.tesarici.cz> <20230405080703.61c6d60a@meshulam.tesarici.cz> In-Reply-To: <20230405080703.61c6d60a@meshulam.tesarici.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=8a769642-2ed2-44e4-bc05-3149d237b4db;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-04-05T06:32:22Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR21MB1335:EE_|SJ1PR21MB3409:EE_ x-ms-office365-filtering-correlation-id: d68d4d91-c703-4d15-0e54-08db359fdf49 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: to4ZyEZzjg+q9IJaiiNgFSLf9/zQOvRO1xP6TaoiavbO63SLruUubqL2lVIx9Vcd557Dn5KU6WeSv4Tx5KiC8+HLGDTplnrH9m5HXBdl+LPiEPvbsOC1kmjDiFARq31M6V6sAiJ8sIiwoZiwVPVGB70UujuLZ2lPznNk3znTgrz4RHJ+vM59d35EuyvToq/wzYndrwhx8D8QukHOnIjJUdmMehvqjTsgSa3YUZsqzsKh/4+OeTMm1SSX9t89qpcggTOeKyYiIGPLjbmfaqb1NETnjJzvBaRacqR+IhwbsNzraQCpKlFPE91QNFuaxms41a9J3lhyhmC0ftcYctzM4Ta8rXl9VY0WYpEttPOdPkH4sbg/z38UTym6ooal05WsyxDX82k/otSP9sF08gw/F06xSW+15UpcOjPhqOdJFcQXa0xFToIM3mcusdcs8dexT0+4rr8JAMIy7n2Uw9Qy0SUSI/5HrBG+eKbCA1SZpsR+HIui0IeBV8M6iUazf6FzdnQd5d62b5rRiqx18v8lE7JXRrA4P1sJsaBY6wuCsPhwvDnAtjZWLicw7D7F68nbrd/HWSgES4dqy0CALiMrZ6PG0pxZ3DrqjoPF0ZwsXILJpi7iotorze4TE3VHPwiD0XPqniFkWOwGQVmPWwR6aLxfKQj7u+OWIeS8zB/OnYs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(366004)(376002)(39860400002)(451199021)(558084003)(54906003)(107886003)(76116006)(66556008)(66476007)(66446008)(8676002)(66946007)(4326008)(83380400001)(33656002)(64756008)(6916009)(9686003)(26005)(786003)(316002)(10290500003)(82960400001)(82950400001)(41300700001)(122000001)(186003)(38100700002)(52536014)(7696005)(71200400001)(8936002)(2906002)(86362001)(6506007)(7416002)(5660300002)(478600001)(8990500004)(38070700005)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bUNBcm9CaXQ4eXRPWGpTODhlbUVHVFUwRmVvVTl4NjFwaURFTzRpenpRbW16?= =?utf-8?B?WWRnVWQwcGtTRkc2V0tvbmk2c21QK0l5MGV0RDZMZUU0ZEJnbEI3MjloKytH?= =?ut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SG44V1ZVOE5IVC9mTHJwN3lIUnpY?= =?utf-8?B?TExoQk5tb3FpVXBFcGtJcHRvVTlISHF2djlQREtvdGlDSEo5azBoSVB2bklU?= =?utf-8?B?YmQzbkkyQW1GNFBGcVVyVkVCeGhzT3VMc2wvRUtpWGFGdVhhK2RJV29tZVZ4?= =?utf-8?B?YW1XdzdMVzd6Z3JrbzhubkdXVk5UQnZTOXdUYU85dlI1MFgrRnlyUEF2akhj?= =?utf-8?Q?jUmXBm9SO9b30DnHD2VQGCB9r?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR21MB1335.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d68d4d91-c703-4d15-0e54-08db359fdf49 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2023 06:34:56.4656 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +9Nxb8T+/nxKfdETHcES6y4MDs1Pzl8prNmR4iVqPrrrHIncHdZ9p5EHSvaQTEXs4PalFoB33l43f3FQQssE1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR21MB3409 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBQZXRyIFRlc2HFmcOtayA8cGV0ckB0ZXNhcmljaS5jej4NCj4gU2VudDogVHVlc2Rh eSwgQXByaWwgNCwgMjAyMyAxMTowNyBQTQ0KPiAuLi4NCj4gVGhhbmsgeW91IGZvciB0ZXN0aW5n ISBJIHdpbGwgd3JpdGUgYSBwcm9wZXIgY29tbWl0IG1lc3NhZ2UgYW5kIHN1Ym1pdA0KPiBhIGZp eC4gRW1iYXJhc3NpbmcuLi4gKnNpZ2gqDQo+IA0KPiBDYW4gSSBhZGQgeW91ciBUZXN0ZWQtYnk/ DQo+IA0KPiBQZXRyIFQNCg0KU3VyZS4gVGhhbmsgeW91IGZvciB0aGUgcXVpY2sgZml4IQ0KVGVz dGVkLWJ5OiBEZXh1YW4gQ3VpIDxkZWN1aUBtaWNyb3NvZnQuY29tPg0K