Skip to content

Commit

Permalink
vdpa net: stop probing if cannot set features
Browse files Browse the repository at this point in the history
Otherwise it continues the CVQ isolation probing.

Fixes: 152128d ("vdpa: move CVQ isolation check to net_init_vhost_vdpa")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20230915170836.3078172-3-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
eugpermar authored and mstsirkin committed Oct 4, 2023
1 parent cbc9ae8 commit f108588
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/vhost-vdpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ static int vhost_vdpa_probe_cvq_isolation(int device_fd, uint64_t features,
r = ioctl(device_fd, VHOST_SET_FEATURES, &features);
if (unlikely(r)) {
error_setg_errno(errp, errno, "Cannot set features");
goto out;
}

r = ioctl(device_fd, VHOST_VDPA_SET_STATUS, &status);
Expand Down

0 comments on commit f108588

Please sign in to comment.