mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
kvm: skip system call when msi route is unchanged
Some guests do a large number of mask/unmask calls which currently trigger expensive route update system calls. Detect that route in unchanged and skip the system call. Reported-by: "Zhanghaoyu (A)" <haoyu.zhang@huawei.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
This commit is contained in:
parent
0fbc207403
commit
40509f7f52
1 changed files with 4 additions and 0 deletions
|
@ -1034,6 +1034,10 @@ static int kvm_update_routing_entry(KVMState *s,
|
|||
continue;
|
||||
}
|
||||
|
||||
if(!memcmp(entry, new_entry, sizeof *entry)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
*entry = *new_entry;
|
||||
|
||||
kvm_irqchip_commit_routes(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue