Re: [PATCH V3 3/6] vDPA: implement vq IRQ allocate/free helpers in vDPA core

2020-07-22 Thread Jason Wang
On 2020/7/22 下午6:08, Zhu Lingshan wrote: +/* + * Request irq for a vq, setup irq offloading if its a vhost_vdpa vq. + * This function should be only called through setting virtio DRIVER_OK. + * If you want to request irq during probe, you should use raw APIs + * like request_irq() or devm_reque

[PATCH V3 3/6] vDPA: implement vq IRQ allocate/free helpers in vDPA core

2020-07-22 Thread Zhu Lingshan
This commit implements vq IRQ allocate/free helpers in vDPA core by introducing two couple of functions: vdpa_devm_request_Irq() and vdpa_devm_free_irq(): request irq and free irq, and setup irq offloading. vdpa_setup_irq() and vdpa_unsetup_irq(): supportive functions, will call vhost_vdpa helper