Displaying 4 results from an estimated 4 matches for "shadow_vqs_en".
2023 Feb 22
0
[PATCH v2 07/13] vdpa: add vdpa net migration state notifier
...struct vhost_vdpa *v = &s->vhost_vdpa;
> + VirtIONet *n;
> + VirtIODevice *vdev;
> + int data_queue_pairs, cvq, r;
> + NetClientState *peer;
> +
> + /* We are only called on the first data vqs and only if x-svq is not set */
> + if (s->vhost_vdpa.shadow_vqs_enabled == enable) {
> + return;
> + }
> +
> + vdev = v->dev->vdev;
> + n = VIRTIO_NET(vdev);
Let's tweak the code to move those initialization to the beginning of
the function.
> + if (!n->vhost_started) {
> + return;
> + }
What...
2023 Mar 06
0
[PATCH v4 01/15] vdpa net: move iova tree creation from init to start
...gt; > >>> +}
> > >>> +
> > >>> +static void vhost_vdpa_net_data_start_first(VhostVDPAState *s)
> > >>> +{
> > >>> + struct vhost_vdpa *v = &s->vhost_vdpa;
> > >>> +
> > >>> + if (v->shadow_vqs_enabled) {
> > >>> + v->iova_tree = vhost_iova_tree_new(v->iova_range.first,
> > >>> + v->iova_range.last);
> > >>> + }
> > >>> +}
> > >>> +
> > >>> +s...
2023 Feb 23
0
[PATCH v2 11/13] vdpa: block migration if dev does not have _F_SUSPEND
.../hw/virtio/vhost-vdpa.c
>>> +++ b/hw/virtio/vhost-vdpa.c
>>> @@ -442,6 +442,27 @@ static int vhost_vdpa_init(struct vhost_dev *dev, void *opaque, Error **errp)
>>> return 0;
>>> }
>>>
>>> + /*
>>> + * If dev->shadow_vqs_enabled at initialization that means the device has
>>> + * been started with x-svq=on, so don't block migration
>>> + */
>>> + if (dev->migration_blocker == NULL && !v->shadow_vqs_enabled) {
>>> + uint64_t backend_features;
>&...
2023 Mar 06
0
[PATCH v4 12/15] vdpa: block migration if device has unsupported features
...>>>> {
> > >>>> NetClientState *nc = NULL;
> > >>>> VhostVDPAState *s;
> > >>>> @@ -818,7 +819,10 @@ static NetClientState *net_vhost_vdpa_init(NetClientState *peer,
> > >>>> s->vhost_vdpa.shadow_vqs_enabled = svq;
> > >>>> s->vhost_vdpa.iova_range = iova_range;
> > >>>> s->vhost_vdpa.shadow_data = svq;
> > >>>> - if (!is_datapath) {
> > >>>> + if (queue_pair_index == 0) {
> > >>>> +...