Re: [Qemu-devel] [PATCH v1 13/16] virtio: add vhost-net migration of packed ring

2019-01-16 Thread Wei Xu
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; > >

Re: [Qemu-devel] [PATCH v1 13/16] virtio: add vhost-net migration of packed ring

2018-11-28 Thread Maxime Coquelin
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; + /*

Re: [Qemu-devel] [PATCH v1 13/16] virtio: add vhost-net migration of packed ring

2018-11-28 Thread Maxime Coquelin
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; + /*

[Qemu-devel] [PATCH v1 13/16] virtio: add vhost-net migration of packed ring

2018-11-22 Thread wexu
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