]> git.dujemihanovic.xyz Git - linux.git/commit
KVM: eventfd: Use synchronize_srcu_expedited() on shutdown
authorLi RongQing <lirongqing@baidu.com>
Thu, 11 Jul 2024 12:11:30 +0000 (20:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Aug 2024 16:09:35 +0000 (12:09 -0400)
commitc9b35a6f4edea698a5bb4dd8029e7104ee0a3726
treed02be924bf3e7c4ac041b03a4abbe181bbdba450
parent238d3d63d1e27c8d9733b48f7b682fc6aba86672
KVM: eventfd: Use synchronize_srcu_expedited() on shutdown

When hot-unplug a device which has many queues, and guest CPU will has
huge jitter, and unplugging is very slow.

It turns out synchronize_srcu() in irqfd_shutdown() caused the guest
jitter and unplugging latency, so replace synchronize_srcu() with
synchronize_srcu_expedited(), to accelerate the unplugging, and reduce
the guest OS jitter, this accelerates the VM reboot too.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Message-ID: <20240711121130.38917-1-lirongqing@baidu.com>
[Call it just once in irqfd_resampler_shutdown. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/eventfd.c