diff options
-rw-r--r-- | src/Kconfig | 7 | ||||
-rw-r--r-- | src/fw/paravirt.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/Kconfig b/src/Kconfig index 3a8ffa15..7c8104f0 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -478,6 +478,13 @@ menu "BIOS interfaces" help Provide TPM support along with TCG BIOS extensions + config DEFAULT_GUEST_HINT + int "tweak default config for 32-bit or 64-bit guests" + default 32 + help + Optimize memory layout (specifically the placement + of pci bars) for 32-bit or 64-bit guests. + endmenu menu "BIOS Tables" diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index fbd00f1c..001be7ca 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -37,7 +37,7 @@ u8 CPUPhysBits; // 64bit processor u8 CPULongMode; // memory layout hint (32bit or 64bit guests). -u8 GuestHint = 32; +u8 GuestHint = CONFIG_DEFAULT_GUEST_HINT; // Type of emulator platform. int PlatformRunningOn VARFSEG; // cfg enabled |