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 EE496803BB for ; Tue, 17 Nov 2026 10:10:30 +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 6AHA9ATR007707; Tue, 17 Nov 2026 13:09:11 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHA9ATR007707 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="QvEJDjsW" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AHA98kx007695 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 17 Nov 2026 13:09:08 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHA98kx007695 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4bb6bbc025aso18482335e9.3 for ; Tue, 17 Nov 2026 02:09:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFL+OhQAwh1bvHDZwyLYkNZmnYEjeh+f6Ima0GDz6s+YWE2wbE4tZtsMeDs/1CQVo1uJMKSvw==@openvz.org X-Gm-Message-State: APuU4Z8epyY+oQ1IuJDUWYSYC3C/d/imleQ8SfTpgtj05XeFC3HnnGsm tTu6WoTwuRKkd/RYg2eM3rtmud0wTfaO1DR89foHUOTfxVL4LPAX7KT5ylEVMenjNfhFSNDM6Fd XdhWTNBEwBsWs1Jb/C247fE6onszN+ba0IVHJ/qwEQheymSm1a6WqUw== X-Gm-Gg: AYBFou2rH/bqciTdmZGxiC+MTbuEdusjhIxbCSdPISXl1S+5vyrQqPW8pQUTutT7jbO UCQN5C2d2q6gdVTwaIkgVUY4c+yY22/x7dWLLgC4xqONwkAnRcJ396fpBRebXQQXT4xc+eTGa7L Z4J/HSRtsAGxAVpiL8E+nauBRliUSe8WKVpIZRh+dEiTjwuSy2gEvcoY2z9e6HMosh4gnBlHNee 5fN2Ixf8XDPX95ALIZ0DBr+q/ImYcm8B5HMNX8cNmXzV2nWdGJJ6xUvLOhP8Bg7W1rnpIR0FtT/ YYwFM/uVQUERRtwEfYEBfl3o7H1R59GQjxVswwNfUAplXQPIg1EoCQUMZ9cwFz+n2MKj5hZiXtH rEHDRULpYsE79sgp31SdiZWqc5y0= X-Received: by 2002:a05:600c:840c:b0:49c:d019:70c5 with SMTP id 5b1f17b1804b1-4bb5599bda8mr292286405e9.0.1794910148206; Tue, 17 Nov 2026 02:09:08 -0800 (PST) X-Received: by 2002:a05:600c:840c:b0:49c:d019:70c5 with SMTP id 5b1f17b1804b1-4bb5599bda8mr292286095e9.0.1794910147709; Tue, 17 Nov 2026 02:09:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794910147; cv=none; d=google.com; s=arc-20260327; b=G9O298UoRMPMvID24ujr4ujyWATlk9ASlN+Bd1BRt8+6L6kYN6JKiixpRP3+mQXdbn xwAYZsAGu0RD+eohryfpuHbVWMt8Kb7XP2oR/lNCNzQWYvLjMRXM5PtEnSVC9CPjkX2O 9NiG7A2Y6ns2QSTl41qQOVoXCV0pPcTZSXKO5/pwHUNzrFUqFbhwIbQgBRl3i54IH9wJ Y4aalPOxim3Gfn0/P0/0GBMtyxOIIb8B3PZFTeQ5AhZZ3Y0A2870J3l5PiJwYiCVCLJC IVD+5yNCsz2qgxvCau6eZRdXVqiHOZqCQeoyTNMl2JTE2agMujP+f+EBlALKytLHg9Ar a6zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=EFwapqixd7DP3LOFeBrMFS7keLAI8QJ8Y3eKOrOfM8c=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=DNgwty6KWqluN/7K2sNdnJbms/CKZHyPFUBTv6a2Y739NupUqSNCUVIAOfEtT4sNxD shBR/OHs1G60IQQcciHcxYCPyytEBRNYZ8Ei0/AAhLQ3tTDIxokGqxFTNj09szeJ40rK jSdKKGyHv62+TcIONocF+ggLleX50+JjZZZc+aP+cqSJ4Zbx/erZJiWb6h3UooNgEhMv h6MF6l04J8icek5KxFIdzEUyrESMScCNdFnRLyaZW/is6k+sGdY8NurBheQ4E/xzwMna 6uIBIeB47A7eEWDs7n3sesRCvp3NyFeXoiefipNyA7UJd3UENiIuCopg8LhSGuTuXF7y IqAg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=QvEJDjsW; spf=pass (google.com: domain of alexander.ivanov@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=alexander.ivanov@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 5b1f17b1804b1-4bb78385618si42610205e9.1.2026.11.17.02.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 02:09:07 -0800 (PST) Received-SPF: pass (google.com: domain of alexander.ivanov@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=QvEJDjsW; spf=pass (google.com: domain of alexander.ivanov@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=alexander.ivanov@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=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=EFwapqixd7DP3LOFeBrMFS7keLAI8QJ8Y3eKOrOfM8c=; b=QvEJDjsWyaNo DRZ3W9v5Pe+2ozVa3ENlLK+ExJL08UM3f0g04oaL02GBMtKehubtJ83qtvONVfgNAvjx1gPpKPa9N 2xV4bxzx52gvR6cQ45utZin2AzrTcgkLwslXOnjXiJpRZZ/4tyg6hLLK/KGzwnBQQYZNgluOdxiuo Ld/82+LJzI1myqdpCA8uJ5iC0N7bFhFMBwORKXBuHu0nthsb+Vt7JagEVGPiEBKySi97jG3dmQYM9 0UY0qYv60mURWdKwGT855VJ3u16fgHKsBlzMvUO+OFZPC+Bd89yRuiofaGWT5/oau2PUJHDv9Whta UTbAEOC2RNcecb04QaOftg==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=sky) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xTG3O-009Hhf-2h; Tue, 17 Nov 2026 11:08:57 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 17 Nov 2026 11:09:02 +0100 Message-ID: <20261117100904.3071306-1-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v3 0/2] drivers/vhost/blk: support VIRTIO_BLK_F_WRITE_ZEROES 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 Add VIRTIO_BLK_F_WRITE_ZEROES support to vhost-blk for parity with virtio-blk. Patch 1 releases requests completed after the vhost worker was killed, which otherwise hang vhost_blk_flush() on release. Patch 2 handles VIRTIO_BLK_T_WRITE_ZEROES. v3: - patch 1, commit message: the hang needs vhost_task workers; the reason for the work item; dropped the VHOST_RESET_OWNER sentence. - patch 2, commit message: the VMM paragraph says what a large max_write_zeroes_sectors costs and that our QEMU does not advertise the feature yet. v2: - patch 1: new. - patch 2: shorten the commit message, state parity with virtio-blk as the reason and what the VMM must advertise. - patch 2: issue chunks of at most 16 WRITE ZEROES bios and 1 GiB, try them with BLKDEV_ZERO_NOFALLBACK and fall back to 4 MiB chunks of zero pages. - patch 2: complete the request with VIRTIO_BLK_S_UNSUPP when VIRTIO_BLK_F_WRITE_ZEROES was not negotiated. https://virtuozzo.atlassian.net/browse/VSTOR-141684 Alexander Ivanov (2): drivers/vhost/blk: fix a flush hang on requests completed after worker kill drivers/vhost/blk: support VIRTIO_BLK_F_WRITE_ZEROES drivers/vhost/blk.c | 214 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 209 insertions(+), 5 deletions(-) -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel