Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp861264pxb; Fri, 28 Jan 2022 11:41:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJykGMyjxN6I/BjUCZjO3bfnbpLXtD/DGymd1rQls69zRxAnBolrV9xVZ8jOLcmVc0ukIHA3 X-Received: by 2002:a17:90a:7891:: with SMTP id x17mr21179252pjk.112.1643398879706; Fri, 28 Jan 2022 11:41:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643398879; cv=pass; d=google.com; s=arc-20160816; b=Y5ERGEmvsrv/FD9gGHBc93fpUKjyrjb25JJlMKJtlRQq+PCPdgO1O2DxL7rSEqNM1F mSCVROR4+XOHRptzzm8hbIj75HYtVCvhXwAVBuV5W/1YdZCTiP8o9KjN/SQTqgNjw/Nl EeY4hzNzpuHv1OZkvMki7dpVVZdt4xWbQ77eFS/tQRwr4c3cdJzlmf8VzS6K031tuGC2 MIv3c5kp9KcnJQPcU3CoRzagcTioOOgMHpdBTgbuSu/YehYjDG0PbEu7yfzOyfvEfHSV CallEHhNegnphJ3HI0C1080lTeVUIBwTQW6F9IXXDQAVJVxwNkcX13xS4Whr2ljVS7G/ n7gw== 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=WtieCV+H+quWkWGe1AvyhvR8DUguLMfhLK11giWh2zY=; b=Q0YjOSx2mSucv9NxgFMahLnaol33vJK3lruQVwJVCkFDTsnfU2nIWcUFP3UKsnTOTD oZxzr1nXy4ZxEZy8jovMDE6eI2NYwPHUU64dUVpox3K7bT4fQjrS21HfVD77Mt9Yr+NM 6g4ugKHoJqnWCI6YVYixNawuwVen+R493pE/1TnHsAqpYCdbZ0hlG6wQ9GIcVS9bu0JH C8OH4KVOmrcAJ5FftMEvfew0AtKwKE96y3jAw5TFAeBCb7OhCU7vPfokorMFo93zipe3 5eYAjbuOyz3Nt62YX0BnIVhU7dlCKgl3j8GAm1Hc9gWa6jcYyWEeexnycMOYwuVdvbeC mTNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=aD6rikmF; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si6352567pfu.205.2022.01.28.11.41.08; Fri, 28 Jan 2022 11:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=aD6rikmF; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1344282AbiA0VWq (ORCPT + 99 others); Thu, 27 Jan 2022 16:22:46 -0500 Received: from mail-cusazon11020016.outbound.protection.outlook.com ([52.101.61.16]:14036 "EHLO na01-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S245393AbiA0VWh (ORCPT ); Thu, 27 Jan 2022 16:22:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+YVf0kodVU9XABGThPk+XGm8eMfPdPv66WjgAD3Ui/HkInmyoEtRXjZxyZlxOMGc3Vp7i1NqikrH6zp09K2zYJguJD4MKoL5VPg8AUyV5mBwC4o3subCKpk6mibY5VIHoNmlzUEv0SX25iichm48JYhdtKnYKfJmZUEywCTG7AZZ/tW2Q7caZMYL8X+zcmzfkMr08Q/6/HWNd3L9ZSOluV05n6lXbrbO8THTuG09P7gaA8A9/SxukYlr8gOI6B7NGO8VcTzfx4ha4IVkaqFfVeKwD2MpW5E1UuAzgMko2nMZXfO/7ylb7nbpAX1EGj5yk3nCkciPNoQxgO1dekkVg== 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=WtieCV+H+quWkWGe1AvyhvR8DUguLMfhLK11giWh2zY=; b=kCkBxyHaQkkEU84iobKnk122RViNj2LwSmi7arfYtkctz0QME1nOa3+FX7LCPthfWmjogkhSpcyQ0FJFa0YA50epkyFkhCSJXreFwmlFf00rHBJ2oJFPwWucyvDhtONOaQJ3EKrXuoxlIJF0hbn4vXbB9ZiL3rN0KqyPBKna8IBPirpBD/gDiY74dkUewT5TrlEx8gpV2KVYtWirgqni36EnUH0qp2uhfc7xBsdi222D+GdaEKul8m1CPGMlGyEEPuOkHEGsQApJrvPdAFvmhoOvpzOayzQ9y4C86GiyzUOER6U3Ozw0mrMh+/Q5K9Qtl44Ei0QqcIWYHmj1rv9Z6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=WtieCV+H+quWkWGe1AvyhvR8DUguLMfhLK11giWh2zY=; b=aD6rikmFzMa669dOVYuC9DfaFFOlR2OV0ptxBpkiX+e95GuwWM5E5xGRXGFFql+yoORuU6jG6b8OyOQv181jvcKNOFgzFxxzI1ux8X9c/v29ti3GcOQfWtg9dZVlQK56oANKvy8fT1YcPZ9eFqUZGX24zpRtQvPfQWcZmNA6nhQ= Received: from MWHPR21MB1593.namprd21.prod.outlook.com (2603:10b6:301:7c::11) by PH0PR21MB1944.namprd21.prod.outlook.com (2603:10b6:510:1d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.9; Thu, 27 Jan 2022 21:22:34 +0000 Received: from MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::61d3:a4c2:9674:9db6]) by MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::61d3:a4c2:9674:9db6%7]) with mapi id 15.20.4951.003; Thu, 27 Jan 2022 21:22:34 +0000 From: "Michael Kelley (LINUX)" To: Yanming Liu CC: Wei Liu , Andrea Parri , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-fbdev@vger.kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Dexuan Cui , "drawat.floss@gmail.com" , "airlied@linux.ie" , "daniel@ffwll.ch" , "lkmlabelt@gmail.com" Subject: RE: [PATCH v2] hv: account for packet descriptor in maximum packet size Thread-Topic: [PATCH v2] hv: account for packet descriptor in maximum packet size Thread-Index: AQHYBbs9Z9MCDPVXTEy3Gdtosh0+p6xi6g+AgAe+98CAAC2igIAMpPbQ Date: Thu, 27 Jan 2022 21:22:34 +0000 Message-ID: References: <20220109095516.3250392-1-yanminglr@gmail.com> <20220110004419.GA435914@anparri> <20220114191307.uu2oel7wbxhiqe56@liuwe-devbox-debian-v2> In-Reply-To: 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=ea6c9051-7354-494a-bc5c-30b630d3e7a6;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=2022-01-27T21:19:17Z;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-office365-filtering-correlation-id: de5696b3-a466-454b-ba73-08d9e1db2282 x-ms-traffictypediagnostic: PH0PR21MB1944:EE_ x-ms-exchange-atpmessageproperties: SA|SL x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V8bPROwwN54BLz/gPnhjshtnBmZRnSraXHjwx9LeH+mxMYGH1Pjuf4zceYELZ+oqJ9WOtZ5HeNKQYPaVJFKc5A+XG9iHpwNCVEboxWVIbvUIJEbZIO3+JqICkmyIPmGX6zT+1UB/HuiSvbEb0/D2JFl3RVVczSStkKhVMTa8HwCi8jPGOg39PfafLMtZtLOeLnQBLq5d2hdZssHlhDhr923C/UHchSdnm5mwRXJ3cmms4Kui+PYwZFW3qDBlr7k1r/nTBEkG71pC/dbpd8RH/g1uumlliBh1l/D6EpAnYfrTq9GKvqV8IwP8Ot4u+h4FTzfCR5pcyn2Bnf60BQk9243UbIdjWCzuOMk8gsyjTp2zyW0F8WBYYXJydysSj02a9mGGPczKIX6nbIj0DjqzbTgmNkMXXTzd9WFHMzDfuF4UMoPw1eqX2VSgb/x7kF4pauSri5dpOj19M5mWpM0PSE7+P0eoKWEZWbPBKeuzpVoFsk4DTfCk5OsfOQ1YmykH+Ij9/wYUeK5CP+dBElGEoEY8s+AFa32uPPBXMYvdztu4ilb4Izzer4XBqc+icQNk6x7C6UcLSM0Re5oCKbFRP8wFU0u3bCgErMCooLcaT3oXH/mAluTKg9bnTAACzXCKz8uYFpdrysc+DpkcUSetcj8TjUDAPbwQhmyNtDZlFAYDbhw8GooyJbYTiFR5h8g86nDx8g3RmGGDtiE06Hreaa3M5subSe5bT/8gzGIBAEn2/cORlNdiS0k+gjskFSj03YCKvmRur9km1m/pitwRP0JoGBY3Z8oL3qZUntn9fEMlyiFEgwYQq/rF05PMx1nDSHN6TQ/n0XsSA24WlJmR/g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR21MB1593.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(15650500001)(6916009)(54906003)(66946007)(7416002)(66476007)(66556008)(5660300002)(4326008)(26005)(71200400001)(76116006)(186003)(316002)(8936002)(8676002)(38070700005)(52536014)(64756008)(66446008)(10290500003)(9686003)(6506007)(33656002)(8990500004)(53546011)(38100700002)(55016003)(966005)(7696005)(83380400001)(86362001)(82960400001)(508600001)(122000001)(82950400001)(2906002)(20210929001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?n1jykoqIjLLjbuOhZeCSTA6PESnuL0P4wMOBYBrwskk+pJ4JMZ5gITvFPmJG?= =?us-ascii?Q?V/XwfrgVv8Vr7lwQj8B4n6+UtOeLg2oFwFyRwDYavLbyjJHNNb9oadn2iMXy?= =?us-ascii?Q?zIpYQLkvmSy8bCzzC7FgWpF296Pn4JoBoCNe3EqtdM8LyQS+Q0Pzm3AEBSY9?= =?us-ascii?Q?vsW5jyS3iU5qSJ94tiOde/bbpkEk5O7gpfwxdVnv/oOHhWbfnZcvms4Gq53f?= =?us-ascii?Q?D7gjMH4GwYr3m2O9zuGdd3LLF4uPAaCHdeBHNoHywF7yXGqgz2vnFtNejGpU?= =?us-ascii?Q?cgTh1IPwzVpQY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K?= =?us-ascii?Q?USy/+i+YgiEUDv2J+1/H+HL9VlI2lR1v/j7IyNvO8bJcBEjHi2M7SH5gEXhQ?= =?us-ascii?Q?fCc4EsISJ4f5PUSM9W+xXWhE+HaiG3lBsCOWjCttlmawYlTOIAYC7LfauSZv?= =?us-ascii?Q?iTo4h71gLwAktCrDA0jcFfcbVu+o7mc88j0p9syqkxgOXj8X7kSuFJ5HkY4Z?= =?us-ascii?Q?ZSTqoYyWuTp/DJYt4Xfrrg4f7GnVfKIN/dw+h1OhIkbj1ctxzw57FCF7ns7B?= =?us-ascii?Q?nuhmIrozzVFRh3LTBDM4yqb5HBGQspIAvYKm8XGyxXH2zK9+m7cjU4dOCHs1?= =?us-ascii?Q?hDKIxJo473LadK3Qs2JHWLv5qW7CN2MWhUYWHRsn84s0LPYpfx9xRsw8iCny?= =?us-ascii?Q?biF+nqFLk7G7NLcs9Un2fwf0Hyo40L47poHc1J0YipJVAmVFKDJva1lhFu9C?= =?us-ascii?Q?ols6jeddijP90HG91eDRNTLNPOTA2qi29f3a2Vu3HjPzKmjSKbAvPGklDzQ4?= =?us-ascii?Q?5uPDrw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR21MB1593.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: de5696b3-a466-454b-ba73-08d9e1db2282 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2022 21:22:34.0416 (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: Mpdy78zrxXvjQanDD0zhI4401E7GKpe+DWJkd1pNCg6tzZ8kDpi9Y6GoswSbUcTq/GWjrZACZYnIQ91eMOgdYLLoBLogzOBgg8pJbxqnKjw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR21MB1944 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yanming Liu Sent: Wednesday, January 19, 2022 1= 2:14 PM >=20 > On Thu, Jan 20, 2022 at 2:12 AM Michael Kelley (LINUX) > wrote: > > > > From: Wei Liu Sent: Friday, January 14, 2022 11:13= AM > > > > > > On Mon, Jan 10, 2022 at 01:44:19AM +0100, Andrea Parri wrote: > > > > (Extending Cc: list,) > > > > > > > > On Sun, Jan 09, 2022 at 05:55:16PM +0800, Yanming Liu wrote: > > > > The VSS driver in hv_snapshot.c allocates a receive buffer of 8 Kbytes > > and sets max_pkt_size to 8 Kbytes. But the received messages are > > all fixed size and small. I don't know why the driver uses an 8 Kbyte > > receive buffer instead of 4 Kbytes, but the current settings are > > more than sufficient. > > >=20 > Well, I'm not sure, on August 2021 there was a patch changing > max_pkt_size to 8 KiB for VSS driver: > https://lore.kernel.org/linux-hyperv/20210825190217.qh2c6yq5qr3ntum5@liuw= e-devbox-debian-v2/T/ >=20 > The patch mentioned a 6304 bytes VSS message. Which is part of the > reason I tried to address the more "general" problem of potentially > mismatching buffer size. >=20 This is certainly interesting. The Linux driver is not processing all those bytes, so I'm not sure what Hyper-V is passing to the guest. I'll check with the Hyper-V team to be sure. Michael