[PATCH 2/2] vhost_vdpa: unified set_vq_irq() and update_vq_irq()

2020-08-05 Thread Zhu Lingshan
This commit merge vhost_vdpa_update_vq_irq() logics into vhost_vdpa_setup_vq_irq(), so that code are unified. In vhost_vdpa_setup_vq_irq(), added checks for the existence for get_vq_irq(). Signed-off-by: Zhu Lingshan --- drivers/vhost/vdpa.c | 28 ++-- 1 file changed, 6

Re: [PATCH 2/2] vhost_vdpa: unified set_vq_irq() and update_vq_irq()

2020-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2020 at 07:38:32PM +0800, Zhu Lingshan wrote: > This commit merge vhost_vdpa_update_vq_irq() logics into > vhost_vdpa_setup_vq_irq(), so that code are unified. > > In vhost_vdpa_setup_vq_irq(), added checks for the existence > for get_vq_irq(). > > Signed-off-by: Zhu Lingshan wh