Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Leif Lindholm
On Mon, Nov 26, 2018 at 06:50:09PM +0100, Ard Biesheuvel wrote: > On Mon, 26 Nov 2018 at 18:46, Leif Lindholm wrote: > > > > On Fri, Nov 23, 2018 at 01:14:28PM +0100, Ard Biesheuvel wrote: > > > In preparation of permitting the virt code to define a larger PA space > > > size via

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Ard Biesheuvel
On Mon, 26 Nov 2018 at 18:46, Leif Lindholm wrote: > > On Fri, Nov 23, 2018 at 01:14:28PM +0100, Ard Biesheuvel wrote: > > In preparation of permitting the virt code to define a larger PA space > > size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the > > CPU actually supports,

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Leif Lindholm
On Fri, Nov 23, 2018 at 01:14:28PM +0100, Ard Biesheuvel wrote: > In preparation of permitting the virt code to define a larger PA space > size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the > CPU actually supports, take the CPU's capabilities into account when > setting up the

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Ard Biesheuvel
On Mon, 26 Nov 2018 at 10:42, Laszlo Ersek wrote: > > On 11/23/18 13:14, Ard Biesheuvel wrote: > > In preparation of permitting the virt code to define a larger PA space > > size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the > > CPU actually supports, take the CPU's capabilities

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Laszlo Ersek
On 11/26/18 10:42, Laszlo Ersek wrote: > On 11/23/18 13:14, Ard Biesheuvel wrote: >> In preparation of permitting the virt code to define a larger PA space >> size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the >> CPU actually supports, take the CPU's capabilities into account

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Laszlo Ersek
On 11/26/18 10:42, Laszlo Ersek wrote: > On 11/23/18 13:14, Ard Biesheuvel wrote: >> + MaxAddress = (1UL << MaxAddressBits) - 1; > not 1 U;, which Sorry, typo: s/;/L/, clearly. (They are adjacent in my keyboard layout.) Laszlo ___ edk2-devel mailing

Re: [edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-26 Thread Laszlo Ersek
On 11/23/18 13:14, Ard Biesheuvel wrote: > In preparation of permitting the virt code to define a larger PA space > size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the > CPU actually supports, take the CPU's capabilities into account when > setting up the page tables. This is

[edk2] [PATCH 2/5] ArmPkg/ArmMmuLib: take the CPU supported maximum PA space into account

2018-11-23 Thread Ard Biesheuvel
In preparation of permitting the virt code to define a larger PA space size via gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize than what the CPU actually supports, take the CPU's capabilities into account when setting up the page tables. This is necessary because KVM will shortly support variable