Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196932/?format=api
{ "id": 2196932, "url": "http://patchwork.ozlabs.org/api/patches/2196932/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216154901.602613-1-thuth@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260216154901.602613-1-thuth@redhat.com>", "list_archive_url": null, "date": "2026-02-16T15:49:01", "name": "hw/pci-host/sabre: Mark unusable PCI busses as full to ease device plugging", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ec7536d376e8bfc1b6fe2a916390fd63aaaa3340", "submitter": { "id": 66152, "url": "http://patchwork.ozlabs.org/api/people/66152/?format=api", "name": "Thomas Huth", "email": "thuth@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216154901.602613-1-thuth@redhat.com/mbox/", "series": [ { "id": 492322, "url": "http://patchwork.ozlabs.org/api/series/492322/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492322", "date": "2026-02-16T15:49:01", "name": "hw/pci-host/sabre: Mark unusable PCI busses as full to ease device plugging", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492322/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196932/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196932/checks/", "tags": {}, "related": [], "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=FyN1zGD4;\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 4fF6fV2MTRz1xtN\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 02:49:52 +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 1vs0qd-0005t0-OE; Mon, 16 Feb 2026 10:49:19 -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 <thuth@redhat.com>) id 1vs0qb-0005sP-CS\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 10:49:17 -0500", "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <thuth@redhat.com>) id 1vs0qT-0001Io-4R\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 10:49:15 -0500", "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-556-MSWwJHU_MFipdxW0LjjtWQ-1; Mon,\n 16 Feb 2026 10:49:05 -0500", "from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 912F6195FDC6; Mon, 16 Feb 2026 15:49:04 +0000 (UTC)", "from thuth-p1g4.redhat.com (unknown [10.45.224.142])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 5C041180087F; Mon, 16 Feb 2026 15:49:03 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771256947;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=+USCgHFiPNvrOaxKAyrXKL9M8GKKvwHi8L2w83I4I2M=;\n b=FyN1zGD4Cz0uZp1SnmYbPCLw2WqeDGUoMD+aJh19batPWyBR8qpsmTItcKsF42o8WrApaY\n XpbgQnX8KROZlZePakObQfJ7XScccCnmbMNkGQgh2ebvcaAS3DoWr7/1EB/9DK1kr/wtAo\n dPgIIj9uKbrAQVC3qzFhRVto82WDK9k=", "X-MC-Unique": "MSWwJHU_MFipdxW0LjjtWQ-1", "X-Mimecast-MFC-AGG-ID": "MSWwJHU_MFipdxW0LjjtWQ_1771256944", "From": "Thomas Huth <thuth@redhat.com>", "To": "qemu-devel@nongnu.org,\n\tMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>", "Subject": "[PATCH] hw/pci-host/sabre: Mark unusable PCI busses as full to ease\n device plugging", "Date": "Mon, 16 Feb 2026 16:49:01 +0100", "Message-ID": "<20260216154901.602613-1-thuth@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.93", "Received-SPF": "pass client-ip=170.10.133.124; envelope-from=thuth@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.001,\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_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001,\n 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": "From: Thomas Huth <thuth@redhat.com>\n\nWhen trying to plug a PCI device to a Sparc64 machine, you currently\nhave to specify the right bus (\"bus=pciB\"), otherwise you get this error:\n\n $ qemu-system-sparc64 -device virtio-scsi-pci\n qemu-system-sparc64: -device virtio-scsi-pci: PCI: no slot/function\n available for virtio-scsi-pci, all in use or reserved\n\nThis is quite annoying for the unexperienced users, and it also breaks\ne.g. the iotests (\"make check-block\") when running with qemu-system-sparc64.\n\nMark the non-usable PCI busses as full now, so that QEMU can automatically\nplug new PCI devices to the right \"pciB\" bus.\n\nSigned-off-by: Thomas Huth <thuth@redhat.com>\n---\n Note: Only lightly tested, it seems to work fine for me at a first glance,\n but maybe I missed something...\n\n hw/pci-host/sabre.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/hw/pci-host/sabre.c b/hw/pci-host/sabre.c\nindex cd2328ad53f..9c8519f3849 100644\n--- a/hw/pci-host/sabre.c\n+++ b/hw/pci-host/sabre.c\n@@ -382,6 +382,7 @@ static void sabre_realize(DeviceState *dev, Error **errp)\n &s->pci_mmio,\n &s->pci_ioport,\n 0, 0x40, TYPE_PCI_BUS);\n+ qbus_mark_full(&phb->bus->qbus);\n \n pci_create_simple(phb->bus, 0, TYPE_SABRE_PCI_DEVICE);\n \n@@ -400,6 +401,7 @@ static void sabre_realize(DeviceState *dev, Error **errp)\n s->bridgeA = PCI_BRIDGE(pci_dev);\n pci_bridge_map_irq(s->bridgeA, \"pciA\", pci_simbaA_map_irq);\n pci_realize_and_unref(pci_dev, phb->bus, &error_fatal);\n+ qbus_mark_full(&s->bridgeA->sec_bus.qbus);\n }\n \n static void sabre_init(Object *obj)\n", "prefixes": [] }