[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [virtio] when is VIRTIO_CONFIG_S_DRIVER_OK set?
From: |
Catalin Vasile |
Subject: |
Re: [Qemu-devel] [virtio] when is VIRTIO_CONFIG_S_DRIVER_OK set? |
Date: |
Wed, 10 Jun 2015 14:11:38 +0300 |
The problem was that my device started having activity before the
backend was finished to be set up.
On Wed, Jun 10, 2015 at 12:26 PM, Catalin Vasile
<address@hidden> wrote:
> When is VIRTIO_CONFIG_S_DRIVER_OK set?
> I've seen in vhost-scsi from qemu, that it sets it's own set_status()
> member function for a virtio object, which checks for
> VIRTIO_CONFIG_S_DRIVER_OK (from a status variable received as a
> parameter) so it knows if it has to call vhost_scsi_start(),
> vhost_scsi_stop(), or don't do anything if the status already
> corresponds to what was received.
> I've tried to implement the same logic in my virtio device, but it
> always triggers set_status() with a status of 0 (no flags set).