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

Configure Feed

Select the types of activity you want to include in your feed.

vhost: forbid change vq groups ASID if DRIVER_OK is set

Only vdpa_sim support it. Forbid this behaviour as there is no use for
it right now, we can always enable it in the future with a feature flag.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-7-eperezma@redhat.com>

authored by

Eugenio Pérez and committed by
Michael S. Tsirkin
3543b04a 0d215afd

+2
+2
drivers/vhost/vdpa.c
··· 682 682 return -EFAULT; 683 683 if (idx >= vdpa->ngroups || s.num >= vdpa->nas) 684 684 return -EINVAL; 685 + if (ops->get_status(vdpa) & VIRTIO_CONFIG_S_DRIVER_OK) 686 + return -EBUSY; 685 687 if (!ops->set_group_asid) 686 688 return -EOPNOTSUPP; 687 689 return ops->set_group_asid(vdpa, idx, s.num);