projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0466a39
)
vhost-vdpa: clean irqs before reseting vdpa device
author
Wu Zongyong
<wuzongyong@linux.alibaba.com>
Mon, 15 Nov 2021 03:16:42 +0000
(11:16 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 25 Nov 2021 00:00:28 +0000
(19:00 -0500)
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>
drivers/vhost/vdpa.c
patch
|
blob
|
history
diff --git
a/drivers/vhost/vdpa.c
b/drivers/vhost/vdpa.c
index 01c59ce7e2508008e3b1de849a13a0253c55a9df..29cced1cd27784a708df783b2f81e2340c86f145 100644
(file)
--- a/
drivers/vhost/vdpa.c
+++ b/
drivers/vhost/vdpa.c
@@
-1014,12
+1014,12
@@
static int vhost_vdpa_release(struct inode *inode, struct file *filep)
mutex_lock(&d->mutex);
filep->private_data = NULL;
+ vhost_vdpa_clean_irq(v);
vhost_vdpa_reset(v);
vhost_dev_stop(&v->vdev);
vhost_vdpa_iotlb_free(v);
vhost_vdpa_free_domain(v);
vhost_vdpa_config_put(v);
- vhost_vdpa_clean_irq(v);
vhost_dev_cleanup(&v->vdev);
kfree(v->vdev.vqs);
mutex_unlock(&d->mutex);