mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-07 06:01:40 +00:00
kvm tools: Init IRQs after determining nrcpus
IRQ init may involve per-CPU setup/allocation of resources, so make sure kvm->nrcpus is initialised before calling irq__init(). Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+2
-2
@@ -809,8 +809,6 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
|
||||
kvm = kvm__init(dev, ram_size, guest_name);
|
||||
|
||||
irq__init(kvm);
|
||||
|
||||
kvm->single_step = single_step;
|
||||
|
||||
ioeventfd__init();
|
||||
@@ -828,6 +826,8 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
|
||||
kvm->nrcpus = nrcpus;
|
||||
|
||||
irq__init(kvm);
|
||||
|
||||
pci__init();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user