[SeaBIOS] Re: [PATCH 0/4] add guest hint for memory layout (pci bar placement)

2024-11-15 Thread Kevin O'Connor
On Fri, Nov 15, 2024 at 12:40:06PM +0100, Gerd Hoffmann wrote: > This series adds an option to set the memory layout preference, > both at compile time (via kconfig) and runtime (via fwcfg). > > Gerd Hoffmann (4): > add guest hint variable > use guest hint as additional condition > add guest

[SeaBIOS] [PATCH 1/4] add guest hint variable

2024-11-15 Thread Gerd Hoffmann
This holds the hint whenever the guest is 32-bit or 64-bit, so seabios can optimize the memory layout (pci bar placement) accordingly. Default is '32' for best backward compatibility. Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.h | 1 + src/fw/paravirt.c | 2 ++ 2 files changed, 3 insertio

[SeaBIOS] [PATCH 2/4] use guest hint as additional condition

2024-11-15 Thread Gerd Hoffmann
check guest hint as additional condition to enable the 64-bit guest friendly memory layout. With '32' seabios will use traditional pci configuration for best compatibility: all PCI bars will be mapped into the 32-bit PCI MMIO window below 4G if they fit there. With '64' seabios will use the new p

[SeaBIOS] [PATCH 0/4] add guest hint for memory layout (pci bar placement)

2024-11-15 Thread Gerd Hoffmann
This series adds an option to set the memory layout preference, both at compile time (via kconfig) and runtime (via fwcfg). Gerd Hoffmann (4): add guest hint variable use guest hint as additional condition add guest hint default kconfig add guest hint fw_cfg override src/fw/paravirt.h |

[SeaBIOS] [PATCH 4/4] add guest hint fw_cfg override

2024-11-15 Thread Gerd Hoffmann
Add runtime fwcfg override for the guest hint. Usage: qemu -fw_cfg name=etc/guest-hint,string=32 Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 001be7caf102..25b37647d299 100644 --- a/src/f

[SeaBIOS] [PATCH 3/4] add guest hint default kconfig

2024-11-15 Thread Gerd Hoffmann
Add compile time config option for the guest hint default value. Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 2 +- src/Kconfig | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index fbd00f1c072f..001be7caf102 100644 -

[SeaBIOS] [PATCH] Clarify license headers for dsdt and ssdt tables.

2024-11-15 Thread Robert Spier via SeaBIOS
>From 7c84cde99ec50d80f4a1b327fcb80d25f617e636 Mon Sep 17 00:00:00 2001 From: Robert Spier Date: Tue, 9 Jul 2024 10:32:56 -0700 Subject: [PATCH] Add LGPLv2 header back to files derived from acpi-dsdt.dsl which came from Bochs/QEMU. The original code was licensed under LGPLv2 *without* an "or lat