Re: [RFC 00/15] x86_64: Optimize percpu accesses

From: H. Peter Anvin
Date: Thu Jul 10 2008 - 14:07:47 EST


Christoph Lameter wrote:

Right. The problem is with the percpu area handled by the linker. That percpu area is used by the boot cpu and later we setup other additional per cpu areas. Those can be placed in an arbitrary way if one goes through a table of pointers to these areas.

However, that does not work if one calculates the virtual address instead of looking up a physical address.


As far as the linker is concerned, there are two address spaces: VMA, which is the offset, and LMA, which is the physical address on where to load. The linker doesn't give a flying hoot about the virtual address, since it's completely irrelevant as far as it is concerned; it's nothing but a kernel-internal abstraction.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/