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 CD28C80032 for ; Fri, 27 Nov 2026 11:53:27 +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 6ARBqBFi025613; Fri, 27 Nov 2026 14:52:12 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6ARBqBFi025613 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="J4wmL8d1" Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6ARBpije025507 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 27 Nov 2026 14:51:44 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6ARBpije025507 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c49df8fe86eso608898266b.2 for ; Fri, 27 Nov 2026 03:51:44 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGJsEvEBm0x8vspsNp9izMnRjwopvQ2J1mxnkpUmBI7QEhAoCmlv/ScSsIKZjS3FdS2sS3dSA==@openvz.org X-Gm-Message-State: APuU4Z9eRi/djKNqfcHFM63Wz9cjJZNMe7JcvuCrowj1n9WP5aIqpFk5 gC3JFuO6VX3rxSqYFztu0hs4udIctWkrhu3WpAz1GlVkBiAB7M+EHxsFAfAk1NWNwmc8VulZ/r0 T3E6c2oMblco28VStnOJH5NJtC5XHhY+5FqFvqzxEEFFYImV5HsWSiQ== X-Gm-Gg: AZFdTZd7JA1zpqkdK4NtMeZ1fLUrlPmWJI7aNHuKHyBMkePYkFKalO+1SHWrAsnGQda wF8kXoqbKLmbtqM8FtunOQMse7RUBAxKfs9U6pd3+vKQwd6Yy5rR5PulCdgxM4rIclZXyQo5FCW qGEJZjoRCn3zXJiIOFTR+tY4FmdAyeqGN8cDeleRMd8OVkRfJNhHSi4bl+tsb+EsnyCyryVsJi0 thk2EkqHx6AddyRkvaw6/59qgkuB/ZNOCpiL4mNAu6ZWd69I0sKLexpdv4XGCZpKG7TEGZ2rCRj JPYuNB2zq+gyPu0h8FkoBHCJi+P2ZYzZWsIykf8q3VAer/yAUKkkFlAEs8GGm7+JKDrr4wVLSOL jJjK8IrkqvY3ip1G0zA== X-Received: by 2002:a17:906:3b04:b0:c29:3c97:c994 with SMTP id a640c23a62f3a-c513ab47f35mr1554616866b.35.1795780303870; Fri, 27 Nov 2026 03:51:43 -0800 (PST) X-Received: by 2002:a17:906:3b04:b0:c29:3c97:c994 with SMTP id a640c23a62f3a-c513ab47f35mr1554615766b.35.1795780303396; Fri, 27 Nov 2026 03:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795780303; cv=none; d=google.com; s=arc-20260327; b=YFmjbSlXsW/3oQajrdOemkc4YWGp3nZzW2XbfN7riM8ZqdIjd0mqcJYh0fMQ5itctg xGNYQ4PT+uknOxrBjvQEKRz/HyozTkenh7dgviv1TxF2FkS2R/8RDN462eo4ezgmdaO9 QTbgfGlDZXRnIGWsXqrWd7sQSHK5EvFsKDVmXLcrAZm0+WwissedaSMMSiuct8cRx2+5 u2VFJ3oJ7dYKZ5TF9XAKsxQ2DH9H9nEo19EcR3Vo9CfZGdTYyvRek1ubgRSYL9kTbOf1 /Er4YYtuiViBg5GT1/kMby+DKoTixkhEOxXs41kRv/xUlOLAGiAix6V0o0MwsUo4B89g /CFw== 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=YJU+TSXWT1E21wTRRtXoN+JrSHpTybQJg1EOah9vmJk=; fh=YDx/sgeCfUIZ9eyfBjqETg92hV70ladS2omuMPCV2do=; b=ZvxbcfZRkYtgcMt7vm19LqsTAI6emh3shcSJzHABHtpeffRzdxqsqa5azg2PR4OrNg Y4zUkY38AjUrkyLUV7GTlatFHyPP1YFAHHnSH+fDfaJ+4KWizKwwQRK/3bHdg6CO2JMA qRYEAdMADnB7FTZQJFanGmaV1CQ1d6gKhbVNHPczUydKCh75W403rQuTaWiVSNtcPICR 9MxlmCriXIWePZBBQ7aQDuablPdxrfE2WX+l4wuF2NICXsa1a+TZGYcjr5BRjiTQcEPw Ib6QmjTI97W+PEK64/2wYYqUZ1XocueKXUQC/iKMeaCIYzXmc4HEI8DDlVs42+Zd9azT pvLw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=J4wmL8d1; 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-c513b033ef1si1520093366b.165.2026.11.27.03.51.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 03:51:43 -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=J4wmL8d1; 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=YJU+TSXWT1E21wTRRtXoN+JrSHpTybQJg1EOah9vmJk=; b=J4wmL8d1qP1z T6btvElR2GZu7DrDMBNocDusgnsLVw/tTV1g7XvjgrqA1tMFDTSX1rgSaOk71nJtbadi1gDidI6Oq 2jAQ9z5z2sKR5mhCbmkKknUUXN5cYtKAtP9P1cpvclHK1eGUfNCgBTpqs0HFiCfZPCjtnSR1G/gql dbhodH9cTnTWuFKfIw44e80cxGmwPqrfZ8HNlRJx+rngmd/ayBfovDWb4/Ww1OwlN5pR2aqKIy8EC wyDAXgHatiN/xGZNsJSNrP82obq7vACtRwPIwcxOrxV/Kvj2sKAXKFAAMQEcdyQtvQZlsnokJIWIf TBttofrekTIg49yWZsVluA==; 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 1xWuUC-008LtV-2e; Fri, 27 Nov 2026 12:51:39 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Alexander Ivanov In-Reply-To: <20261127111604.1151696-1-alexander.ivanov@virtuozzo.com> References: <20261127111604.1151696-1-alexander.ivanov@virtuozzo.com> Date: Fri, 27 Nov 2026 12:51:40 +0100 Message-Id: <179578030083.10258.11312203843491353841.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1992; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=tggSQ6u/KwyqoK31XQW8BLQ+kNTHQROYT/7QVQt1oCg=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrCW7MGV1BrnWUmZ/un9J92Ud9HAM9IR0oxTGxu qTOCg38WbiJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCawluzAAKCRBRlgpH+WFc KqBjEAClR73KNCQWhP0vsbWKlbtroT9tDy0KxUIBtH7sYxvqxNLHye2ZIjCCLpYJqYJXufUCfSN 9fVY5piCpA5HkVL2m7LpI8m+wBL3QWWr16HGYFteB4JPLxXX4tHaPLUkQ8Z+93d+UYyGl2SilOJ idE/HR18avWgRn0qfY/k5aDrIClM8nKCpToCX/wRBA8u7qQKhhjG6hTh/+njkaiqmUwJOqBgYUl aU93Q1nF/JJc3K20Iu6664U7Wf0c5LDwUEGtNcNmNX7REtqFyQwkiiIuYpif9voTZgTI9BtyjtB FSoUPVctHlGMh3BURnUJj9LZm0OCs7CZk2igDwEeV5DquPlA5KU1JdVfs+5VDHEzRYxMfKfhhou gIJJoSs6B3F4IgeSDltUYzXvqyxvw5iuQqCF7jLOTYNylbgujhBZKZgtUKQGOsUbGIvIaPhmzPb Gzv//Zb9F16vRCBn5kNUXYqO44tG29oGOQr4+3MdDv9Ih8hPzDPgcNNNpp2qUz6vg5eto+Rd4/e HrsTwUl+zqppIFS6tw6O1RoNv5VXJW4MXbzbt3h0eFmptY838tuio1SECWwG1+d5TMAwDB5cJLk V3BR5vrefbcAZrgzFcTvT4m5wQUO4A2ad/7phxUaPrF2XnIq/e+kbiOSsJ2XEOk3ubRWt2kVx0G mwn76sAbyqCyBjg== 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 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 v2 with the changes below. On Fri, 27 Nov 2026 12:15:59 +0100, Alexander Ivanov wrote: > A held request stays out of the used ring and is not counted as > inflight, so stopping vhost-blk to pause the VM does not wait for it. 1. Patch 3: "Its head stays taken" holds only while the backend is set. Fix the message and the uapi comment, or keep held heads marked across the restart. 2. Patch 3: swap in the new held list only after the vq setup succeeded. 3. Patch 3: do not let the last bio decide between EIO and ENOSPC. 4. Patch 4: check the head range and in-flight state before walking the chain. 5. Patch 4: say in the uapi comment what QEMU does with entry nr after an error. 6. Patches 3 and 4, cover letter: say that discards are held under the write flag. 7. Cover letter: name the QEMU, libvirt and ploop.ovz series, the order of calls QEMU makes, and the vhost-blk series this goes on top of. > The series needs "dm-qcow2, dm-ploop: report ENOSPC at once for > vhost-blk disks" for the ENOSPC to reach vhost-blk. The QEMU, libvirt > and ploop.ovz changes follow as separate series. Item 7. Item 1 of my v1 reply on the werror series asked how QEMU pauses such a VM and for links to the QEMU and libvirt series. The kernel side now answers the first half, but the order of calls (stop, GET_HELD_REQS, start, RESUBMIT, also on a migration destination) is only in the uapi comments, and the userspace series are still not named. Also say it goes on top of "drivers/vhost/blk: fix write zeroes errors, support VIRTIO_BLK_F_DISCARD" v4: they conflict in vhost_blk_handle_host_kick(), keep the hold block before the new status mapping. Item 6. With the DISCARD series applied, a discard failing with ENOSPC is held under VHOST_BLK_HOLD_WRITE. That matches werror in QEMU, but neither the messages nor the uapi comment say so. -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel