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? --yliu > > To accommodate both requirements, we rearrange the sequence like this: > a. set interrupt configure for PCI devices. > b. set VIRTIO_CONFIG_STATUS_DRIVER_OK. > c. set interrupt configure for virtual devices. > > Signed-off-by: Jianfeng Tan <jianfeng....@intel.com>