Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp245698rwl; Tue, 4 Apr 2023 23:09:46 -0700 (PDT) X-Google-Smtp-Source: AKy350ZStcpdHORF0tZ4QPnRBQIp1KsuIdo9iMJv35NMY5eYSkryKegb1SywNNAvJrXqOUmSFG/Y X-Received: by 2002:a17:90b:4b01:b0:23f:b609:e704 with SMTP id lx1-20020a17090b4b0100b0023fb609e704mr5689502pjb.1.1680674986638; Tue, 04 Apr 2023 23:09:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680674986; cv=pass; d=google.com; s=arc-20160816; b=SQsBiXoh9kx5ALEXVFKL/kTDFyJAyJ4afkiFwxPidKXqDftC4IVJEv1aL+Ro3EXK/Q Hvi3bU9bACs7AuOYNuJxwpdv/ZVCwafLaqJWvXM5MH3AmB/+rQIMO451VxwF6ZnvH8Mz nDdQqnoI5rIVvvm/kPRolxlVoejkmj7ax9htB93oOZeSGpuLbdZUkxOsZ9nb/czcQGaM WIHb68JjV9Mk2Bq/6pIujLtC3p5UoikG0iBtq8YPtOWy2ldZ6Qj4hBssb+Rf9Ebo1lhy FuXNbK3A7TOdQVDI2SwB/z/O/hqJGU85kOmbC6Ab48rLMR7QQx3s313+s5DjNc2o4Sau JSCA== 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=Odg8D0FA3u0rFGKN9cll1m0MT0luYR8jLdDeRahwNXY=; b=RZVDudzkQSlT7f9/fHj+HJ/VWSA238LtG+q4PikMJ2eM/mxj6G1Q87b5fDBeWHVJdr lHi7IuwPRk87NvPa7LMUoh34kFOhysKnij18d8N28EAfa27FzG9zTwGdmxRTyuU0jCz6 6e2nMshbDvEd3PefR3qldbF1xS/JzEV0rIl2X3SB7O/hDAoyhJe9niFoz5BGE9lOYi9m 4323PhfZAxk9M0EVnDXuIQaye32dL3x7AukxECChl2tG/kTs/mJLIQk41bZyPtstwDBR s/w7VE8qdZsBUAvvy3vr0uCXfivpgFcRBICaMUFGZ4krYxsTKmiWLqUJolsymI6Sz+vn fxEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=GgdJ7xtV; 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 d5-20020a17090ad98500b00240262caf83si791763pjv.82.2023.04.04.23.09.28; Tue, 04 Apr 2023 23:09:46 -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=GgdJ7xtV; 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 S236934AbjDEGAW (ORCPT + 99 others); Wed, 5 Apr 2023 02:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236791AbjDEGAT (ORCPT ); Wed, 5 Apr 2023 02:00:19 -0400 Received: from BN6PR00CU002.outbound.protection.outlook.com (mail-eastus2azon11021018.outbound.protection.outlook.com [52.101.57.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF6ED273D; Tue, 4 Apr 2023 23:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R8XzHsXHPyAuOHXPpYfFGBtDfZN04JJRojKdm1Bwu5+kumJY4FcH61R5O3Vd3RWLtxXC6bURSbQGyRuVaGRZVhoDeilVsHu/yjePS2gT+J1BK3b9l3DWWNUADIFaIOT7dblAFYAURGWPLA2WrlgFuhlpWglsA1/4KHJFAmkEAuSGU6mpbpN9uXpyo1qr/9IkSYdxFp4C6Fyfhu6/Mt1vgFOMbqy49UXk0W2Y9nednwd6OJ2pDPujhB/NpukVpzwfnYhiT+ohjCHaXwnGgRaNPdI4lGcFDWFESyffwyLYmQYBW2aicA3wKijZRpnZaEPQzD5tSAqYSOuzEV0WXxeTeg== 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=Odg8D0FA3u0rFGKN9cll1m0MT0luYR8jLdDeRahwNXY=; b=SxJ553zc06NI0J/Fri8Cmm9T/mhhLgT+5yrEeuWGx7QexUNWbXfrbEd6ypj5n5KAj8uejIqOQMhVi7/zggcpu1e4Wm0Azr6ecugcMs3vIFBE7+X+YVmy/k/p2B0Zwakfs1+2PYqhtqT/pYXxqznPQoWwG5tmEqMiD9qvZaWcv5etyeOdQFW50xWs/xEdPtT2wpQQdnRPMO8uF/iqn7HC6af1gul1Pn/ay0QKpG6eJmtNWOR5oyYN1Lt1LyEegxX1I7yybqncoa4ap1RyH2g9Jg+70Lbj5/otaxq5TXGTEq1qQEa+3AUkc/3MBaPcuffBAf4HlMMSdvzy48isdV8Q1w== 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=Odg8D0FA3u0rFGKN9cll1m0MT0luYR8jLdDeRahwNXY=; b=GgdJ7xtV8cXP1+TLTLFFYmIOyCsbh1B6XZz/jwD6RaXQ3Fp4bwQkj7lszMm63+s3Q223ivyUF1FbNQFseURICTU4KBcStOQaD72fTAo3/ds2aTUVlRhusPJSgOLeugLGCusxly7ZGym2YGGLTSXa6V+qILZbV6sb39mygSav5Rs= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by DM4PR21MB3345.namprd21.prod.outlook.com (2603:10b6:8:6b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.8; Wed, 5 Apr 2023 06:00:13 +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:00:13 +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" 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+UuJvAtlASQcDK8blAYAgACPDoCAAAMzcIAAEHvIgAACA6A= Date: Wed, 5 Apr 2023 06:00:13 +0000 Message-ID: References: <20230405064019.6258ebb3@meshulam.tesarici.cz> <20230405072801.05bb94ef@meshulam.tesarici.cz> <20230405075034.3c36bb77@meshulam.tesarici.cz> In-Reply-To: <20230405075034.3c36bb77@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=1f966a54-fa98-4a7e-a454-6e469b8292f5;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-05T05:57:57Z;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_|DM4PR21MB3345:EE_ x-ms-office365-filtering-correlation-id: 11f997b8-e765-42f7-98d0-08db359b0594 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cewZ5O1gk9z954xcXfvPbGC9VbQJFJJepUxUCpaRoGE4ilGf0PP3tVd+tN6C+QvQw88V00w1YDl4eRtfbGMuzokkBk6K/m4O1AMaLns4ed9/3fDvQgnQl/bSBWzkgApfDjVT0woMbIezVxvEaxoYnKuSvp3VoneBPkLmW8ZWR0ZrVkumI0Ddl6V4wah9uZsHKzzXalkqjuCd0cTAMxfGoBZJsTli5FVJJISLrTBz2LaKruUCmR4ujoyHwUJUoM988d69uN3YxYZeMpMVJ9+MxHa3edcXedA6W+GreIPi6CSvd/FT3bXOCnZhjQy9+GcwfxdZ+Oq4MF4yxR6z8fREt0yUUPe00MZQXmUu/DVdQjnvnWDXHhO2QRxXKZ8NPa5dPY9pLSkRaNMhQIjJB9q/kXN/Kvap+wR3cc6r7FOMNiO2ssTRgHgZnbfk8cTqpXkcv//1ZI1MCt9G0vCjNyHmsVTctH894PHHcqBez3H0nHY5aXcTn99GfrLsIghOfJJhQi6pIdS2D/iAT3jQvW98HliWe6FDzdWhZ+TLxVh0+a2E3rda0t8S8V8zbsKShhtWN6x+I2pabHF1cNSjubAGJyZRuui5MbCPphINliy8+nGOG1itDGKGooAJFSEtCDY4yhLG1+fY0vflvlh3v1gZS6vvgdqeUEVTQ8gV6ksExM4= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:cs;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(39860400002)(376002)(366004)(451199021)(26005)(478600001)(10290500003)(2906002)(186003)(9686003)(6506007)(8990500004)(55016003)(71200400001)(33656002)(7696005)(122000001)(52536014)(82960400001)(6916009)(38100700002)(4744005)(82950400001)(86362001)(5660300002)(316002)(786003)(7416002)(41300700001)(38070700005)(4326008)(8936002)(64756008)(76116006)(66476007)(66446008)(66556008)(54906003)(66946007)(8676002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?K2VxYTBwYkRmaTgySFdMdFVxTlJmU2t4dzA0YVlWVHg2MFRndlJNVmYwWjFX?= =?utf-8?B?YWRVeFFlQmRRTlUzRVpmMks3NUw2UUwza1I0d05iTkp5UmdFUUQ5dVBESjEy?= =?utf-8?B?aUFHMEU4SUxtSUtnOVdkTFN2eDE0aFROWnRXT1RQZk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?B?WkhybkxuQlZMSzdHOHpSb0d6TzZMNWZPTFNjNFFpazFMM3FpSlZ0U2R2WVlp?= =?utf-8?B?aWwyR3RTRlh5WENxM3ZjTFZ4WXVvdlFnMVhHRGtRMExWWU5XZjBkcVcxVlFx?= =?utf-8?B?bFdqTXdnODNnSFZyektOY2dWTmFZVGtYN3pEMFUxVUlib05aMXVZQ1Z6MWJO?= =?utf-8?Q?OH0osHDN63D9acFadQVpmdYsT?= 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: 11f997b8-e765-42f7-98d0-08db359b0594 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2023 06:00:13.2456 (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: p33rFusqlY46GxOL0eunO3uliJuN2Ev1o4JVwbPgb0XC9CNIR8ykwMlXq340LN/hJboRFeHD/+xn8gIAFSpX4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR21MB3345 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, 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 PiBGcm9tOiBQZXRyIFRlc2HFmcOtayA8cGV0ckB0ZXNhcmljaS5jej4NCj4gU2VudDogVHVl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