[SeaBIOS] Re: [PATCH 0/2] improve ZoneHigh memory management

2022-04-21 Thread Kevin O'Connor
On Thu, Apr 21, 2022 at 11:33:24AM +0200, Gerd Hoffmann wrote: > When running out of memory get a chunk of memory from ZoneTmpHigh to > expand ZoneHigh. Drop simliar logic fro pmm code because it's not > needed ay more. > > This fixes some scalability problems, for example with lots of vcpus, >

[SeaBIOS] [PATCH] qemu: disable builtin acpi and smbios tables by default.

2022-04-21 Thread Gerd Hoffmann
qemu provides acpi and smbios tables via fw_cfg for many years now. The builtin tables shipped by seabios are only used as fallback for old qemu versions. qemu is about to drop backward compatibility for old versions, machine types for versions 1.4 to 1.7 are deprecated, which turns the

[SeaBIOS] Re: [PATCH 0/2] improve ZoneHigh memory management

2022-04-21 Thread Igor Mammedov
On Thu, 21 Apr 2022 11:33:24 +0200 Gerd Hoffmann wrote: > When running out of memory get a chunk of memory from ZoneTmpHigh to > > expand ZoneHigh. Drop simliar logic fro pmm code because it's not > > needed ay more. > > > > This fixes some scalability problems, for example with lots of

[SeaBIOS] [PATCH 2/2] Revert "pmm: use tmp zone on oom"

2022-04-21 Thread Gerd Hoffmann
This reverts commit a638acfa4cc772b42093c8bfe55669829a641293. Not needed any more now that ZoneHigh is expanded on demand. Signed-off-by: Gerd Hoffmann --- src/pmm.c | 13 - 1 file changed, 13 deletions(-) diff --git a/src/pmm.c b/src/pmm.c index 28b253b2d33c..640341472486 100644

[SeaBIOS] [PATCH 1/2] malloc: add on demand ZoneHigh expansion support

2022-04-21 Thread Gerd Hoffmann
When running out of memory in ZoneHigh go alloc memory from ZoneTmpHigh, add it as reserved to the e820 map and expand ZoneHigh Signed-off-by: Gerd Hoffmann --- src/malloc.c | 16 1 file changed, 16 insertions(+) diff --git a/src/malloc.c b/src/malloc.c index

[SeaBIOS] [PATCH 0/2] improve ZoneHigh memory management

2022-04-21 Thread Gerd Hoffmann
When running out of memory get a chunk of memory from ZoneTmpHigh to expand ZoneHigh. Drop simliar logic fro pmm code because it's not needed ay more. This fixes some scalability problems, for example with lots of vcpus, where seabios runs out of memory due to large smbios/acpi tables.