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

RE: [Xen-ia64-devel][PATCH]a virt_to_maddr fix

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel][PATCH]a virt_to_maddr fix
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Thu, 16 Oct 2008 13:16:48 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 15 Oct 2008 22:16:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081016015115.GB11789%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <F7C8A4D3A9905B45A80E4C194793FA6501ABC7F7B0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081016015115.GB11789%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckvMbY4Z/TEE8JzReyjWQ76tgUHHAAHH5Sg
Thread-topic: [Xen-ia64-devel][PATCH]a virt_to_maddr fix
Updated one per your comments

Anthony


Isaku Yamahata wrote:
> On Mon, Oct 13, 2008 at 03:29:54PM +0800, Xu, Anthony wrote:
>> virt_to_maddr fix
>> The significant 8 bits of va are used by Xen,
>> such as 0xf2 is used as uncache mapping.
>>
>> In function ioports_permit_access,
>>  mach_start = mmio_start | __pa(space->mmio_base);
>> Mach_start gets wrong physical address.
>>
>> Signed-off-by; Anthony Xu < anthony.xu@xxxxxxxxx >
>>
>>
>> Anthony
>>
>> diff -r c2fc4d26ef18 xen/include/asm-ia64/xenpage.h
>> --- a/xen/include/asm-ia64/xenpage.h    Fri Oct 10 12:06:46 2008
>> +0900 +++ b/xen/include/asm-ia64/xenpage.h    Mon Oct 13 13:44:05
>>         2008 +0800 @@ -23,7 +23,7 @@ if (va - KERNEL_START <
>>                 xenheap_size) return xen_pstart + (va -
>> KERNEL_START);         else -               return (va & ((1UL <<
>> 60) - 1)); +               return (va & ((1UL << 56) - 1));
>>  }
>>
>>  #define virt_to_maddr(va)      (__virt_to_maddr((unsigned long)va))
>>
>
> Instead of using the magic number 56 directly, please define
> the number in xensystem.h with some comment and use it.
>
> thanks,

Attachment: virt_maddr_fix2.patch
Description: virt_maddr_fix2.patch

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