On Wed, Nov 28, 2018 at 11:34:46AM +0100, Maxime Coquelin wrote:
>
>
> On 11/22/18 3:06 PM, w...@redhat.com wrote:
> >From: Wei Xu
> >
> >tweaked vhost-net code to test migration.
> >
> >@@ -1414,64 +1430,20 @@ long vhost_vring_ioctl(struct vhost_dev
> > r = -EFAULT;
> >
On 11/22/18 3:06 PM, w...@redhat.com wrote:
From: Wei Xu
tweaked vhost-net code to test migration.
@@ -1414,64 +1430,20 @@ long vhost_vring_ioctl(struct vhost_dev
r = -EFAULT;
break;
}
+ vq->last_avail_idx = s.num & 0x7FFF;
+ /*
On 11/22/18 3:06 PM, w...@redhat.com wrote:
From: Wei Xu
tweaked vhost-net code to test migration.
@@ -1414,64 +1430,20 @@ long vhost_vring_ioctl(struct vhost_dev
r = -EFAULT;
break;
}
+ vq->last_avail_idx = s.num & 0x7FFF;
+ /*
From: Wei Xu
tweaked vhost-net code to test migration.
@@ -1414,64 +1430,20 @@ long vhost_vring_ioctl(struct vhost_dev
r = -EFAULT;
break;
}
+ vq->last_avail_idx = s.num & 0x7FFF;
+ /* Forget the cached index value. */
+ v