Commit 9a2a4b6d authored by Keir Fraser's avatar Keir Fraser
Browse files

FROMLIST: KVM: Avoid synchronize_srcu() in kvm_io_bus_register_dev()

Device MMIO registration may happen quite frequently during VM boot,
and the SRCU synchronization each time has a measurable effect
on VM startup time. In our experiments it can account for around 25%
of a VM's startup time.

Replace the synchronization with a deferred free of the old kvm_io_bus
structure.

Bug: 443591063
Bug: 395485007
Bug: 357781595
Link: https://lore.kernel.org/all/20250909100007.3136249-5-keirf@google.com/



Tested-by: default avatarLi RongQing <lirongqing@baidu.com>
Change-Id: I0ce543e7d72a505884941a76ef5aca093de9da74
Signed-off-by: default avatarKeir Fraser <keirf@google.com>
parent 01e4ac39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment