mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 20:51:28 +00:00
kvm tools: Initialise PCI before devices start getting registered with PCI
Re-arrange pci__init() in builtin-run such that it comes before devices are initialised. Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+2
-2
@@ -828,6 +828,8 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
|
||||
kvm->nrcpus = nrcpus;
|
||||
|
||||
pci__init();
|
||||
|
||||
/*
|
||||
* vidmode should be either specified
|
||||
* either set by default
|
||||
@@ -895,8 +897,6 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
|
||||
serial8250__init(kvm);
|
||||
|
||||
pci__init();
|
||||
|
||||
if (active_console == CONSOLE_VIRTIO)
|
||||
virtio_console__init(kvm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user