vdpa: skip suspend/resume ops if not DRIVER_OK
authorSteve Sistare <steven.sistare@oracle.com>
Tue, 13 Feb 2024 14:25:58 +0000 (06:25 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Mar 2024 06:45:49 +0000 (02:45 -0400)
commitc4e8b5aed7cd18bb8377b6dd461e336688c5d503
tree8c2e2128c1806348f18b36d9c9cf1bf6d1f34129
parent310227f42882c52356b523e2f4e11690eebcd2ab
vdpa: skip suspend/resume ops if not DRIVER_OK

If a vdpa device is not in state DRIVER_OK, then there is no driver state
to preserve, so no need to call the suspend and resume driver ops.

Suggested-by: Eugenio Perez Martin <eperezma@redhat.com>"
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Message-Id: <1707834358-165470-1-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eugenio PĂ©rez <eperezma@redhat.com>
drivers/vhost/vdpa.c