dm: virtio: set VBS-K status to VIRTIO_DEV_INIT_SUCCESS after reset

When reset VBS-K status should be set to VIRTIO_DEV_INIT_SUCCESS
because at the time the char dev of VBS-K is still opened and
when set_status callback is called later, it depends on
VIRTIO_DEV_INIT_SUCCESS to resume.

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Jian Jun Chen
2018-08-01 15:40:45 +08:00
committed by lijinxia
parent 1378a8440a
commit f63c7a7355
3 changed files with 3 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ virtio_hyper_dmabuf_reset(void *base)
if (kstatus == VIRTIO_DEV_STARTED) {
virtio_hyper_dmabuf_k_stop();
virtio_hyper_dmabuf_k_reset();
kstatus = VIRTIO_DEV_INITIAL;
kstatus = VIRTIO_DEV_INIT_SUCCESS;
}
}