KVM: fix crash on irqfd deassign
irqfd in kvm used flush_work incorrectly: it assumed that work scheduled previously can't run after flush_work, but since kvm uses a non-reentrant workqueue (by means of schedule_work) we need flush_work_sync to get that guarantee. Signed-off-by: NMichael S. Tsirkin <mst@redhat.com> Reported-by: NJean-Philippe Menil <jean-philippe.menil@univ-nantes.fr> Tested-by: NJean-Philippe Menil <jean-philippe.menil@univ-nantes.fr> Signed-off-by: NAvi Kivity <avi@redhat.com>
Showing
想要评论请 注册 或 登录