Add a qemu_detect() call to csm initialization, so PF_QEMU gets set when running on qemu.
Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- src/csm.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/csm.c b/src/csm.c index 2021701..d927842 100644 --- a/src/csm.c +++ b/src/csm.c @@ -16,6 +16,7 @@ #include "acpi.h" #include "boot.h" #include "smbios.h" +#include "paravirt.h" #include "pic.h"
struct rsdp_descriptor csm_rsdp VARFSEG __aligned(16); @@ -49,6 +50,7 @@ csm_return(struct bregs *regs) static void csm_maininit(struct bregs *regs) { + qemu_detect(); interface_init(); pci_probe_devices();