{"id":2197743,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2197743/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260218132633.29748-21-hreitz@redhat.com>","date":"2026-02-18T13:26:29","name":"[v4,20/24] iotests/307: Test multi-thread export interface","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"825cb47cb3750aaa9b6d8421afac68d4f658a3b7","submitter":{"id":82279,"url":"http://patchwork.ozlabs.org/api/1.0/people/82279/?format=json","name":"Hanna Czenczek","email":"hreitz@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260218132633.29748-21-hreitz@redhat.com/mbox/","series":[{"id":492547,"url":"http://patchwork.ozlabs.org/api/1.0/series/492547/?format=json","date":"2026-02-18T13:26:09","name":"export/fuse: Use coroutines and multi-threading","version":4,"mbox":"http://patchwork.ozlabs.org/series/492547/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2197743/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=fv90111k;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=URyUR9rx;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fGHY51Kfsz1xvq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 00:34:17 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vshfv-0004Uv-8y; Wed, 18 Feb 2026 08:33:07 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <hreitz@redhat.com>) id 1vshfs-0004Tg-IU\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 08:33:04 -0500","from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <hreitz@redhat.com>) id 1vshfq-0006Gr-6F\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 08:33:04 -0500","from mail-wr1-f71.google.com (mail-wr1-f71.google.com\n [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-190-W5f0M2MqPl-0YwikU6JvrQ-1; Wed, 18 Feb 2026 08:27:35 -0500","by mail-wr1-f71.google.com with SMTP id\n ffacd0b85a97d-437812b8bb0so3427380f8f.3\n for <qemu-devel@nongnu.org>; Wed, 18 Feb 2026 05:27:35 -0800 (PST)","from localhost\n (p200300cfd737d029edef7b8da7441ac2.dip0.t-ipconnect.de.\n [2003:cf:d737:d029:edef:7b8d:a744:1ac2])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43796ac8d46sm42800451f8f.32.2026.02.18.05.27.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 18 Feb 2026 05:27:32 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771421581;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=sNvEZCKQBML5r/dspX+6G5O18jEO5qroU9rPnlPzYk8=;\n b=fv90111kYsykrqv7n38ENW24g+LNcZHmK4DoHmCe5b8N6pzsAkgZQam9JDxzPFu3q2VjBL\n ejVTd1kzzQfT0ohk+zDpES8/6AZwrHvveAezRjYz3AcHXhHtnRgO0PtBcQcwjXI9aOdqbf\n irVsML3RwG5Lxwbjv9V65IzB/AGjQR0=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1771421254; x=1772026054; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=sNvEZCKQBML5r/dspX+6G5O18jEO5qroU9rPnlPzYk8=;\n b=URyUR9rx3NzPOkIT1chhZgt1JJn1AEuXlgJaUUW3mTHEharwQfEmGNt3UiKKhC+FEU\n QAxguTq3qjVYcv94223krUYFqMbZE7ivDnIqO4v15/NvVnln6bJSkAR26PogGbdUnLrU\n MQtuhsE7XVtga6aBJa/evyS/Ylkvjd7nEYs4On1Ufivx1UIbVL/PzelKHWePNpT3U/DL\n 3eT7NfvzSlbQn075eqsPp1WTXq/VrbwKMwrbhNLg3A0WpVTSo+1Yyextw3bFkbE1biby\n 4SVsudHOwagtXnNgQQiTYwmtf4u4qwGy6WcW2QYp/aenXfCCQ5m8bCW60aH270mihrsq\n jVlQ=="],"X-MC-Unique":"W5f0M2MqPl-0YwikU6JvrQ-1","X-Mimecast-MFC-AGG-ID":"W5f0M2MqPl-0YwikU6JvrQ_1771421254","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771421254; x=1772026054;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=sNvEZCKQBML5r/dspX+6G5O18jEO5qroU9rPnlPzYk8=;\n b=cZhqr7wobwMBnx/nG6BP3UJO2VPm97SsseIlc3E6hq45GejYOynti8H6h5mZQM+1G4\n XsF74GJFnR+I1kpqR/kKmZUx8a+neMffAOExa6K1aIddZCEA4JT13UOzGv2f3TUi32Cb\n r+YLxQMJTSsw0/e+MNlEfNwOtGBME7JmsHBgFpYUWiDysMMYdy4S9lTkHl3+GoIsouTx\n 5ykAdsMDn2EkjO4kqJAacykpIVqer/k0RAqaFvRFrA9/Mcx9xYq55kTBV2B+CeehSZny\n 02VV//9SyHQzi+O+/RMKpTu7jsQj+RQESXwxf3nxfmJx+kkLytziWzer67HNekxbv1Tr\n DF3Q==","X-Gm-Message-State":"AOJu0YykRvrz2ryPXh5TEBHjhuOP3s3O7huX3SLfcKOmWYEPRCiGlhKo\n /YfzSM5cCLBOlfB3fFitiGqecvM0qUnyIjLrpp+8eXpCmTFtmMsSDrGxrZ9NuQ0pU7PRmOUYDDI\n zZwn7v58Ga7UK8008AfkAUgxMD+XXDig9/nh+uM8j48Bq2noCXNAeoZ8k","X-Gm-Gg":"AZuq6aLXjOUeMAPILBqyhI0IRaY6bvE8DYAZvAO3lDP0Fy+j/2v6zmA+/I8yMKbSb3L\n WXpuV0YiE3f9L+cLjBOR4oChZvrsAL9CXbgzQ35LvglovlrEht9wAeF+EMmDyW/FnTzfyuoWS2z\n BI8dnLCS6OuQ1AWJintnmXR7CoTLmPXZjkAHvJ5AEKhT5u00fbvG8kzRqY+hWz0f4uhWEWz4nQD\n +YSCXN6gdf/7xWu0SSYGp3oICAE0fhIEnNJL2hk7w0M/BrFxezuU+FXoKEyEEIc12TqiSzI1zlH\n YGChuAba6/mlJZ1g9UzeS1fMK9fNpmj/R2xQbJX0EFBhGIMHJ6jpv5e2YEuoFNiKyI5xIkedI4i\n E/OQAgP+XPxGyOCiY5Rb0SEA5tLQD+qTkJZPl75prrIynUOoX6GWQzNhYRjGZcUHVAt9bcgM81p\n MHiHQC","X-Received":["by 2002:a05:6000:2482:b0:432:586f:2a9d with SMTP id\n ffacd0b85a97d-43958e3bdffmr3519284f8f.32.1771421254216;\n Wed, 18 Feb 2026 05:27:34 -0800 (PST)","by 2002:a05:6000:2482:b0:432:586f:2a9d with SMTP id\n ffacd0b85a97d-43958e3bdffmr3519217f8f.32.1771421253744;\n Wed, 18 Feb 2026 05:27:33 -0800 (PST)"],"From":"Hanna Czenczek <hreitz@redhat.com>","To":"qemu-block@nongnu.org","Cc":"qemu-devel@nongnu.org, Hanna Czenczek <hreitz@redhat.com>,\n Kevin Wolf <kwolf@redhat.com>, Brian Song <hibriansong@gmail.com>","Subject":"[PATCH v4 20/24] iotests/307: Test multi-thread export interface","Date":"Wed, 18 Feb 2026 14:26:29 +0100","Message-ID":"<20260218132633.29748-21-hreitz@redhat.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260218132633.29748-1-hreitz@redhat.com>","References":"<20260218132633.29748-1-hreitz@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=170.10.129.124; envelope-from=hreitz@redhat.com;\n 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.043,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-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.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Test the QAPI interface for multi-threaded exports.  None of our exports\ncurrently support multi-threading, so it's always an error in the end,\nbut we can still test the specific errors.\n\nSigned-off-by: Hanna Czenczek <hreitz@redhat.com>\n---\n tests/qemu-iotests/307     | 47 ++++++++++++++++++++++++++++++++++++++\n tests/qemu-iotests/307.out | 18 +++++++++++++++\n 2 files changed, 65 insertions(+)","diff":"diff --git a/tests/qemu-iotests/307 b/tests/qemu-iotests/307\nindex b429b5aa50..f6ee3ebec0 100755\n--- a/tests/qemu-iotests/307\n+++ b/tests/qemu-iotests/307\n@@ -142,5 +142,52 @@ with iotests.FilePath('image') as img, \\\n     vm.qmp_log('query-block-exports')\n     iotests.qemu_nbd_list_log('-k', socket)\n \n+    iotests.log('\\n=== Using multi-thread with NBD ===')\n+\n+    # Actual multi-threading; (currently) not supported by NBD\n+    vm.qmp_log('block-export-add',\n+               id='export0',\n+               type='nbd',\n+               node_name='fmt',\n+               iothread=['iothread0', 'iothread1'])\n+\n+    # Should be treated the same way as actual multi-threading, even if there's\n+    # only a single thread\n+    vm.qmp_log('block-export-add',\n+               id='export0',\n+               type='nbd',\n+               node_name='fmt',\n+               iothread=['iothread0'])\n+\n+    iotests.log('\\n=== Empty thread list')\n+\n+    # Simply not allowed\n+    vm.qmp_log('block-export-add',\n+               id='export0',\n+               type='nbd',\n+               node_name='fmt',\n+               iothread=[])\n+\n+    iotests.log('\\n=== Non-existent thread name in list')\n+\n+    # Expect an error, even if NBD does not support multi-threading, because the\n+    # list is parsed before being passed to NBD\n+    vm.qmp_log('block-export-add',\n+               id='export0',\n+               type='nbd',\n+               node_name='fmt',\n+               iothread=['iothread0', 'nothread', 'iothread1'])\n+\n+    iotests.log('\\n=== Multi-thread with fixed-iothread')\n+\n+    # With multi-threading, there is no single context to give the BDS, so it is\n+    # just left where it is.  fixed-iothread does not make sense then.\n+    vm.qmp_log('block-export-add',\n+               id='export0',\n+               type='nbd',\n+               node_name='fmt',\n+               iothread=['iothread0', 'iothread1'],\n+               fixed_iothread=True)\n+\n     iotests.log('\\n=== Shut down QEMU ===')\n     vm.shutdown()\ndiff --git a/tests/qemu-iotests/307.out b/tests/qemu-iotests/307.out\nindex f645f3315f..a9b37d3ac1 100644\n--- a/tests/qemu-iotests/307.out\n+++ b/tests/qemu-iotests/307.out\n@@ -134,4 +134,22 @@ read failed: Input/output error\n exports available: 0\n \n \n+=== Using multi-thread with NBD ===\n+{\"execute\": \"block-export-add\", \"arguments\": {\"id\": \"export0\", \"iothread\": [\"iothread0\", \"iothread1\"], \"node-name\": \"fmt\", \"type\": \"nbd\"}}\n+{\"error\": {\"class\": \"GenericError\", \"desc\": \"NBD export does not support multi-threading\"}}\n+{\"execute\": \"block-export-add\", \"arguments\": {\"id\": \"export0\", \"iothread\": [\"iothread0\"], \"node-name\": \"fmt\", \"type\": \"nbd\"}}\n+{\"error\": {\"class\": \"GenericError\", \"desc\": \"NBD export does not support multi-threading\"}}\n+\n+=== Empty thread list\n+{\"execute\": \"block-export-add\", \"arguments\": {\"id\": \"export0\", \"iothread\": [], \"node-name\": \"fmt\", \"type\": \"nbd\"}}\n+{\"error\": {\"class\": \"GenericError\", \"desc\": \"The set of I/O threads must not be empty\"}}\n+\n+=== Non-existent thread name in list\n+{\"execute\": \"block-export-add\", \"arguments\": {\"id\": \"export0\", \"iothread\": [\"iothread0\", \"nothread\", \"iothread1\"], \"node-name\": \"fmt\", \"type\": \"nbd\"}}\n+{\"error\": {\"class\": \"GenericError\", \"desc\": \"iothread \\\"nothread\\\" not found\"}}\n+\n+=== Multi-thread with fixed-iothread\n+{\"execute\": \"block-export-add\", \"arguments\": {\"fixed-iothread\": true, \"id\": \"export0\", \"iothread\": [\"iothread0\", \"iothread1\"], \"node-name\": \"fmt\", \"type\": \"nbd\"}}\n+{\"error\": {\"class\": \"GenericError\", \"desc\": \"Cannot use fixed-iothread for a multi-threaded export\"}}\n+\n === Shut down QEMU ===\n","prefixes":["v4","20/24"]}