• Li RongQing's avatar
    KVM: eventfd: Use synchronize_srcu_expedited() on shutdown · c9b35a6f
    Li RongQing authored
    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: default avatarLi RongQing <lirongqing@baidu.com>
    Message-ID: <20240711121130.38917-1-lirongqing@baidu.com>
    [Call it just once in irqfd_resampler_shutdown. - Paolo]
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    c9b35a6f
eventfd.c 23.7 KB