ifcvf: move IRQ request/free to status change handlers
authorZhu Lingshan <lingshan.zhu@intel.com>
Tue, 12 May 2020 08:00:44 +0000 (16:00 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2020 19:36:51 +0000 (15:36 -0400)
commit7dd793f37e2ab4ca6585df8cfb1a1fcf44f61248
treed906604b46aeab0827cd55e7331c3474c5e645f5
parent002ef18eff43708be1d914cb11dbdd84fb149474
ifcvf: move IRQ request/free to status change handlers

This commit move IRQ request and free operations from probe()
to VIRTIO status change handler to comply with VIRTIO spec.

VIRTIO spec 1.1, section 2.1.2 Device Requirements: Device Status Field
The device MUST NOT consume buffers or send any used buffer
notifications to the driver before DRIVER_OK.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Link: https://lore.kernel.org/r/1589270444-3669-1-git-send-email-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c