Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread H. Peter Anvin
Konrad Rzeszutek Wilk wrote: >On Wed, Aug 21, 2013 at 02:35:36PM +0200, H. Peter Anvin wrote: >> Global symbols are inaccessible in physical mode. > >Even if they are embedded in the assembler code and use >GLOBAL(paging_enabled) ? Yes, because the address is different in physical mode. Think

Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread Konrad Rzeszutek Wilk
On Wed, Aug 21, 2013 at 02:35:36PM +0200, H. Peter Anvin wrote: > Global symbols are inaccessible in physical mode. Even if they are embedded in the assembler code and use GLOBAL(paging_enabled) ? > > This is incidentally yet another example of "PV/weird platform violence", > since in their abs

Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread H. Peter Anvin
Global symbols are inaccessible in physical mode. This is incidentally yet another example of "PV/weird platform violence", since in their absence it would be trivial to work around this by using segmentation. Konrad Rzeszutek Wilk wrote: >Tang Chen wrote: >>We are going to do acpi_initrd_over

Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread Konrad Rzeszutek Wilk
Tang Chen wrote: >We are going to do acpi_initrd_override() at very early time: > >On 32bit: do it in head_32.S, before paging is enabled. In this case, >we can > access initrd with physical address without page tables. > >On 64bit: do it in head_64.c, after paging is enabled but before d

[PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread Tang Chen
We are going to do acpi_initrd_override() at very early time: On 32bit: do it in head_32.S, before paging is enabled. In this case, we can access initrd with physical address without page tables. On 64bit: do it in head_64.c, after paging is enabled but before direct mapping i