Re: [Qemu-devel] [QA-virtio]:Why vring size is limited to 1024?

2014-10-08 Thread Zhangjie (HZ)
On 2014/10/8 15:43, Avi Kivity wrote: >> > > You could separate maximum request scatter/gather list size from the > virtqueue size. They are totally unrelated - even now you can have a larger > request by using indirect descriptors. Yes, there is no strong correlation between virtqueue size a

Re: [Qemu-devel] [QA-virtio]:Why vring size is limited to 1024?

2014-10-08 Thread Zhangjie (HZ)
MST, Thanks very much, I get it. On 2014/10/8 15:37, Michael S. Tsirkin wrote: > On Wed, Oct 08, 2014 at 03:17:56PM +0800, Zhangjie (HZ) wrote: >> Thanks for your patient answer! :-) >> >> On 2014/9/30 17:33, Michael S. Tsirkin wrote: >>> On Tue, Sep 30, 2014 at

Re: [Qemu-devel] [QA-virtio]:Why vring size is limited to 1024?

2014-10-08 Thread Zhangjie (HZ)
Thanks for your patient answer! :-) On 2014/9/30 17:33, Michael S. Tsirkin wrote: > On Tue, Sep 30, 2014 at 04:36:00PM +0800, Zhangjie (HZ) wrote: >> Hi, >> There exits packets loss when we do packet forwarding in VM, >> especially when we use dpdk to do the forwarding. By e

[Qemu-devel] [QA-virtio]:Why vring size is limited to 1024?

2014-09-30 Thread Zhangjie (HZ)
Hi, There exits packets loss when we do packet forwarding in VM, especially when we use dpdk to do the forwarding. By enlarging vring can alleviate the problem. But now vring size is limited to 1024 as follows: VirtQueue *virtio_add_queue(VirtIODevice *vdev, int queue_size,

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-09-05 Thread Zhangjie (HZ)
On 2014/9/1 16:18, Michael S. Tsirkin wrote: > On Fri, Aug 29, 2014 at 06:40:24PM +0800, Zhangjie (HZ) wrote: >> >> >> On 2014/8/27 20:59, Michael S. Tsirkin wrote: >>> On Thu, Aug 21, 2014 at 03:42:53PM +0800, Zhangjie (HZ) wrote: >>>> On 2014/8/21 14

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-29 Thread Zhangjie (HZ)
On 2014/8/27 20:59, Michael S. Tsirkin wrote: > On Thu, Aug 21, 2014 at 03:42:53PM +0800, Zhangjie (HZ) wrote: >> On 2014/8/21 14:53, Jason Wang wrote: >>> On 08/21/2014 02:28 PM, Zhangjie (HZ) wrote: >>>> >>>> After migration, vhost is not disabled, vi

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-21 Thread Zhangjie (HZ)
On 2014/8/21 14:53, Jason Wang wrote: > On 08/21/2014 02:28 PM, Zhangjie (HZ) wrote: >> >> After migration, vhost is not disabled, virtual nic became unreachable >> because vhost is not awakened. >> By the logical of EVENT_IDX, virtio-net will not kick vhost again

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-21 Thread Zhangjie (HZ)
On 2014/8/21 5:21, Michael S. Tsirkin wrote: > On Wed, Aug 20, 2014 at 12:18:33PM +0200, Michael S. Tsirkin wrote: >>> Because of vhost_net_set_vq_index, VM can be start successfully. >>> But, after about 80 times of migration under my environment, virtual nic >>> became unreachable again. >>> Whe

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-20 Thread Zhangjie (HZ)
On 2014/8/21 12:29, Jason Wang wrote: > On 08/20/2014 05:23 PM, Zhangjie (HZ) wrote: >> On 2014/8/19 12:56, Jason Wang wrote: >>> commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue >> call it before setting >>> Zhang Jie, please test this p

Re: [Qemu-devel] [PATCH V3] vhost_net: start/stop guest notifiers properly

2014-08-20 Thread Zhangjie (HZ)
On 2014/8/19 12:56, Jason Wang wrote: > commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue call it before setting > Zhang Jie, please test this patch to see if it fixes the issue. > +static void vhost_net_set_vq_index(struct vhost_net *net, int vq_index) > +{ > +net->dev.vq_ind

Re: [Qemu-devel] [PATCH] vhost_net: start/stop guest notifiers properly

2014-08-18 Thread Zhangjie (HZ)
On 2014/8/18 17:51, Jason Wang wrote: > commit a9f98bb5ebe6fb1869321dcc58e72041ae626ad8 vhost: multiqueue > support changed the order of stopping the device. Previously > vhost_dev_stop would disable backend and only afterwards, unset guest > notifiers. We now unset guest notifiers while vhost is

[Qemu-devel] Error occurs when "make efirom" in the patch "qemu/roms/"

2014-04-01 Thread Zhangjie (HZ)
Hi! I have trouble to build pex in qemu. When I run "make efirom" in the path qemu/roms/ I get errors as follows: arch/x86/core/x86_tcpip.c: Assembler messages: arch/x86/core/x86_tcpip.c:101: Error: no such instruction: `lodsll' arch/x86/core/x86_tcpip.c:103: Error: no such instruction: `lodsll'