]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc68d3588404227640273e34c1f4c9d15e34966e
treee10aa979039b7eb2fe412faa09348376c852a9f7
parent6a1357fe7db880806e7e403817ec8801120197dd
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