vhost-vdpa: Introduce RESUME backend feature bit
authorSebastien Boeuf <sebastien.boeuf@intel.com>
Tue, 3 Jan 2023 10:51:06 +0000 (11:51 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:56 +0000 (19:26 -0500)
commit69106b6fb3d73bd4252daa48ae96e600c9701147
tree22a7af5612cc15a224e958ceb8894e2abc109ca6
parent1538a8a49ecbe6d3302cd7f347632338e56857f8
vhost-vdpa: Introduce RESUME backend feature bit

Userspace knows if the device can be resumed or not by checking this
feature bit.

It's only exposed if the vdpa driver backend implements the resume()
operation callback. Userspace trying to negotiate this feature when it
hasn't been exposed will result in an error.

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