From: "Jan Beulich" Subject: [PATCH] VT-d: replace bogus gprintk() Date: Tue, 21 Apr 2015 08:31:19 +0100 Message-ID: <553618E70200007800074129@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part23174ED7.1__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YkSeR-00080G-0R for xen-devel@lists.xenproject.org; Tue, 21 Apr 2015 07:31:23 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Yang Z Zhang , Kevin Tian List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part23174ED7.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just like the other messages in this function this one should be issued through plain printk() - the current vCPU is irrelevant here. (Noticed while backporting to older trees, which don't have gprintk().) Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -858,8 +858,8 @@ static int iommu_page_fault_do_one(struc break; } =20 - gprintk(XENLOG_G_WARNING VTDPREFIX, "%s: reason %02x - %s\n", - kind, fault_reason, reason); + printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s\n", + kind, fault_reason, reason); =20 if ( iommu_verbose && fault_type =3D=3D DMA_REMAP ) print_vtd_entries(iommu, PCI_BUS(source_id), PCI_DEVFN2(source_id)= , --=__Part23174ED7.1__= Content-Type: text/plain; name="VT-d-bogus-gprintk.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="VT-d-bogus-gprintk.patch" VT-d: replace bogus gprintk()=0A=0AJust like the other messages in this = function this one should be issued=0Athrough plain printk() - the current = vCPU is irrelevant here. (Noticed=0Awhile backporting to older trees, = which don't have gprintk().)=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/drivers/passthrough/vtd/iommu.c=0A+++ b/xen/drivers/pa= ssthrough/vtd/iommu.c=0A@@ -858,8 +858,8 @@ static int iommu_page_fault_do_= one(struc=0A break;=0A }=0A =0A- gprintk(XENLOG_G_WARNING = VTDPREFIX, "%s: reason %02x - %s\n",=0A- kind, fault_reason, = reason);=0A+ printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - = %s\n",=0A+ kind, fault_reason, reason);=0A =0A if ( = iommu_verbose && fault_type =3D=3D DMA_REMAP )=0A print_vtd_entries= (iommu, PCI_BUS(source_id), PCI_DEVFN2(source_id),=0A --=__Part23174ED7.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part23174ED7.1__=--