From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <010701a22f178185-4fc78430-d11a-406e-8b7e-3b88d0124193-000000@eu-central-1.amazonses.com> Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11021097.outbound.protection.outlook.com [52.101.70.97]) by lore.virtuozzo.com (Postfix) with ESMTPS id E7D9480063 for ; Tue, 1 Dec 2026 00:53:22 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wapqJCYVEUcEjUgrcfoOknqdxMbINBVltrKusSxkQEMgyFKCTTe7ILadSqDmqjZ+WANN6adVdsFpRgoJe5BC5KJZo48w0O6RxcybMw4w9039UNpy8HeNrOsCY+CXcTN6aYcR3/zgpU8vtv5IMBg4mZCczr4jLLJJHQWtN2kBzvjPnjNSSmjH7wK5ad+LkzaEhYdVKElG5RuDvK3GXoGH38S7oC+Koc+XQ8GrI+kDaG1ZM/v+HUELAP1pJY4k0Oq1IZ/wJYJiAGCydgdW+LVrRntSCcs19m92tK1eNj4+vzaw/DTX6CyEO+yDKYxMNRjuMKUCvbwkfiMccUcv5RH1dQ== 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=r5o61f0xDlUXdt8UOGNFfcgM6zhdiSnx9/3FgYZplnE=; b=gc403A39S+ita6O/qXu5DwEAza9SU8T0M+RiU1pf10LLnuXHGZaliHUA+en/8Xt6xu/9W0Q5Z/NRPYDgDXTW10w6gT0kl65U/H8Df/i7fXMNh9JLx8leCLg/lRYdzXqOHM42ohxDZq4itClY/++9I9MbNNpkrskPBBUscWwL5oqaCEB9yu+LS0e+lwHdzMzThW3Ai8LxpD4XuFAlqNgbVaZDgkGjpg/cGWFJENrtFmnQXD8XCKtQORUZeDhsJYAHVRClK5yvngTAl3aG68uaCB/82GsEpu+ZVllSytxPyghvTaofqXpwsPY+bCT6zz7fOJJcCyyb1caIiCaMHaNSEg== 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=r5o61f0xDlUXdt8UOGNFfcgM6zhdiSnx9/3FgYZplnE=; b=EPRIc05zOOWttCzdVdD8wbY+URr6Ioszt0tN9x2wqQxTWuh1RmJCexaw1u427U8/z7pll14jtFSlP35Tk8yBw/RixMw7JrSozXT9rKpan58LUZob1HDtT++Flll96XQsBxu+kH+t3mwZ3EuZO1xPzge9SmG2M2jdJaHXlDILzzc= Received: from DU7P195CA0020.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::11) by DB4PR08MB8149.eurprd08.prod.outlook.com (2603:10a6:10:383::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Tue, 1 Dec 2026 00:53:20 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:54d:cafe::69) by DU7P195CA0020.outlook.office365.com (2603:10a6:10:54d::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 00:53:20 +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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.3 via Frontend Transport; Tue, 1 Dec 2026 00:53:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1796086399; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=oKkx2l0bNhc2FsQqfUg1TfC2Z7LzugFMTro8ZH2UvNQ=; b=RfeUOSnZF6AW2vl6kxNH8rbZXqTsLBJsvWgvTn32vP4vtCr0eE1E9kxcJRm5DLUF AlV76Cs4t0r93pSMEBX1KRSLYF/umibX9W/fxy9YreL7wl5FSS2rKnD2RjUfHovwgIf Pkh6DttZvfPjIHsF2oqhhZWXt1GVpPzsZmxCDeT7pDhGjCePAYSd7K3/Dx5JXuYx5JX fPNm7zzJ5MGozQNnbGpg+33o1lXvLfusomIf7XtgdB9xn+LMlh6ysdWC0dDzS1/NYAu 3Amfrq9/GUpicLHf5uy9rnrIeBYLYWi4155caRw+kfYxJOFL5hFqYGK11issqHIilbf p9TMEVDq+Q== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qftdzk2dqsatjnlrq4r5brjbihpfcrsh; d=amazonses.com; t=1796086399; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Feedback-ID; bh=oKkx2l0bNhc2FsQqfUg1TfC2Z7LzugFMTro8ZH2UvNQ=; b=R6XLpVDmcIeSzlFWSOq5pFH3dLg+Mmg8QBqLFsJPo2ngrzjWtiCn7rxPt05muAzX yIZiH2nUw0y95FDkCDOnqdHjDyt6TDDsJDUXMKEWuJZaPl/i49ARaX5Jkq6MNsp8/8+ vtwpUn6fdI2aJaRwKWsa6WgApiDsPvD7MMvcIjZo= Message-ID: <010701a22f178185-4fc78430-d11a-406e-8b7e-3b88d0124193-000000@eu-central-1.amazonses.com> From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH hci-8.2 v3 1/5] linux-headers: add the vhost-blk held request ioctls #VSTOR-152175 To: Alexander Ivanov , andrey.zhadchenko@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com In-Reply-To: <20261130094210.1686802-2-alexander.ivanov@virtuozzo.com> References: <20261130094210.1686802-1-alexander.ivanov@virtuozzo.com> <20261130094210.1686802-2-alexander.ivanov@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 1 Dec 2026 00:53:19 +0000 Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.12.01-69.169.224.2 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028CFC:EE_|DB4PR08MB8149:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cd83fe9f-6b01-4526-4807-08df4f457e43 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|61400799027|9140799003|32142699015|48200799018|376014|5063699009|56012099006|10067099003|261026140227099003|261022105027099003|261026121527099003|261028144727099003|261021121427099003|261102123227099003|261009223027099003|18002099003|22082099003|16102099003|55112099003|4143699003|5113699003|4113699003|13003099007; X-Microsoft-Antispam-Message-Info: bTE0Dowk+F6p9VQnTYDCbQXVnheP/xp4cF+HINI1jSm7V7AK7koKd6zFeZW1ZUnuTQEd+GMYOqpAaEy40sjWC6MZ1BS0tuOdaSJkD1Km/J+F5uCKj/zYKhZv+DsGvccv7o8GgSe3Of7CXBgLvBAyR9JSFJfjKTbI4NAL8Hwpry1isjYRL2wqdrOlgqroqU4RP+FGV9A0t2ZG6XwzzkHfxl6BqE0DnT1hFyIIt6Uv6O/JEKx9ikOkyMluzwDUdvI6lsTzAXGZS1FjrqnIm+TZRQYpWyvSX7J/CXe/C3hmpR9g8AV47hI4kVKrBs8KhrxXP+DgMJMVF682dPnuiSP26kqkVQ7pAH4M37V76z8EhJ7tRgII5p+G/mh6vHHOYW5GAw+bCH7gugafe+FVQXVbfwXZ9e5+Rut9U+uZp/8wpR2PlrZCyxlq12ULBGkuxB7HGn5VUlUqj24kUsBb7irT1ifbLUA9h91E7S1xsiDRxc5YUQMXn+l0oHITgstCnxxvIwiPjxih/4Df+Uuv3/z8Euz8pC2A77UCcUMVr24HJ9+5DNmd1OriyLb3AGVfriauQ3V12CRcD3HMNC8DR0xHXBjXz+7ipHb1JnGcQDBzRptxm5ttk5NtchDuognxhX0dXNYcaPMHYjIbnWwcLbzf60vyKDw/o6+5IOtpKncAUwU0Du7Bg66xoacb5jct2GqhMV7ZF+BJzY6Ez6BFHJS8FNB66r6+rFoNYV1soHM6uWyV+5dEyuP/sgs8Az4Th9lFZR2SvEe72yNg/qN2GK+StPsnjnkzQ/8g5cZg6EPnEgNFZv83ixjH5EROTlUmDtmcSWpEnCtTwXeKhqgzIyIo+AimB2dioMofg7YzDWHQeV+beeuaIsui92nS+L5kzFhl 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)(61400799027)(9140799003)(32142699015)(48200799018)(376014)(5063699009)(56012099006)(10067099003)(261026140227099003)(261022105027099003)(261026121527099003)(261028144727099003)(261021121427099003)(261102123227099003)(261009223027099003)(18002099003)(22082099003)(16102099003)(55112099003)(4143699003)(5113699003)(4113699003)(13003099007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BcoyrHnWAJNxSySLeEkLGIUOB+dS9qsEJvUewyX4Eslz7I6qdMvyh1YuKzHivx//bFy4AJTXybsL2O5r81bC+PlPbphVVZRZrpp+D63MsD4Ut52hjmqxU7AjiEFBgZDfIilUf9yVz96Yruj+aN7dNRrWqUcVorxYK6K1WEAcTZ8oYSbPxnEmXLcE75z73y8cvRHKviOEWR3/a6v5JP8fCLkjfEMH3Cq+KDrWQOS+FA45UdONzR0SJTOU8t6gazhLAmu1H+qI/uFDj02U8umvXclBdFyYvU228Sb1m7Prwz14yc+TKWlugYBBXbwGl2+GMlw5EWtSNRH7UsOHTx7ZVWZWJ+6RVpaHBYptCF/TTX8CXOXrzLBURRXAL2LO0SPbiQP84jcLIllKDo4Dx5oIN1c0qJGatyY3vDRYBL03JyBvElpF1aj03mhgc5iAMo66 X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 00:53:19.8678 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd83fe9f-6b01-4526-4807-08df4f457e43 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB8149 Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] linux-headers: ambiguous 'reserved must be 0' in held-request ioctl docs -- commit 611e7f67446f06e405b70a31daff650440389848 Author: Alexander Ivanov linux-headers: add the vhost-blk held request ioctls #VSTOR-152175 This adds the UAPI for holding vhost-blk requests that fail with ENOSPC. It= defines the error policy flags, the held request structures and the four i= octls VHOST_BLK_SET_ERROR_POLICY, VHOST_BLK_SET_ERROR_FD, VHOST_BLK_GET_HEL= D_REQS and VHOST_BLK_RESUBMIT. > diff --git a/include/standard-headers/linux/vhost_types.h b/include/stand= ard-headers/linux/vhost_types.h > --- a/include/standard-headers/linux/vhost_types.h > +++ b/include/standard-headers/linux/vhost_types.h [ ... ] > +struct vhost_blk_held_req { > + uint16_t vq; > + uint16_t head; > + int32_t error; /* positive errno */ > + uint32_t type; /* VIRTIO_BLK_T_* */ > + uint32_t reserved; > +}; > + > +struct vhost_blk_held_reqs { > + uint32_t nr; > + uint32_t reserved; > + struct vhost_blk_held_req reqs[]; > +}; > diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h > --- a/linux-headers/linux/vhost.h > +++ b/linux-headers/linux/vhost.h [ ... ] > +/* > + * Resubmit requests by vq and head, as if they were just taken from the= avail > + * ring. Only heads read with VHOST_BLK_GET_HELD_REQS after the last sto= p may be > + * passed: the kernel does not track them, and a head passed again after= its > + * request completed, or still owned by the guest, is completed twice. A= head > + * still in flight fails with -EBUSY. error and type are ignored, reserv= ed > + * must be 0. On error, nr is set to the number of requests resubmitted. > + */ > +#define VHOST_BLK_RESUBMIT _IOWR(VHOST_VIRTIO, 0xFA, \ > + struct vhost_blk_held_reqs) [Severity: Low] This isn't a bug, but is "reserved must be 0" clear enough here and in the = VHOST_BLK_GET_HELD_REQS comment? Both struct vhost_blk_held_reqs and struct= vhost_blk_held_req have a field named reserved. The comments do not say wh= ether only the outer field, or also the reserved field of every element in = reqs[], must be zero on input. The VHOST_BLK_RESUBMIT comment also says error and type are ignored, but ne= ver says that vq and head are the fields read from each element. It does no= t say that nr is the number of entries to resubmit, whereas for GET it is t= he capacity of reqs[]. Since this header is the only ABI specification, cou= ld these be spelled out? 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/2026113009421= 0.1686802-1-alexander.ivanov@virtuozzo.com?part=3D1