From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5tbC-0005UD-Hs for qemu-devel@nongnu.org; Fri, 09 Mar 2012 01:46:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5tbA-00020O-6z for qemu-devel@nongnu.org; Fri, 09 Mar 2012 01:46:46 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:55150 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5tb9-00020B-Sj for qemu-devel@nongnu.org; Fri, 09 Mar 2012 01:46:44 -0500 Date: Fri, 9 Mar 2012 07:41:45 +0100 (CET) From: Gerhard Wiesinger In-Reply-To: <1331134726-6634-1-git-send-email-dmitry.fleytman@ravellosystems.com> Message-ID: References: <1331134726-6634-1-git-send-email-dmitry.fleytman@ravellosystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] [PATCH v3] VMXNET3 paravirtual NIC device implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitry Fleytman Cc: Anthony Liguori , Alex Fishman , "Michael S. Tsirkin" , Izik Eidus , qemu-devel@nongnu.org, Yan Vugenfirer , Avi Kivity Hello Dmitry, Issue is solved in V3 but I'm still having problems (core dumps) with qemu and qemu-kvm: 1.) qemu crashes works well with basic ping tests but with generating load on the network interface (my standard netio tests (netio -s, netio -t server), http://www.ars.de/ars/ars.nsf/docs/netio) under same Knoppix testcase cores. Details are below. Also performance as far as the test runs was not high (should be >50000 kByte/s): Packet size 1k bytes: 4181 KByte/s Tx, 5276 KByte/s Rx. Details below. 2.) qemu-kvm core dump on startup, core dump details below -device vmxnet3,mac=1a:46:0b:ca:bc:7e,vlan=1,romfile= -net tap,ifname=tap1,script=no,downscript=no,vlan=1 kvm_msix_vector_add: kvm_add_msix failed: No space left on device [vmxnet3][WR][vmxnet3_use_msix_vectors]: Failed to use MSI-X vector 9, error -28 [vmxnet3][WR][vmxnet3_init_msix]: Failed to use MSI-X vectors, error 0 qemu: hardware error: Failed to initialize MSI-X, configuration is inconsistent. Any ideas? Can you please retest this scenario. Please add Reported-by lines ... Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ 1.) qemu backtrace [vmxnet3][WR][vmxnet3_peer_has_vnet_hdr]: Peer has no virtio extension. Task offloads will be emulated. qemu-system-x86_64: /root/download/qemu/git/qemu/hw/vmxnet_utils.c:186: eth_setup_ip4_fragmentation: Assertion `0 == frag_offset % (8)' failed. #0 0x00007f5f53c03285 in raise () from /lib64/libc.so.6 #1 0x00007f5f53c04b9b in abort () from /lib64/libc.so.6 #2 0x00007f5f53bfbe9e in __assert_fail_base () from /lib64/libc.so.6 #3 0x00007f5f53bfbf42 in __assert_fail () from /lib64/libc.so.6 #4 0x00007f5f564ce378 in eth_setup_ip4_fragmentation (l2hdr=, l2hdr_len=, l3hdr=, l3hdr_len=, l3payload_len=, frag_offset=, more_frags=false) at /root/download/qemu/git/qemu/hw/vmxnet_utils.c:186 #5 0x00007f5f564cd325 in vmxnet3_txpkt_do_sw_fragmentation (s=0x7f5f57c340a0, p=0x7f5f57c35340) at /root/download/qemu/git/qemu/hw/vmxnet3.c:955 #6 0x00007f5f564cdac1 in vmxnet3_send_with_sw_offloads (pkt=, s=0x7f5f57c340a0) at /root/download/qemu/git/qemu/hw/vmxnet3.c:985 #7 vmxnet3_send_packet (qidx=0, pkt=, s=) at /root/download/qemu/git/qemu/hw/vmxnet3.c:1231 #8 vmxnet3_process_tx_queue (qidx=, s=) at /root/download/qemu/git/qemu/hw/vmxnet3.c:1306 #9 vmxnet3_io_bar0_write (opaque=, addr=, val=, size=) at /root/download/qemu/git/qemu/hw/vmxnet3.c:1630 #10 0x00007f5f56575ba0 in access_with_adjusted_size (addr=1536, value=0x7f5f3144e7e0, size=4, access_size_min=, access_size_max=, access=0x7f5f56575ac0 , opaque=0x7f5f57c344d0) at /root/download/qemu/git/qemu/memory.c:359 #11 0x00007f5f5657a6ec in memory_region_dispatch_write (size=4, data=39, addr=1536, mr=0x7f5f57c344d0) at /root/download/qemu/git/qemu/memory.c:928 #12 io_mem_write (io_index=, addr=1536, val=, size=4) at /root/download/qemu/git/qemu/memory.c:1512 #13 0x0000000049463183 in ?? () #14 0x0000000000000000 in ?? () 2.) qemu-kvm backtrace #0 0x00007f25e4330285 in raise () from /lib64/libc.so.6 #1 0x00007f25e4331b9b in abort () from /lib64/libc.so.6 #2 0x00007f25e6c6fe7a in hw_error (fmt=) at /root/download/qemu/git/qemu-kvm/cpus.c:357 #3 0x00007f25e6bf1f01 in vmxnet3_pci_init (dev=0x7f25e8dced80) at /root/download/qemu/git/qemu-kvm/hw/vmxnet3.c:2631 #4 0x00007f25e6ce01c6 in pci_qdev_init (qdev=0x7f25e8dced80) at /root/download/qemu/git/qemu-kvm/hw/pci.c:1589 #5 0x00007f25e6c14d4a in qdev_init (dev=0x7f25e8dced80) at /root/download/qemu/git/qemu-kvm/hw/qdev.c:150 #6 0x00007f25e6c1024e in qdev_device_add (opts=0x7f25e8ccdb80) at /root/download/qemu/git/qemu-kvm/hw/qdev-monitor.c:465 #7 0x00007f25e6bebff9 in device_init_func (opts=, opaque=) at /root/download/qemu/git/qemu-kvm/vl.c:1827 #8 0x00007f25e6c1e492 in qemu_opts_foreach (list=, func=0x7f25e6bebfe0 , opaque=0x0, abort_on_failure=) at qemu-option.c:1053 #9 0x00007f25e6b184b5 in main (argc=, argv=, envp=) at /root/download/qemu/git/qemu-kvm/vl.c:3543 On Wed, 7 Mar 2012, Dmitry Fleytman wrote: > Changes in V3: > Fixed crash when net device that is used as network fronted has no > virtio HDR support. > Task offloads emulation for cases when net device that is used as > network fronted has no virtio HDR support. > Changes in V2: > License text changed accoring to community suggestions > Standard license header from GPLv2+ - licensed QEMU files used > > Dmitry Fleytman (1): > VMXNET3 paravirtual NIC device implementation > > Makefile.objs | 1 + > default-configs/pci.mak | 1 + > hw/pci.c | 2 + > hw/pci.h | 1 + > hw/virtio-net.h | 13 +- > hw/vmware_utils.h | 131 +++ > hw/vmxnet3.c | 2744 +++++++++++++++++++++++++++++++++++++++++++++++ > hw/vmxnet3.h | 727 +++++++++++++ > hw/vmxnet3_debug.h | 104 ++ > hw/vmxnet_utils.c | 202 ++++ > hw/vmxnet_utils.h | 263 +++++ > iov.c | 27 + > iov.h | 3 + > net.c | 2 +- > net/checksum.h | 7 + > 15 files changed, 4221 insertions(+), 7 deletions(-) > create mode 100644 hw/vmware_utils.h > create mode 100644 hw/vmxnet3.c > create mode 100644 hw/vmxnet3.h > create mode 100644 hw/vmxnet3_debug.h > create mode 100644 hw/vmxnet_utils.c > create mode 100644 hw/vmxnet_utils.h > > -- > 1.7.7.6 > > >