mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
KVM: PIC: Only commit irq routing when necessary
The current logic updates KVM's view of our interrupt map every time we change it. While this is nice and bullet proof, it slows things down badly for me. QEMU spends about 3 seconds on every start telling KVM what news it has on its routing maps. Instead, let's just synchronize the whole irq routing map as a whole when we're done constructing it. For things that change during runtime, we can still update the routing table on demand. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
82fc73b65c
commit
cb925cf923
3 changed files with 5 additions and 3 deletions
|
@ -40,6 +40,7 @@ void kvm_pc_setup_irq_routing(bool pci_enabled)
|
|||
}
|
||||
}
|
||||
}
|
||||
kvm_irqchip_commit_routes(s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue