@@ -457,3 +457,12 @@ kvmtool_preinit(void)
RamSize = 128 * 1024 * 1024;
add_e820(0, RamSize, E820_RAM);
}
+
+void
+kvmtool_platform_setup(void)
+{
+ if (!CONFIG_KVMTOOL)
+ return;
+
+ pci_probe_devices();
+}
@@ -35,5 +35,6 @@ void qemu_platform_setup(void);
void qemu_cfg_init(void);
void kvmtool_preinit(void);
+void kvmtool_platform_setup(void);
#endif
@@ -173,6 +173,7 @@ platform_hardware_setup(void)
// Platform specific setup
qemu_platform_setup();
+ kvmtool_platform_setup();
coreboot_platform_setup();
// Initialize TPM
Make a pci bus scan, so we find the virtio devices. Tested with virtio-blk only (kvmtool uses that by default). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- src/fw/paravirt.c | 9 +++++++++ src/fw/paravirt.h | 1 + src/post.c | 1 + 3 files changed, 11 insertions(+)