vhost-scsi: Add VMState descriptor
commit4ea57425584798ccde1da6343cbfbb22497f2e4e
authorNir Weiner <nir.weiner@oracle.com>
Tue, 16 Apr 2019 12:59:11 +0000 (16 15:59 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jun 2019 01:32:06 +0000 (2 21:32 -0400)
treef27b426846bd2780869fec38c267dce1eba8c189
parentc6d369fd78c654fa618e382b39da850393b8a0da
vhost-scsi: Add VMState descriptor

As preparation of enabling migration of vhost-scsi device,
define it’s VMState. Note, we keep the convention of
verifying in the pre_save() method that the vhost backend
must be stopped before attempting to save the device
state. Similar to how it is done for vhost-vsock.

Reviewed-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Nir Weiner <nir.weiner@oracle.com>
Message-Id: <20190416125912.44001-3-liran.alon@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/scsi/vhost-scsi.c