Skip to content

Commit 9f09fd6

Browse files
eugpermarmstsirkin
authored andcommitted
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>
1 parent 8b59b4d commit 9f09fd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/vhost/vdpa.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ static long vhost_vdpa_unlocked_ioctl(struct file *filep,
680680
return -EFAULT;
681681
if (features & ~(VHOST_VDPA_BACKEND_FEATURES |
682682
BIT_ULL(VHOST_BACKEND_F_SUSPEND) |
683-
BIT_ULL(VHOST_BACKEND_F_RESUME)))
683+
BIT_ULL(VHOST_BACKEND_F_RESUME) |
684+
BIT_ULL(VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK)))
684685
return -EOPNOTSUPP;
685686
if ((features & BIT_ULL(VHOST_BACKEND_F_SUSPEND)) &&
686687
!vhost_vdpa_can_suspend(v))

0 commit comments

Comments
 (0)