vdpa: Add resume operation
authorSebastien Boeuf <sebastien.boeuf@intel.com>
Tue, 3 Jan 2023 10:51:05 +0000 (11:51 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:56 +0000 (19:26 -0500)
commit1538a8a49ecbe6d3302cd7f347632338e56857f8
treefb7b272f87725ce499753d63326679f30e11c7d2
parent51a8f9d7f587290944d6fc733d1f897091c63159
vdpa: Add resume operation

Add a new operation to allow a vDPA device to be resumed after it has
been suspended. Trying to resume a device that wasn't suspended will
result in a no-op.

This operation is optional. If it's not implemented, the associated
backend feature bit will not be exposed. And if the feature bit is not
exposed, invoking this operation will return an error.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Message-Id: <6e05c4b31b47f3e29cb2bd7ebd56c81f84b8f48a.1672742878.git.sebastien.boeuf@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
include/linux/vdpa.h