vhost_vdpa: unset vq irq before freeing irq
authorWu Zongyong <wuzongyong@linux.alibaba.com>
Wed, 15 Sep 2021 06:39:32 +0000 (14:39 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Oct 2021 12:35:36 +0000 (08:35 -0400)
commit97f854be203883b61d24f230445bd533bbdf770c
treea1893d5240381ddb1a1063e71e1f5eb23e73cafb
parent2f9a174f918e29608564c7a4e8329893ab604fb4
vhost_vdpa: unset vq irq before freeing irq

Currently we unset vq irq after freeing irq and that will result in
error messages:

  pi_update_irte: failed to update PI IRTE
  irq bypass consumer (token 000000005a07a12b) unregistration fails: -22

This patch solves this.

Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
Link: https://lore.kernel.org/r/02637d38dcf4e4b836c5b3a65055fe92bf812b3b.1631687872.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