[dpdk-dev] [PATCH v2 2/5] net/virtio: add interrupt configure for vdev

Yuanhan Liu yuanhan.liu at linux.intel.com
Wed Mar 29 08:27:06 CEST 2017

On Tue, Mar 28, 2017 at 08:21:53AM +0000, Jianfeng Tan wrote:
> For virtio PCI devices, interrupt should be configured before setting
> VIRTIO_CONFIG_STATUS_DRIVER_OK so that QEMU can properly set eventfds
> in the host.
> For virtio virtual devices, VIRTIO_CONFIG_STATUS_DRIVER_OK should be
> set firstly, so that intr_handle is initialized in
> virtio_user_start_device().

I'm wondering why can't you let virtio-user follow virtio-pci?

> To accommodate both requirements, we rearrange the sequence like this:
>   a. set interrupt configure for PCI devices.
>   c. set interrupt configure for virtual devices.
> Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>

More information about the dev mailing list