From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5B79C433E0 for ; Thu, 11 Mar 2021 15:15:42 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19E2664FAB for ; Thu, 11 Mar 2021 15:15:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19E2664FAB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:43846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKN2J-0002p0-A1 for qemu-devel@archiver.kernel.org; Thu, 11 Mar 2021 10:15:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMc3-0004mA-Kk for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:48:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:24010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lKMbz-0002iv-Bd for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:48:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615474102; 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=KLTXYgLxudgxMmIa76HqlGYGC+BNCInMUDA/ZF7UnBA=; b=ImgtwWqNMktmpWznBBteVMTKDCJvJa7Y2QueCXbFplteFd5sAG72TTpLkWgMhPl+UcU7gT 8f9w/6KAs6WHiU+ppGUhbI4wyBnfTcXiB5kMTFw0snSQvrYSEnfr00DFENZUcXT+tGCV33 urjkTxItcxOy+uVkV7Ed1YtMioYLtvc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-412-WpGSBUStOE-8nRruJ5gTCw-1; Thu, 11 Mar 2021 09:48:20 -0500 X-MC-Unique: WpGSBUStOE-8nRruJ5gTCw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4AD1C801817; Thu, 11 Mar 2021 14:48:18 +0000 (UTC) Received: from merkur.fritz.box (ovpn-114-112.ams2.redhat.com [10.36.114.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 467CA5D9F2; Thu, 11 Mar 2021 14:48:15 +0000 (UTC) From: Kevin Wolf To: qemu-block@nongnu.org Subject: [PULL 00/38] Block layer patches and object-add QAPIfication Date: Thu, 11 Mar 2021 15:47:33 +0100 Message-Id: <20210311144811.313451-1-kwolf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kwolf@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, peter.maydell@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The following changes since commit d689ecad073e0289afa8ca863e45879d719e5c21: Merge remote-tracking branch 'remotes/nvme/tags/nvme-next-pull-request' into staging (2021-03-10 20:11:33 +0000) are available in the Git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you to fetch changes up to 4756658df7d5104b36ee2f40f30f2d0f10225a53: qom: Add user_creatable_parse_str() (2021-03-11 13:13:49 +0100) ---------------------------------------------------------------- Block layer patches and object-add QAPIfication - QAPIfy object-add and --object for tools - Add vhost-user-blk-test - stream: Fail gracefully if permission is denied - storage-daemon: Fix crash on quit when job is still running - curl: Fix use after free - Fix image creation option defaults that exist in both the format and the protocol layer (e.g. 'cluster_size' in qcow2 and rbd; the qcow2 default was incorrectly applied to the rbd layer) ---------------------------------------------------------------- Coiby Xu (1): test: new qTest case to test the vhost-user-blk-server Kevin Wolf (31): storage-daemon: Call job_cancel_sync_all() on shutdown stream: Don't crash when node permission is denied tests: Drop 'props' from object-add calls qapi/qom: Drop deprecated 'props' from object-add qapi/qom: Add ObjectOptions for iothread qapi/qom: Add ObjectOptions for authz-* qapi/qom: Add ObjectOptions for cryptodev-* qapi/qom: Add ObjectOptions for dbus-vmstate qapi/qom: Add ObjectOptions for memory-backend-* qapi/qom: Add ObjectOptions for rng-*, deprecate 'opened' qapi/qom: Add ObjectOptions for throttle-group qapi/qom: Add ObjectOptions for secret*, deprecate 'loaded' qapi/qom: Add ObjectOptions for tls-*, deprecate 'loaded' qapi/qom: Add ObjectOptions for can-* qapi/qom: Add ObjectOptions for colo-compare qapi/qom: Add ObjectOptions for filter-* qapi/qom: Add ObjectOptions for pr-manager-helper qapi/qom: Add ObjectOptions for confidential-guest-support qapi/qom: Add ObjectOptions for input-* qapi/qom: Add ObjectOptions for x-remote-object qapi/qom: QAPIfy object-add qom: Make "object" QemuOptsList optional qemu-storage-daemon: Implement --object with qmp_object_add() qom: Remove user_creatable_add_dict() qom: Factor out user_creatable_process_cmdline() qemu-io: Use user_creatable_process_cmdline() for --object qemu-nbd: Use user_creatable_process_cmdline() for --object qom: Add user_creatable_add_from_str() qemu-img: Use user_creatable_process_cmdline() for --object hmp: QAPIfy object_add qom: Add user_creatable_parse_str() Max Reitz (2): curl: Store BDRVCURLState pointer in CURLSocket curl: Disconnect sockets from CURLState Stefan Hajnoczi (3): block/export: disable VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD for now tests/qtest: add multi-queue test case to vhost-user-blk-test vhost-user-blk-test: test discard/write zeroes invalid inputs Stefano Garzarella (1): block: remove format defaults from QemuOpts in bdrv_create_file() qapi/authz.json | 61 ++- qapi/block-core.json | 27 + qapi/common.json | 52 ++ qapi/crypto.json | 159 ++++++ qapi/machine.json | 22 +- qapi/net.json | 20 - qapi/qom.json | 646 +++++++++++++++++++++- qapi/ui.json | 13 +- docs/system/deprecated.rst | 25 +- docs/system/removed-features.rst | 5 + docs/tools/qemu-img.rst | 2 +- include/qom/object_interfaces.h | 85 +-- tests/qtest/libqos/vhost-user-blk.h | 48 ++ block.c | 36 +- block/curl.c | 50 +- block/export/vhost-user-blk-server.c | 3 +- block/stream.c | 15 +- hw/block/xen-block.c | 16 +- monitor/hmp-cmds.c | 17 +- monitor/misc.c | 2 - qemu-img.c | 251 ++------- qemu-io.c | 33 +- qemu-nbd.c | 34 +- qom/object_interfaces.c | 109 ++-- qom/qom-qmp-cmds.c | 28 +- storage-daemon/qemu-storage-daemon.c | 28 +- tests/qtest/libqos/vhost-user-blk.c | 130 +++++ tests/qtest/qmp-cmd-test.c | 16 +- tests/qtest/test-netfilter.c | 54 +- tests/qtest/vhost-user-blk-test.c | 983 ++++++++++++++++++++++++++++++++++ MAINTAINERS | 2 + hmp-commands.hx | 2 +- storage-daemon/qapi/qapi-schema.json | 1 + tests/qemu-iotests/tests/qsd-jobs | 86 +++ tests/qemu-iotests/tests/qsd-jobs.out | 32 ++ tests/qtest/libqos/meson.build | 1 + tests/qtest/meson.build | 4 + 37 files changed, 2554 insertions(+), 544 deletions(-) create mode 100644 tests/qtest/libqos/vhost-user-blk.h create mode 100644 tests/qtest/libqos/vhost-user-blk.c create mode 100644 tests/qtest/vhost-user-blk-test.c create mode 100755 tests/qemu-iotests/tests/qsd-jobs create mode 100644 tests/qemu-iotests/tests/qsd-jobs.out