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-devel

[Xen-devel] [PATCH 2/2] hvmloader: skip upper field of 64 bit base addre

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 2/2] hvmloader: skip upper field of 64 bit base address register.
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Thu, 28 Aug 2008 17:15:14 +0900
Cc:
Delivery-date: Thu, 28 Aug 2008 01:15:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080828170253.A39F.SHIMADA-YXB@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080828170253.A39F.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch skips upper field of 64 bit base address register.

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>

diff -r 598d92a5ae7a tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c      Wed Aug 20 14:45:21 2008 +0100
+++ b/tools/firmware/hvmloader/hvmloader.c      Mon Aug 25 10:18:07 2008 +0900
@@ -243,6 +243,14 @@
             bars[i].bar_sz  = bar_sz;
 
             nr_bars++;
+
+            /* skip the upper address for 64bit BAR */
+            if ((bar_data & (PCI_BASE_ADDRESS_SPACE |
+                PCI_BASE_ADDRESS_MEM_TYPE_MASK)) == 
+                (PCI_BASE_ADDRESS_SPACE_MEMORY | 
+                PCI_BASE_ADDRESS_MEM_TYPE_64))
+                bar++;
+
         }
 
         /* Map the interrupt. */

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

<Prev in Thread] Current Thread [Next in Thread>