From nobody Mon Feb 9 09:29:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1573652729; cv=none; d=zoho.com; s=zohoarc; b=NkoALGJAke0IIwgBejxuq2KdCeSlnLImLzCZSuEap+94UI2vNsxkcVu0h7zqIE0010WDPOf7YhvbvUF04KyLbCnzfW1dViFcKBf3+nzdlV7CETf4LvGeOIHSr1wLPikFDxto1gZhj+zT20iW6EDMxe1OQauTTewwz0Du4bvCL48= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573652729; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ku3FFWU1OmY7fTn90MZTVsf+bdfc20u0S79b2v7MnTE=; b=nW8+w1PbM0WJbT9WDykidqe8h2nu2wJkeLMCDIpOcNzc45jtKgrPtO3Wz+SdsJlHOo6y+Rr0mO1MdR6pucX/SAwcuffUD0mfuXScGRCGuCpPxWm0FYe64zilxdEtJAmYdsnf5jLBS1yrZvXHWkng5w6CmSpn5oy0xnnKkxbfdfI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 157365272940363.97626981994915; Wed, 13 Nov 2019 05:45:29 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iUswY-0001qT-Sh; Wed, 13 Nov 2019 13:44:22 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iUswX-0001qM-Mq for xen-devel@lists.xenproject.org; Wed, 13 Nov 2019 13:44:21 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id b1d22c7e-061b-11ea-984a-bc764e2007e4; Wed, 13 Nov 2019 13:44:21 +0000 (UTC) X-Inumbo-ID: b1d22c7e-061b-11ea-984a-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1573652661; h=from:to:cc:subject:date:message-id:mime-version; bh=qvjnWXqrNb6E8MyyEYq6Wm+eVVinttLQzACNDaVyaVA=; b=fQGXKxytQr8BGsIU+fh+AYOD8ze9bVVsuiOk40a9p6HnSZTu4XBx83RH 0kk7j5BjupeNEULqGW8EJLov6puRqQstsBDfT35HR2Dqjx0Vpwyt7Yl7E 7vXLzqlLA5VFdMqkAqcrjBwjrjraaCV+/UWHJxCcdJE6bQsLNTC4VIIYW s=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: OZOT9Vr632rejoKtP0EYXExMV0tnqCOr1zjOHLBG2UsQq3+tqwBHRQgUfYwqoYKoqFL1b/XQjK 6Y+6VXNvwcL40Z0XEvNRwf+Aw+xvf7cqpOPcIJQlEJ1NZEOscqq1z/rttzePRVZZS+n/QosuFU 4J9hP3VYcmOwVz0JNopjdJngTnrr5GDYWJnLALGtdGR5A/i4t8DRqGy1p/xb3Vr+htGQsxQSc9 fy8Xvo1CyxBSq9lKjP4t1hwPN8Rc2cqI+JNKxlFzn2ldfFlx8N9AWBEvENzNBWoSMpQaYvP/My dTw= X-SBRS: 2.7 X-MesageID: 8259991 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.68,300,1569297600"; d="scan'208";a="8259991" From: Andrew Cooper To: Xen-devel Date: Wed, 13 Nov 2019 13:44:17 +0000 Message-ID: <20191113134417.17299-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH for-4.13] xen/passthrough: Render domains with %pd in the 'Q' debug handler X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Andrew Cooper , Jan Beulich Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) IOMMUs are owned by DOM_XEN, and with XSA-302, DOM_IO is used for quarantined domains. Use %pd in the printk to render the system domains more intelligently. Before: (XEN) 0000:00:01.0 - dom 0 - node 0 - MSIs < > (XEN) 0000:00:00.0 - dom 0 - node 0 - MSIs < > (XEN) 0000:80:00.2 - dom 32754 - node 1 - MSIs < > (XEN) 0000:a0:00.2 - dom 32754 - node 1 - MSIs < > (XEN) 0000:c0:00.2 - dom 32754 - node 1 - MSIs < > (XEN) 0000:e0:00.2 - dom 32754 - node 1 - MSIs < > (XEN) 0000:00:00.2 - dom 32754 - node 0 - MSIs < > (XEN) 0000:20:00.2 - dom 32754 - node 0 - MSIs < > (XEN) 0000:40:00.2 - dom 32754 - node 0 - MSIs < > (XEN) 0000:60:00.2 - dom 32754 - node 0 - MSIs < > After: (XEN) 0000:00:01.0 - d0 - node 0 - MSIs < > (XEN) 0000:00:00.0 - d0 - node 0 - MSIs < > (XEN) 0000:80:00.2 - d[XEN] - node 1 - MSIs < > (XEN) 0000:a0:00.2 - d[XEN] - node 1 - MSIs < > (XEN) 0000:c0:00.2 - d[XEN] - node 1 - MSIs < > (XEN) 0000:e0:00.2 - d[XEN] - node 1 - MSIs < > (XEN) 0000:00:00.2 - d[XEN] - node 0 - MSIs < > (XEN) 0000:20:00.2 - d[XEN] - node 0 - MSIs < > (XEN) 0000:40:00.2 - d[XEN] - node 0 - MSIs < > (XEN) 0000:60:00.2 - d[XEN] - node 0 - MSIs < > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Juergen Gross 4.13 nice-to-have. Not strictly required, but it is a low risk change which improves diagnostics. --- xen/drivers/passthrough/pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 18a7dc7224..8e501a79a8 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -1349,10 +1349,9 @@ static int _dump_pci_devices(struct pci_seg *pseg, v= oid *arg) =20 list_for_each_entry ( pdev, &pseg->alldevs_list, alldevs_list ) { - printk("%04x:%02x:%02x.%u - dom %-3d - node %-3d - MSIs < ", + printk("%04x:%02x:%02x.%u - %pd - node %-3d - MSIs < ", pseg->nr, pdev->bus, - PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), - pdev->domain ? pdev->domain->domain_id : -1, + PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), pdev->domain, (pdev->node !=3D NUMA_NO_NODE) ? pdev->node : -1); list_for_each_entry ( msi, &pdev->msi_list, list ) printk("%d ", msi->irq); --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel