[PATCH -V1 4/9] arch/powerpc: Use vsid and segment offset to represent virtual address

Aneesh Kumar K.V aneesh.kumar at linux.vnet.ibm.com
Sun Jul 1 17:53:07 EST 2012


Benjamin Herrenschmidt <benh at kernel.crashing.org> writes:

> On Fri, 2012-06-29 at 19:47 +0530, Aneesh Kumar K.V wrote:
>>  
>> +/* 78 bit power virtual address */
>>  struct virt_addr {
>> -       unsigned long addr;
>> +       unsigned long vsid;
>> +       unsigned long seg_off;
>>  };
>
> Do we really need to do that ? It's really nasty...
>
> We are trying to add only a few bits, we get 12 for free by just using a
> page number (4k based always, not PAGE_SHIFT based btw) no ? That should
> get us going for a while....
>

Ok, will update to vpn in the next iteration.

Thanks
-aneesh



More information about the Linuxppc-dev mailing list