From patchwork Tue Aug 29 17:58:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Blake X-Patchwork-Id: 1827387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aIDCrNCS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RZwKW1MKbz1yZs for ; Wed, 30 Aug 2023 04:03:59 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb33U-0002PJ-3v; Tue, 29 Aug 2023 14:03:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb33S-0002Ok-Bg for qemu-devel@nongnu.org; Tue, 29 Aug 2023 14:03:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb33N-0000Ka-6r for qemu-devel@nongnu.org; Tue, 29 Aug 2023 14:03:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693332179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eLzAiaztA+pZvgwXCMD3QU7TvJESs73sL5QXno/Wulc=; b=aIDCrNCSx1z4v7f+RcZchymJ+KtAvPTcJIn+Ph1rZSDpuVLH5P//4jUwvnFCZvSuz/8KhJ KfZckwpxWGBb4ajtv9UpSOI7+wm8ZULquEjCiDejL2OD8DHr/6B7w85BUFWBAr8AvtS8Ei TjKBgHbAbbJB5Nvlee9BHM87FSEkWjE= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-662-hoU-D5SmPdOeSQPr7EJLRA-1; Tue, 29 Aug 2023 14:02:54 -0400 X-MC-Unique: hoU-D5SmPdOeSQPr7EJLRA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7838F28EC102; Tue, 29 Aug 2023 18:02:54 +0000 (UTC) Received: from green.redhat.com (unknown [10.2.16.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A3BE2026D4B; Tue, 29 Aug 2023 18:02:53 +0000 (UTC) From: Eric Blake To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, vsementsov@yandex-team.ru Subject: [PATCH v6 00/17] qemu patches for 64-bit NBD extensions Date: Tue, 29 Aug 2023 12:58:27 -0500 Message-ID: <20230829175826.377251-19-eblake@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 Received-SPF: pass client-ip=170.10.133.124; envelope-from=eblake@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org v5 was here: https://lists.gnu.org/archive/html/qemu-devel/2023-08/msg01883.html Since then, just minor changes: 001/17:[----] [--] 'nbd: Replace bool structured_reply with mode enum' 002/17:[----] [--] 'nbd/client: Pass mode through to nbd_send_request' 003/17:[----] [--] 'nbd: Add types for extended headers' 004/17:[0006] [FC] 'nbd: Prepare for 64-bit request effect lengths' 005/17:[0004] [FC] 'nbd/server: Refactor handling of command sanity checks' 006/17:[----] [--] 'nbd/server: Support a request payload' 007/17:[0004] [FC] 'nbd/server: Prepare to receive extended header requests' 008/17:[----] [--] 'nbd/server: Prepare to send extended header replies' 009/17:[----] [--] 'nbd/server: Support 64-bit block status' 010/17:[----] [--] 'nbd/server: Enable initial support for extended headers' 011/17:[----] [--] 'nbd/client: Plumb errp through nbd_receive_replies' 012/17:[----] [--] 'nbd/client: Initial support for extended headers' 013/17:[----] [--] 'nbd/client: Accept 64-bit block status chunks' 014/17:[----] [--] 'nbd/client: Request extended headers during negotiation' 015/17:[----] [--] 'nbd/server: Refactor list of negotiated meta contexts' 016/17:[----] [--] 'nbd/server: Prepare for per-request filtering of BLOCK_STATUS' 017/17:[0002] [FC] 'nbd/server: Add FLAG_PAYLOAD support to CMD_BLOCK_STATUS' The following patches still need review; all others already have R-b. I plan on sending this in a pull request soon. 1, 4, 5, 6, 11, 12, 16, 17 Eric Blake (17): nbd: Replace bool structured_reply with mode enum nbd/client: Pass mode through to nbd_send_request nbd: Add types for extended headers nbd: Prepare for 64-bit request effect lengths nbd/server: Refactor handling of command sanity checks nbd/server: Support a request payload nbd/server: Prepare to receive extended header requests nbd/server: Prepare to send extended header replies nbd/server: Support 64-bit block status nbd/server: Enable initial support for extended headers nbd/client: Plumb errp through nbd_receive_replies nbd/client: Initial support for extended headers nbd/client: Accept 64-bit block status chunks nbd/client: Request extended headers during negotiation nbd/server: Refactor list of negotiated meta contexts nbd/server: Prepare for per-request filtering of BLOCK_STATUS nbd/server: Add FLAG_PAYLOAD support to CMD_BLOCK_STATUS docs/interop/nbd.txt | 1 + include/block/nbd.h | 147 +++-- nbd/nbd-internal.h | 8 +- block/nbd.c | 105 +++- nbd/client-connection.c | 4 +- nbd/client.c | 140 +++-- nbd/common.c | 12 +- nbd/server.c | 560 +++++++++++++----- qemu-nbd.c | 8 +- block/trace-events | 3 +- nbd/trace-events | 19 +- tests/qemu-iotests/223.out | 18 +- tests/qemu-iotests/233.out | 4 + tests/qemu-iotests/241.out | 3 + tests/qemu-iotests/307.out | 15 +- .../tests/nbd-qemu-allocation.out | 3 +- 16 files changed, 763 insertions(+), 287 deletions(-)