Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eugenio Pérez and committed by
Michael S. Tsirkin
9f09fd61 8b59b4da

+2 -1
+2 -1
drivers/vhost/vdpa.c
··· 680 680 return -EFAULT; 681 681 if (features & ~(VHOST_VDPA_BACKEND_FEATURES | 682 682 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))) 684 685 return -EOPNOTSUPP; 685 686 if ((features & BIT_ULL(VHOST_BACKEND_F_SUSPEND)) && 686 687 !vhost_vdpa_can_suspend(v))