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>

authored by Wu Zongyong and committed by Michael S. Tsirkin ea8f17e4 0466a39b

Changed files
+1 -1
drivers
vhost
+1 -1
drivers/vhost/vdpa.c
··· 1014 1014 1015 1015 mutex_lock(&d->mutex); 1016 1016 filep->private_data = NULL; 1017 + vhost_vdpa_clean_irq(v); 1017 1018 vhost_vdpa_reset(v); 1018 1019 vhost_dev_stop(&v->vdev); 1019 1020 vhost_vdpa_iotlb_free(v); 1020 1021 vhost_vdpa_free_domain(v); 1021 1022 vhost_vdpa_config_put(v); 1022 - vhost_vdpa_clean_irq(v); 1023 1023 vhost_dev_cleanup(&v->vdev); 1024 1024 kfree(v->vdev.vqs); 1025 1025 mutex_unlock(&d->mutex);