Skip to content

Commit ea8f17e

Browse files
Wu Zongyongmstsirkin
authored andcommitted
vhost-vdpa: clean irqs before reseting vdpa device
Vdpa devices should be reset after unseting irqs of virtqueues, or we will get errors when killing qemu process: >> pi_update_irte: failed to update PI IRTE >> irq bypass consumer (token 0000000065102a43) unregistration fails: -22 Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com> Link: https://lore.kernel.org/r/a2cb60cf73be9da5c4e6399242117d8818f975ae.1636946171.git.wuzongyong@linux.alibaba.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
1 parent 0466a39 commit ea8f17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/vdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,12 +1014,12 @@ static int vhost_vdpa_release(struct inode *inode, struct file *filep)
10141014

10151015
mutex_lock(&d->mutex);
10161016
filep->private_data = NULL;
1017+
vhost_vdpa_clean_irq(v);
10171018
vhost_vdpa_reset(v);
10181019
vhost_dev_stop(&v->vdev);
10191020
vhost_vdpa_iotlb_free(v);
10201021
vhost_vdpa_free_domain(v);
10211022
vhost_vdpa_config_put(v);
1022-
vhost_vdpa_clean_irq(v);
10231023
vhost_dev_cleanup(&v->vdev);
10241024
kfree(v->vdev.vqs);
10251025
mutex_unlock(&d->mutex);

0 commit comments

Comments
 (0)