Re: [osv-dev] [PATCH V2] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Nadav Har'El
On Sun, Jun 23, 2019 at 3:12 PM Waldek Kozaczuk wrote: > > > On Sun, Jun 23, 2019 at 07:19 Nadav Har'El wrote: > >> I dug around Linux's git and found (via heavy archaeology) the following >> patch which introduced this "AT" trick the first time: >> >> commit ad0d75ebacdbf1004d004803df0ba371c6bd

Re: [osv-dev] [PATCH V2] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Waldek Kozaczuk
Please see this bit of code from firecracker - https://github.com/firecracker-microvm/firecracker/blob/master/kernel/src/loader/mod.rs#L76-L145 - which loads OSv loader.elf. On Sunday, June 23, 2019 at 8:12:37 AM UTC-4, Waldek Kozaczuk wrote: > > > > On Sun, Jun 23, 2019 at 07:19 Nadav Har'El

Re: [osv-dev] [PATCH V2] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Waldek Kozaczuk
On Sun, Jun 23, 2019 at 07:19 Nadav Har'El wrote: > I just relalized I told you that I committed this patch, but forgot to > push it until now :-( So now it's really in. > Anyway, continuing the interesting discussion, > > On Thu, Jun 20, 2019 at 9:00 PM Waldek Kozaczuk > wrote: > >> Nadav, >> >

Re: [osv-dev] [PATCH V2] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Nadav Har'El
I just relalized I told you that I committed this patch, but forgot to push it until now :-( So now it's really in. Anyway, continuing the interesting discussion, On Thu, Jun 20, 2019 at 9:00 PM Waldek Kozaczuk wrote: > Nadav, > > As I understand (but I am not ELF-expert), the AT directives are

[osv-dev] [COMMIT osv master] Allow running non-PIE executables that do not collide with kernel

2019-06-23 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Allow running non-PIE executables that do not collide with kernel This patch provides necessary changes to OSv dynamic linker to allow running non-PIEs (Position Dependant Executables) as long as they do not collide in virtual memo

[osv-dev] [COMMIT osv master] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Move kernel to 0x4020 address (1 GiB higher) in virtual memory This patch provides all necessary changes to move OSv kernel by 1 GiB higher in virtual memory space to start at 0x4020. Most changes involve adding or subtract