WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] vt-d: replace the gdprintk with dprintk s

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] vt-d: replace the gdprintk with dprintk since it isn't in guest context.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 07 Sep 2009 06:35:18 -0700
Delivery-date: Mon, 07 Sep 2009 06:35:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1252327879 -3600
# Node ID 3cfa9a6a3168cd21681f29eb124d574f8e507cc2
# Parent  a28c9c2fa8de05ebd0284f578289e96d2d15d574
vt-d: replace the gdprintk with dprintk since it isn't in guest context.

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 xen/drivers/passthrough/vtd/iommu.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff -r a28c9c2fa8de -r 3cfa9a6a3168 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Mon Sep 07 13:50:55 2009 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c       Mon Sep 07 13:51:19 2009 +0100
@@ -829,7 +829,7 @@ static void dma_msi_set_affinity(unsigne
 #ifdef CONFIG_X86
     dest = set_desc_affinity(desc, mask);
     if (dest == BAD_APICID){
-        gdprintk(XENLOG_ERR VTDPREFIX, "Set iommu interrupt affinity 
error!\n");
+        dprintk(XENLOG_ERR VTDPREFIX, "Set iommu interrupt affinity error!\n");
         return;
     }
 
@@ -886,7 +886,7 @@ static int iommu_set_interrupt(struct io
     irq = create_irq();
     if ( irq <= 0 )
     {
-        gdprintk(XENLOG_ERR VTDPREFIX, "IOMMU: no irq available!\n");
+        dprintk(XENLOG_ERR VTDPREFIX, "IOMMU: no irq available!\n");
         return -EINVAL;
     }
 
@@ -902,7 +902,7 @@ static int iommu_set_interrupt(struct io
         irq_desc[irq].handler = &no_irq_type;
         irq_to_iommu[irq] = NULL;
         destroy_irq(irq);
-        gdprintk(XENLOG_ERR VTDPREFIX, "IOMMU: can't request irq\n");
+        dprintk(XENLOG_ERR VTDPREFIX, "IOMMU: can't request irq\n");
         return ret;
     }
 
@@ -917,7 +917,7 @@ static int iommu_alloc(struct acpi_drhd_
 
     if ( nr_iommus > MAX_IOMMUS )
     {
-        gdprintk(XENLOG_ERR VTDPREFIX,
+        dprintk(XENLOG_ERR VTDPREFIX,
                  "IOMMU: nr_iommus %d > MAX_IOMMUS\n", nr_iommus);
         return -ENOMEM;
     }
@@ -942,9 +942,9 @@ static int iommu_alloc(struct acpi_drhd_
     iommu->cap = dmar_readq(iommu->reg, DMAR_CAP_REG);
     iommu->ecap = dmar_readq(iommu->reg, DMAR_ECAP_REG);
 
-    gdprintk(XENLOG_INFO VTDPREFIX,
+    dprintk(XENLOG_INFO VTDPREFIX,
              "drhd->address = %"PRIx64"\n", drhd->address);
-    gdprintk(XENLOG_INFO VTDPREFIX, "iommu->reg = %p\n", iommu->reg);
+    dprintk(XENLOG_INFO VTDPREFIX, "iommu->reg = %p\n", iommu->reg);
 
     /* Calculate number of pagetable levels: between 2 and 4. */
     sagaw = cap_sagaw(iommu->cap);
@@ -953,7 +953,7 @@ static int iommu_alloc(struct acpi_drhd_
             break;
     if ( agaw < 0 )
     {
-        gdprintk(XENLOG_ERR VTDPREFIX,
+        dprintk(XENLOG_ERR VTDPREFIX,
                  "IOMMU: unsupported sagaw %lx\n", sagaw);
         xfree(iommu);
         return -ENODEV;
@@ -1615,7 +1615,7 @@ static int init_vtd_hw(void)
             irq = iommu_set_interrupt(iommu);
             if ( irq < 0 )
             {
-                gdprintk(XENLOG_ERR VTDPREFIX, "IOMMU: interrupt setup 
failed\n");
+                dprintk(XENLOG_ERR VTDPREFIX, "IOMMU: interrupt setup 
failed\n");
                 return irq;
             }
             iommu->irq = irq;
@@ -1670,7 +1670,7 @@ static int init_vtd_hw(void)
         ret = iommu_set_root_entry(iommu);
         if ( ret )
         {
-            gdprintk(XENLOG_ERR VTDPREFIX, "IOMMU: set root entry failed\n");
+            dprintk(XENLOG_ERR VTDPREFIX, "IOMMU: set root entry failed\n");
             return -EIO;
         }
     }
@@ -1695,7 +1695,7 @@ static void setup_dom0_rmrr(struct domai
     {
         ret = iommu_prepare_rmrr_dev(d, rmrr, PCI_BUS(bdf), PCI_DEVFN2(bdf));
         if ( ret )
-            gdprintk(XENLOG_ERR VTDPREFIX,
+            dprintk(XENLOG_ERR VTDPREFIX,
                      "IOMMU: mapping reserved region failed\n");
     }
     spin_unlock(&pcidevs_lock);
@@ -1761,7 +1761,7 @@ int intel_vtd_setup(void)
     if ( !iommu_qinval && iommu_intremap )
     {
         iommu_intremap = 0;
-        gdprintk(XENLOG_WARNING VTDPREFIX, "Interrupt Remapping disabled "
+        dprintk(XENLOG_WARNING VTDPREFIX, "Interrupt Remapping disabled "
             "since Queued Invalidation isn't supported or enabled.\n");
     }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] vt-d: replace the gdprintk with dprintk since it isn't in guest context., Xen patchbot-unstable <=