From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <010701a1f9234f31-01fd5beb-7bae-4626-a5c9-a3351ad2aa4d-000000@eu-central-1.amazonses.com> Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazon11023129.outbound.protection.outlook.com [40.107.159.129]) by lore.virtuozzo.com (Postfix) with ESMTPS id 3E1E080031 for ; Fri, 20 Nov 2026 13:26:49 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JjTAxFW6mtp8D4MfoAuT87ooKJ8K8WBPt3Z8bV1516lFwwpoIF0uuM/Sx2qXxI9+Dz+mvDpvDmHHTsD7KAOqMEUmmjaBn/JZC8LbK5/pOXdN4rFVfrDbXgLcxQi9JoD0dllraDcXeoVzJhLzacUFjO0nnIHosAiecYVKeXnVFQAH2x26MsRR+3AJqS6e8wdQyQTDa3VWhIOFG7r92CBPjVv3N+/4LIfNTxopJSd2awxvwPiVyBwu5jm3sJtCBc74DB9A3UPwQ2C+lL5fBhFOgndXQ+PIOKwFQQvT9GxH1zCi9/6rUy7HFzJFNYBRMN2FZCMxV5Ll4UUFK42zzs4vEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=DjXm36QkjCs4CZibBe5aQECrd0nw4daDD1xyytSL3fs=; b=x7GGPrAIZh3wCY/C7NQ4NuE0y3GUhzun/lq0EjfZFE3bZgnP59c/tHO7R/WjLZKSWEXa2GBv/L8++iLv8mAU5mex9OhPnS/irXD0scDDqellqCljKWZyHodQIDZLqcLSKtQNAHSMarbAnAuIV63h1NlxYLUh3+xciY22haWE20jRS6hIGaYrHXpZmLpEd67qD3G2lkusn0OB7QlAwWQ3YaLOGuBlA3arL1jBmnT2IWKWLsKY3tIz1HpOZJivA64YjsMLbRSiGjJLJAag7rH57WdgjDPy61ri7ZXdTBiAmpQ5AbFmNzjz3vGolfYPad+aAPZBoj2pYWo4Wr1LvMppPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 69.169.224.2) smtp.rcpttodomain=virtuozzo.com smtp.mailfrom=eu-central-1.amazonses.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=amazonses.com; arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.onmicrosoft.com; s=selector2-virtuozzo-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DjXm36QkjCs4CZibBe5aQECrd0nw4daDD1xyytSL3fs=; b=n1hPK65got9tE8R4o0f2XHuNKrItgNRT21DcPZmVvqs/q2+lxCSUInxuJjWi/VaAyvyXGzwNcObsP6kqH36KuGpymPvY2YunCiOwyGSO66Sofws4f5tQLnrEDbxmhhfbKgTWpeBz1X33sc9ft53rsE9Y4TLy2PS9XOzSOWEJeKo= Received: from AS4P195CA0002.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:5e2::6) by MI9PR08MB546345.eurprd08.prod.outlook.com (2603:10a6:290:b6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.12; Fri, 20 Nov 2026 13:26:43 +0000 Received: from AMS0EPF00000569.eurprd02.prod.outlook.com (2603:10a6:20b:5e2:cafe::1e) by AS4P195CA0002.outlook.office365.com (2603:10a6:20b:5e2::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.639.12 via Frontend Transport; Fri, 20 Nov 2026 13:26:43 +0000 Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 69.169.224.2) smtp.mailfrom=eu-central-1.amazonses.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com;dkim=pass (signature was verified) header.d=amazonses.com;dmarc=pass action=none header.from=sashiko.virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of eu-central-1.amazonses.com designates 69.169.224.2 as permitted sender) receiver=protection.outlook.com; client-ip=69.169.224.2; helo=b224-2.smtp-out.eu-central-1.amazonses.com; pr=C Received: from b224-2.smtp-out.eu-central-1.amazonses.com (69.169.224.2) by AMS0EPF00000569.mail.protection.outlook.com (10.167.242.119) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.639.5 via Frontend Transport; Fri, 20 Nov 2026 13:26:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1795181203; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0TNSOtfJVST9/CHmdvoJCs9OXfKbrnfx8DMde6wUAUA=; b=UJsqXJ96+8mfqn+mFmt6uoF8Vxob+V2ETG5Uyr7DrjpJESvGh7arqIWdDe3WWQHs cnWYL4N5dkBPLhithyAZ1aWAPU5aGsV83ZmEz7B0uQybRz280Om2/GAps79OPXDiyNC PTlGN6aSsWkHyQAgJwzeeU2O7VoZc20jvkTUIU1hsZdPeNBuYKpbOnru9NHy/85j+uU qoQCEw70ES6dh8rKmRQMHMFobGzO2pTrk8Un7r2x6J7EUOHao64XfGXppYcQxaL7jDj Ifirb0gJvBBTy85aE3TKgKLOinnIJ1NT8/IRf1ZZWH/kNmQw0I+2SxK3IUoBGCWG/f0 IxhLNYHawg== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qftdzk2dqsatjnlrq4r5brjbihpfcrsh; d=amazonses.com; t=1795181203; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Feedback-ID; bh=0TNSOtfJVST9/CHmdvoJCs9OXfKbrnfx8DMde6wUAUA=; b=XvB17VWebJaA/KNhUkwB5xHSelDFv6AoJQQGgg+0s2J9/J+20Hg50TRikra/bCBF rqOmp/+h9toFVYlv4a/y4QW3TPbMcVxvjtPFj5UtWtUfJqP8Ly8rMbTDJTRA2wg9o2G rQedhAS2bu0NtRRlElMcP9xEsXF8osPKePkSwCkw= Message-ID: <010701a1f9234f31-01fd5beb-7bae-4626-a5c9-a3351ad2aa4d-000000@eu-central-1.amazonses.com> From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH hci-8.2 v2] vhost-blk: advertise write zeroes with the backend limit To: Alexander Ivanov , andrey.zhadchenko@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com In-Reply-To: <20261120132317.3867152-1-alexander.ivanov@virtuozzo.com> References: <20261120132317.3867152-1-alexander.ivanov@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 20 Nov 2026 13:26:43 +0000 Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.11.20-69.169.224.2 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF00000569:EE_|MI9PR08MB546345:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6dbda607-b61d-43a6-659d-08df4709eb40 X-LD-Processed: 0bc7f26d-0264-416e-a6fc-8352af79c58f,ExtAddr X-MS-Exchange-AtpMessageProperties: SA List-Id: svt-core@virtuozzo.com X-MS-Exchange-Transport-Rules-Loop: 1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|9140799003|376014|48200799018|61400799027|32142699015|261022105027099003|10067099003|5063699009|56012099006|261009223027099003|261028144727099003|261026121527099003|261026140227099003|18002099003|55112099003|22082099003|16102099003|4113699003|5113699003; X-Microsoft-Antispam-Message-Info: 3adr9H1cAcOgBdovPR+mN60a5xCv2q4nDkRMfs/oB2gi3Dgi7tfL/oBuVJwvK00tHyznIGRZyQ3hHFxaogjOFyTspGtvYFQMR7seIiT3t36c/K0h05ICugSSAzB3FkwVctg1hy3TybXYbIuv/hXJ0A56ToOxZjYRdsia0PxuYIO5pWy2f9SIc+wT22Y6sp0DvtYfkLWabkeCkTDq+O5TXnjt4c/5Vl152GpfeOEOeKfVN3AQfx4aVerr+3OfjDOdqftu/xW3zPU75Zw7HtiWe9rc423RvF8JgOVn0AfK1yIvY/8KSOyIwKnOFdVWMCVb10Iq1soyXbRzB6uKnkkqgWa4R3LPNDE0I41UNtePsjkDZYiwY+XMSx/yYMtyQ2rKn7hY4LInBIVo3hWM485K7pq+8E4bMBXgXCWDQZtvcyObFtC8743yrbxD1DnFOWJOLpyGhXgx8ADXHgGHgqcA05rqHRRq4ccAMrTN5gaEtLAAG8UJs6bATMCaaa1yFz9RECx4V+5cqyefpAlUxtsbGCIWUs4GDH3P2+eoLrc13ucTLMx2plmDZsp1JEZ2PhutbpibDbRvRHx4mOmJNU96lF6TLMY6uw5TeKrB9acwzuPZGBrUc6gTiMhbw6sA0nA+1mivwrF+tjB4V/DbqarKHL14j1eqh1Q4WcdNXT59pFJwdBHLJeurULYfp+c8BR51UnQra+cWHq0Zhdoznte/8UmE8edQ3mEhyLPtnO2CeAI= X-Forefront-Antispam-Report: CIP:69.169.224.2;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:b224-2.smtp-out.eu-central-1.amazonses.com;PTR:b224-2.smtp-out.eu-central-1.amazonses.com;CAT:NONE;SFS:(13230040)(9140799003)(376014)(48200799018)(61400799027)(32142699015)(261022105027099003)(10067099003)(5063699009)(56012099006)(261009223027099003)(261028144727099003)(261026121527099003)(261026140227099003)(18002099003)(55112099003)(22082099003)(16102099003)(4113699003)(5113699003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EBarYTTA2uWLpiyS5vyVvKf6uMiJNCwUSq84VTSYFkW46oMaT+OB9wDll/hM3+hupRa9eDgkVyjaicvx/xSyDEOIbYEEfCpFe7pefOyWefEHSvRYzZHXMRVRiNMVoYPV1DlkDembjxz4DXDy0w5SsJFoJAkhBzYJcIsHujw7rboNGxbWeUjEAIf/WFnkwravB1RFek9aLPLf/WWj6RdzamEbs1ZVohDHqs0TmBGjw9RMUgS0uOjbdTBw/2TRwNeH62HhSqr7rU18lDqt+XEyV6y2RYsrUCGKurLE/Pr30+S3QXlhy7tffTdViUooWOz8a7/4cG/9AXWj2kqgG5N7+xrgXSFzKRNnfTDsASGZRZVf9i/uqTGMqnm/jJG79uVtQ1IGQYtXxbZnaVcL4b2GkO6icnNKjEyVy6EW0i10lwcLux8cgMdqQz4adnYZue/L X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2026 13:26:43.6447 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6dbda607-b61d-43a6-659d-08df4709eb40 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000569.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: MI9PR08MB546345 Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] vhost-blk: write_zeroes_may_unmap=3D1 advertised without justification -- commit e9ba7478b40c6be915b18d378891abd29c85cbb5 Author: Alexander Ivanov vhost-blk: advertise write zeroes with the backend limit When the write-zeroes property is on, this reads write_zeroes_max_bytes of = a writable backend from sysfs. It advertises that value as max_write_zeroes= _sectors, capped to what one bio can carry. The feature is not offered when= the backend reports no limit, the limit cannot be read, or the backend is = read-only. > diff --git a/hw/block/vhost-blk.c b/hw/block/vhost-blk.c > index 8ecb6a441e434..3e5150db4a879 100644 > --- a/hw/block/vhost-blk.c > +++ b/hw/block/vhost-blk.c [ ... ] > @@ -772,6 +809,12 @@ static void vhost_blk_update_config(VirtIODevice *vd= ev, uint8_t *config) > blkcfg.physical_block_exp =3D get_physical_block_exp(conf); > blkcfg.alignment_offset =3D 0; > virtio_stw_p(vdev, &blkcfg.num_queues, s->conf.num_queues); > + if (s->max_write_zeroes_sectors) { > + virtio_stl_p(vdev, &blkcfg.max_write_zeroes_sectors, > + s->max_write_zeroes_sectors); > + blkcfg.write_zeroes_may_unmap =3D 1; > + virtio_stl_p(vdev, &blkcfg.max_write_zeroes_seg, 1); > + } [Severity: Low] This isn't a bug, but the commit message does not mention write_zeroes_may_= unmap or max_write_zeroes_seg. Does the kernel vhost-blk write-zeroes path = permit unmapping, so that always setting write_zeroes_may_unmap =3D 1 is co= rrect? The message explains the single bio per request, which motivates max= _write_zeroes_seg =3D 1. It would help to state both choices and the reason= for each. Carry the trailer below into the next revision and Sashiko will not review = this patch again. Reviewed-by: Sashiko --=20 Sashiko AI review =C2=B7 https://sashiko.vzint.dev/#/patchset/2026112013231= 7.3867152-1-alexander.ivanov@virtuozzo.com?part=3D1