OSDN Git Service

vhost-vdpa: clean irqs before reseting vdpa device
authorWu Zongyong <wuzongyong@linux.alibaba.com>
Mon, 15 Nov 2021 03:16:42 +0000 (11:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Nov 2021 00:00:28 +0000 (19:00 -0500)
commitea8f17e44fa7d54fae287ccbe30ce269afb5ee42
treeb5baa389579673da0cbbcb6a179179f2225d6ed9
parent0466a39bd0b6c462338f10d18076703d14a552de
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>
drivers/vhost/vdpa.c