Gets qemu features like direct kernel boot and boot ordering going when seabios runs on coreboot.
Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- src/paravirt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/paravirt.c b/src/paravirt.c index d87a5e1..ae6e2a2 100644 --- a/src/paravirt.c +++ b/src/paravirt.c @@ -303,7 +303,7 @@ struct QemuCfgFile {
void qemu_cfg_init(void) { - if (!CONFIG_QEMU) + if (!CONFIG_QEMU_HARDWARE || !runningOnQEMU()) return;
// Detect fw_cfg interface. @@ -315,8 +315,10 @@ void qemu_cfg_init(void) return; dprintf(1, "Found QEMU fw_cfg\n");
- // Populate romfiles for legacy fw_cfg entries - qemu_cfg_legacy(); + if (CONFIG_QEMU) { + // Populate romfiles for legacy fw_cfg entries + qemu_cfg_legacy(); + }
// Load files found in the fw_cfg file directory u32 count;