qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] target-ppc: Use right page size with hash table


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] target-ppc: Use right page size with hash table lookup
Date: Thu, 29 Jan 2015 14:11:52 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0


On 29.01.15 01:48, David Gibson wrote:
> On Mon, Jan 26, 2015 at 07:51:58PM +0530, Aneesh Kumar K.V wrote:
>> We look at two sizes specified in ISA (4K, 64K). If not found matching,
>> we consider it 16MB.
>>
>> Without this patch we would fail to lookup address above 16MB range.
>> Below 16MB happened to work before because the kernel have a liner
>> mapping and we always looked up hash for 0xc000000000000000. The
>> actual real address was computed by using the 16MB offset
>> with the real address found with the above hash.
>>
>> Without Fix:
>> (gdb) x/16x 0xc000000001000000
>> 0xc000000001000000 <list_entries+453208>:       Cannot access memory at 
>> address 0xc000000001000000
>> (gdb)
>>
>> With Fix:
>> (gdb)  x/16x 0xc000000001000000
>> 0xc000000001000000 <list_entries+453208>:       0x00000000      0x00000000   
>>    0x00000000      0x00000000
>> 0xc000000001000010 <list_entries+453224>:       0x00000000      0x00000000   
>>    0x00000000      0x00000000
>> 0xc000000001000020 <list_entries+453240>:       0x00000000      0x00000000   
>>    0x00000000      0x00000000
>> 0xc000000001000030 <list_entries+453256>:       0x00000000      0x00000000   
>>    0x00000000      0x00000000
>>
>> Signed-off-by: Aneesh Kumar K.V <address@hidden>
> 
> This doesn't fully implement the sllp page size encodings, but it's
> certainly better than what's there now.
> 
> Reviewed-by: David Gibson <address@hidden>

Thanks, applied to ppc-next.


Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]