Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2024-01-31 Thread Igor Opaniuk
Hello Ard, Just a quick follow-up for this old thread, I've again stumbled upon the same issue recently and it turned out that I've already sent a fix for that here :) Considering Heinrich's comment about memory granularity, does it still make sense to land this patch? If not, what objections/su

Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Igor Opaniuk
Hi Heinrich, On Thu, Feb 11, 2021 at 5:34 PM Heinrich Schuchardt wrote: > > On 11.02.21 15:56, Ard Biesheuvel wrote: > > On Thu, 11 Feb 2021 at 15:18, Heinrich Schuchardt > > wrote: > >> > >> On 11.02.21 13:04, Igor Opaniuk wrote: > >>> From: Igor Opaniuk > >>> > >>> When LPAE is enabled, 1:1

Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Ard Biesheuvel
On Thu, 11 Feb 2021 at 16:34, Heinrich Schuchardt wrote: > > On 11.02.21 15:56, Ard Biesheuvel wrote: > > On Thu, 11 Feb 2021 at 15:18, Heinrich Schuchardt > > wrote: > >> > >> On 11.02.21 13:04, Igor Opaniuk wrote: > >>> From: Igor Opaniuk > >>> > >>> When LPAE is enabled, 1:1 mapping is creat

Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Heinrich Schuchardt
On 11.02.21 15:56, Ard Biesheuvel wrote: > On Thu, 11 Feb 2021 at 15:18, Heinrich Schuchardt wrote: >> >> On 11.02.21 13:04, Igor Opaniuk wrote: >>> From: Igor Opaniuk >>> >>> When LPAE is enabled, 1:1 mapping is created using 2 MB blocks. >>> In case amount of memory provided to QEMU is not mult

Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Ard Biesheuvel
On Thu, 11 Feb 2021 at 15:18, Heinrich Schuchardt wrote: > > On 11.02.21 13:04, Igor Opaniuk wrote: > > From: Igor Opaniuk > > > > When LPAE is enabled, 1:1 mapping is created using 2 MB blocks. > > In case amount of memory provided to QEMU is not multiple > > of 2 MB, round down the amount of av

Re: [PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Heinrich Schuchardt
On 11.02.21 13:04, Igor Opaniuk wrote: > From: Igor Opaniuk > > When LPAE is enabled, 1:1 mapping is created using 2 MB blocks. > In case amount of memory provided to QEMU is not multiple > of 2 MB, round down the amount of available memory to avoid hang > during MMU initialization. > > How to rep

[PATCH v1] qemu-arm: round down memory to multiple of 2MB

2021-02-11 Thread Igor Opaniuk
From: Igor Opaniuk When LPAE is enabled, 1:1 mapping is created using 2 MB blocks. In case amount of memory provided to QEMU is not multiple of 2 MB, round down the amount of available memory to avoid hang during MMU initialization. How to reproduce: qemu-system-arm -machine virt -m 1058 -nograp