From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id A5A7780063 for ; Tue, 1 Dec 2026 09:20:37 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B19JLen023887; Tue, 1 Dec 2026 12:19:22 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B19JLen023887 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="oHgatOm+" Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B19JCok023861 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Dec 2026 12:19:12 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B19JCok023861 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-6b897016acbso4312666a12.3 for ; Tue, 01 Dec 2026 01:19:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEqyiQxV3tcFfb7UUW3HcKttZmMooM7UfexOVgMEscrjbU6Ez0x7O2yoahmGoTXvwGuXAIosQ==@openvz.org X-Gm-Message-State: APuU4Z8bw6lgmRKhM8/qO371hkZWFJiEf5SHOaJuMAqhIfoJBR5DcRZ/ JlePUz3G/mYtQszdF9k8S/7HFpg6pQk+xcY8UhphrQvFXX+mEahnVQdrVBxeZ4rkAX5GQniDTQh mxWt0kJ2r+HeX4eGEvRr4D2HimvNqITySQRqyAjl7BZ26pPsQVDKWww== X-Gm-Gg: AZFdTZcsrxTa0Som7xsFGobBnn1+IfBRMHHRFawMfaUvrLxSHcoMDkWB3cgp60MwzQO FsFHHtWp41P0OPhF6JGSqeUFS40uk3ILt2m8zxu9LGiZshNEXCGmvgJC/C9fZwWhYXx2i/xWzKl shZMEAl944FmOvNNsdmkbDQqwf47bdEw+PYnfmgotXzN87+PzqBuDxn33TPVEgkbuAr4GL5PF/G kNt8HEzHQTsWfxEkJ/0f3mvEG4YZdzd+FVhU66hmk5o/AUuWBO0pNXy/kLliaGwU6i0p5SAJ+jx pCumTiM6NRM8vtQh3RFkp84kcpQV+TvGUWRoyXHDvnBDXqFCQ7IDYHRiy/xFdQ3+XCmuIV6L986 RBH0co5+5jSTObAdZ X-Received: by 2002:a05:6402:2046:b0:6ba:3134:8f00 with SMTP id 4fb4d7f45d1cf-6ba37e81e3fmr21400362a12.22.1796116751743; Tue, 01 Dec 2026 01:19:11 -0800 (PST) X-Received: by 2002:a05:6402:2046:b0:6ba:3134:8f00 with SMTP id 4fb4d7f45d1cf-6ba37e81e3fmr21400342a12.22.1796116751272; Tue, 01 Dec 2026 01:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796116751; cv=none; d=google.com; s=arc-20260327; b=fc0g042f/Q+uM/KA9ve3e6IYlINwriD+3vli07Ez3OaaymTevpABsUBXijP8zRRe9+ hGHLu/SzDsNvEuIndautvlMLKk2RqUnccmAL0SW+i8iL6Z98dH+lE3gd1Sf+ehFGJMOv LYGasBkhCf2wZP7FRv2tCOv7vhQH0+sXEFkl9XNZF9OcXvLKIxi1YKtYWn2JVl+/ciCu NQzLspAVM2+b6KE687rbEk/e1GvbHQlaGz5YW9aa2jtVsAmGHQNHE7tstSyK3zJeiIO1 /Hnt6KW2zT4A8zpY3u6oY4BSylphOkm35iTmTVKTOrxTmvI2CHKbIk8y5L06rWksL8J5 OuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=ByYSLTOiFXh3LysRSFMuriiEfboTGO2WPiitq38ZGW0=; fh=YDx/sgeCfUIZ9eyfBjqETg92hV70ladS2omuMPCV2do=; b=MCJp/iseupjey/xyiEsTKO/rJy2GOOmNDIZ8qAGugcvdrgkxt9mKje/8O0uGGLLx9e tlWV/4QfXkLSDMaRCtGnB7x8UXTOky1uDAPBY8xGO8oqFnmLx3bjTdXJV4Vvzho3Grtt Sp0o+2WLtne5p04C8Rxp5HXS4K3zXsZKjRtVeaGWDzlrWX0hF9iJP4RpwMhWnj+tZJ3g QG0XuwjrMGKVZHs2E57f6fikOlAadnMQJydi69Uond7DIQAqH+AjYlT3SjyQtG6lhvLe BePjKubUwCvw/pUDn5E07QCC23u0rHUqr0jsn9mEUJrwBGdmqTfPT8esezitkYLHDwnX lBww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=oHgatOm+; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id a640c23a62f3a-c513afe3a2dsi2296704566b.52.2026.12.01.01.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 01:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=oHgatOm+; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=ByYSLTOiFXh3LysRSFMuriiEfboTGO2WPiitq38ZGW0=; b=oHgatOm+n4XB VKgrv/kI0XFBcqSBmhB1yVg1oHKLgvxCd4ocFXU6R3VrOjtAWEAkjANj1LrcJcDDNa2zAmZ+uHIhs JgCrmVQgqaeyzX1A9jeGJeHKber3fhhhW2FGQc1Gewj7NkuOh/E+8WUo/XYnYFkSyOPZmjYIx37bV dpvZgwOXltxFn+EPqujX8Zaw9kSG5oNUnTLbiGYqDsDFzK/tL2g6UDbJGX56XAZ9WDCHO7/NUC9rf dODJ20/LdMUFJXuv40hCJy7TKvgEWq0cZbX1bFiT/b9TDTtaDJGxkNwVhQ6w+MQzYqSizU7mSNB4h QLscL8U8qGxLFQ72hLDFTw==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xYK0g-000pQE-1s; Tue, 01 Dec 2026 10:19:01 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Alexander Ivanov In-Reply-To: <20261201085020.1884923-1-alexander.ivanov@virtuozzo.com> References: <20261201085020.1884923-1-alexander.ivanov@virtuozzo.com> Date: Tue, 01 Dec 2026 10:19:07 +0100 Message-Id: <179611674785.3101.9394659242040322241.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1808; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=KvLwPBHbrqIxhZh7GZgxON9P3yZlTtx91nz5QBBu0no=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrDpEMWm+BT333P3cmk5AcsmdxDmjmMDJphvPB2 SPgDdQL6TyJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCaw6RDAAKCRBRlgpH+WFc KoJaD/47iehJuMA5ooQYETw9nUXQYax2gMmpduifZzS1emtdM55RJoCUV7LxV38Nju3F7WqwuVT /whlaMTHkHOGchLrhOiyvef9v9qd7EqKfV+0xPcRHkhbuzJAzgNT5riyUVtjMiCLTr6cyB/S0YC rdTc5BfI1Q2H4VCOjDa054ueRkmrzOC8NyPEnvpDDyhltfSGHKi48E6Cuqvf0Oz2NEoVwROqkY5 lQfIZf/Ip2+VbQ5/lMqIcYsBmEjGdIK5Ddsp8v4n7pt/oG1q27hl8PuBO3l15+21/yT/KzB20if aEk7nJIB3rZxaKc5yc6bU1H/kth6Yjx1/rcWGRK5IZQ2qcYzWZdExzZNKcEs4dflsStOqL8a7RL dB2PbqBcarZDbIEDsv8r8FLpi/pP3wc10/+nXShIbslGPEElL/saObI+tsbPb96QyBKGq5W57tR IBE9iMY6ik1hAnUOD1e4NdwFH5W6GK5kP3svQC4fijjY6tACHwYso7nvechKhz1+mnhCLH0Vh7O 2cnnioO9KKIRluTaCghZoCPXq+S1WsNawru/x82syfyXgrlOf5jNelxIUTEgRPboR9QL7bcgDqo YYAs+bS8DNz4AdxNcsqA0yt5hZuZYmCoftwoMNjZ5qi22RHO4TwnFS9f5Fl6Yz8HDOh6/xJGXSb 81ctYgRaiVmiGyA== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org I won't apply this version, please send v4 with the changes below. The code is fine; only the uapi comments and one sentence change. On Tue, 1 Dec 2026 09:50:16 +0100, Alexander Ivanov wrote: > - patch 4: say in the uapi which VHOST_BLK_RESUBMIT errors fail the > rest of the entries and which concern only the failed one My v2 reply never went out, sorry: items 1, 2, 3 and 5 are from it. 1. Patch 3: the VHOST_BLK_GET_HELD_REQS comment: after a failing VHOST_BLK_SET_BACKEND the list may also hold requests held during it, so QEMU reads it again. 2. Patch 3 message: "Until then its head stays taken" - say "while the backend is set". 3. Patch 4: the VHOST_BLK_RESUBMIT comment: nr when the call fails before the first entry (-EPERM, a fault on the header, reserved not 0). Set it to 0, or say these errors leave it unchanged. 4. Patch 4: the same comment: an -EFAULT on reading an entry fails the rest, like -ENODEV and -EINTR, not only that entry. 5. Patch 4: the same comment: say that the guest request of a skipped entry is never completed. The v3 copy of the held list outside held_mutex is fine: blk->held changes only under dev.mutex, which the ioctl holds, and new entries go past nr_held. Separate patches, not needed for this series. I created a task: 1. vhost-blk: vhost_blk_req_cleanup() frees a kmalloc'ed req->bio array but leaves the pointer set, and nothing resets it for the next request on that head. If that request needs a bounce buffer and its kvmalloc or the copy into it fails, err_req frees the old array again. A guest can steer it, and the -ENOMEM retry of RESUBMIT takes the same path. https://virtuozzo.atlassian.net/browse/VSTOR-158259 -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel