mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
vdpa: accept VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK backend feature
Accepting VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK backend feature if userland sets it. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Acked-by: Shannon Nelson <shannon.nelson@amd.com> Message-Id: <20230609092127.170673-3-eperezma@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
8b59b4da9b
commit
9f09fd6171
1 changed files with 2 additions and 1 deletions
|
@ -680,7 +680,8 @@ static long vhost_vdpa_unlocked_ioctl(struct file *filep,
|
|||
return -EFAULT;
|
||||
if (features & ~(VHOST_VDPA_BACKEND_FEATURES |
|
||||
BIT_ULL(VHOST_BACKEND_F_SUSPEND) |
|
||||
BIT_ULL(VHOST_BACKEND_F_RESUME)))
|
||||
BIT_ULL(VHOST_BACKEND_F_RESUME) |
|
||||
BIT_ULL(VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK)))
|
||||
return -EOPNOTSUPP;
|
||||
if ((features & BIT_ULL(VHOST_BACKEND_F_SUSPEND)) &&
|
||||
!vhost_vdpa_can_suspend(v))
|
||||
|
|
Loading…
Add table
Reference in a new issue