Displaying 5 results from an estimated 5 matches for "vq_reset".
Did you mean:
vp_reset
2020 Apr 13
0
[PATCH 0/8] tools/vhost: Reset virtqueue on tests
...it. And
> ("tools/virtio: Reset index in virtio_test --reset.") Makes the test
> work more similar than the actual VM does in a reset.
>
> ("tools/virtio: Use __vring_new_virtqueue in virtio_test.c") and
> ("tools/virtio: Extract virtqueue initialization in vq_reset") are
> convenience commits to reach the previous two.
>
> Lastly, ("tools/virtio: Use tools/include/list.h instead of stubs")
> just removes stub code, I did it when I try to test vdpa code and it
> seems to me a nice to have, but we can drop it from the patchset if...
2020 Apr 13
0
[PATCH 0/8] tools/vhost: Reset virtqueue on tests
...g batched descs in VHOST_SET_VRING_BASE ioctl
> vhost: Replace vq->private_data access by backend accesors
> vhost: Fix bad order in vhost_test_set_backend at enable
> tools/virtio: Use __vring_new_virtqueue in virtio_test.c
> tools/virtio: Extract virtqueue initialization in vq_reset
> tools/virtio: Reset index in virtio_test --reset.
> tools/virtio: Use tools/include/list.h instead of stubs
>
> drivers/vhost/test.c | 8 ++---
> drivers/vhost/vhost.c | 1 -
> tools/virtio/linux/kernel.h | 7 +----
> tools/virtio/linux/virtio.h | 5 ++-...
2020 Jun 24
1
[GIT PULL] virtio: fixes, tests
...add memory via add_memory_driver_managed()
Eugenio P?rez (7):
tools/virtio: Add --batch option
tools/virtio: Add --batch=random option
tools/virtio: Add --reset
tools/virtio: Use __vring_new_virtqueue in virtio_test.c
tools/virtio: Extract virtqueue initialization in vq_reset
tools/virtio: Reset index in virtio_test --reset.
tools/virtio: Use tools/include/list.h instead of stubs
Jason Wang (1):
vdpa: fix typos in the comments for __vdpa_alloc_device()
drivers/vdpa/vdpa.c | 2 +-
drivers/vhost/test.c | 57 ++++++++++++++++++
driver...
2020 Apr 16
0
[PATCH v2 7/8] tools/virtio: Reset index in virtio_test --reset.
...xt_reset;
> if (random_batch)
> batch = (random() % vq->vring.num) + 1;
>
> @@ -224,10 +229,24 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq,
> }
>
> if (reset) {
> + struct vhost_vring_state s = { .index = 0 };
> +
> + vq_reset(vq, vq->vring.num, &dev->vdev);
> +
> + r = ioctl(dev->control, VHOST_GET_VRING_BASE,
> + &s);
> + assert(!r);
> +
> + s.num = 0;
> + r = ioctl(dev->control, VHOST_SET_VRING_BASE,
> + &null_state);
> + assert(!r);
> +...
2020 Apr 17
0
[PATCH v2 7/8] tools/virtio: Reset index in virtio_test --reset.
...(struct vdev_info *dev, struct vq_info *vq,
> > > }
> > >
> > > if (reset) {
> > > + struct vhost_vring_state s = { .index = 0 };
> > > +
> > > + vq_reset(vq, vq->vring.num, &dev->vdev);
> > > +
> > > + r = ioctl(dev->control, VHOST_GET_VRING_BASE,
> > > + &s);
> > > + assert(!r);
> > > +
> >...