vhost-vdpa: introduce SUSPEND backend feature bit
authorEugenio Pérez <eperezma@redhat.com>
Wed, 10 Aug 2022 17:15:10 +0000 (19:15 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:31:14 +0000 (04:31 -0400)
commit0723f1df5c3ec8a1112d150dab98e149361ef488
treee10aa979039b7eb2fe412faa09348376c852a9f7
parent848ecea184e1253758423b37cbfc1ed732ccf5b4
vhost-vdpa: introduce SUSPEND backend feature bit

Userland knows if it can suspend the device or not by checking this feature
bit.

It's only offered if the vdpa driver backend implements the suspend()
operation callback, and to offer it or userland to ack it if the backend
does not offer that callback is an error.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220810171512.2343333-3-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c
include/uapi/linux/vhost_types.h