Add a qemu_preinit() call to csm initialization, so PF_QEMU gets set when running on qemu.
Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- src/fw/csm.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/fw/csm.c b/src/fw/csm.c index cd16641..dfb0d12 100644 --- a/src/fw/csm.c +++ b/src/fw/csm.c @@ -17,6 +17,7 @@ #include "std/bda.h" // struct bios_data_area_s #include "std/optionrom.h" // struct rom_header #include "util.h" // copy_smbios +#include "paravirt.h" // qemu_preinit
#define UINT8 u8 #define UINT16 u16 @@ -69,6 +70,8 @@ csm_maininit(struct bregs *regs) static void handle_csm_0000(struct bregs *regs) { + qemu_preinit(); + dprintf(3, "Legacy16InitializeYourself table %04x:%04x\n", regs->es, regs->bx);