mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
kvm: Make kvm_irqchip_commit_routes an internal service
Automatically commit route changes after kvm_add_routing_entry and kvm_irqchip_release_virq. There is no performance relevant use case for which collecting multiple route changes is beneficial. This makes kvm_irqchip_commit_routes an internal service which assert()s that the corresponding IOCTL will always succeed. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
1e2aa8be09
commit
e7b2030862
3 changed files with 15 additions and 18 deletions
|
@ -56,7 +56,7 @@ static void kvm_piix3_setup_irq_routing(bool pci_enabled)
|
|||
{
|
||||
#ifdef CONFIG_KVM
|
||||
KVMState *s = kvm_state;
|
||||
int ret, i;
|
||||
int i;
|
||||
|
||||
if (kvm_check_extension(s, KVM_CAP_IRQ_ROUTING)) {
|
||||
for (i = 0; i < 8; ++i) {
|
||||
|
@ -77,10 +77,6 @@ static void kvm_piix3_setup_irq_routing(bool pci_enabled)
|
|||
}
|
||||
}
|
||||
}
|
||||
ret = kvm_irqchip_commit_routes(s);
|
||||
if (ret < 0) {
|
||||
hw_error("KVM IRQ routing setup failed");
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_KVM */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue