dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: Linhaifeng <haifeng.lin-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: "Xu, Qian Q" <qian.q.xu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"Xie,
	Huawei" <huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "liuyongan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org"
	<liuyongan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
	"dev-VfR2kkLFssw@public.gmane.org"
	<dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: [PATCH] vhost: notify guest to fill buffer when there is	no buffer
Date: Fri, 6 Feb 2015 12:02:23 +0800	[thread overview]
Message-ID: <54D43CCF.1000509@huawei.com> (raw)
In-Reply-To: <82F45D86ADE5454A95A89742C8D1410E01CA3873-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>



On 2015/2/4 9:38, Xu, Qian Q wrote:
> 4. Launch the VM1 and VM2 with virtio device, note: you need use qemu version>2.1 to enable the vhost-user server's feature. Old qemu such as 1.5,1.6 didn't support it.
> Below is my VM1 startup command, for your reference, similar for VM2. 
> /home/qemu-2.2.0/x86_64-softmmu/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc -smp 2 -drive file=/home/img/dpdk1-vm1.img -chardev socket,id=char0,path=/home/dpdk-vhost/vhost-net -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce -device virtio-net-pci,mac=00:00:00:00:00:01, -nographic
> 
> 5. Then in the VM, you can have the same operations as before, send packet from virtio1 to virtio2. 
> 
> Pls let me know if any questions, issues. 

Hi xie & xu

When I try to start VM vhost-switch crashed.

VHOST_CONFIG: read message VHOST_USER_SET_MEM_TABLE
VHOST_CONFIG: mapped region 0 fd:19 to 0xffffffffffffffff sz:0xa0000 off:0x0
VHOST_CONFIG: mmap qemu guest failed.
VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
run_dpdk_vhost.sh: line 19:  1854 Segmentation fault      ${RTE_SDK}/examples/vhost/build/app/vhost-switch -c 0x300 -n 4 --huge-dir /dev/hugepages -m 2048 -- -p 0x1 --vm2vm 2 --mergeable 0 --zero-copy 0



-- 
Regards,
Haifeng

  parent reply	other threads:[~2015-02-06  4:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 10:30 [PATCH] vhost: notify guest to fill buffer when there is no buffer linhaifeng
     [not found] ` <1422527404-12424-1-git-send-email-haifeng.lin-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-29 10:39   ` Xie, Huawei
     [not found]     ` <C37D651A908B024F974696C65296B57B0F376EE2-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-29 12:39       ` Linhaifeng
     [not found]         ` <54CA29F4.8080108-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-29 13:00           ` Xie, Huawei
     [not found]             ` <C37D651A908B024F974696C65296B57B0F377362-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-29 13:50               ` Linhaifeng
     [not found]                 ` <54CA3ABF.3010203-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-30  8:20                   ` Xu, Qian Q
     [not found]                     ` <82F45D86ADE5454A95A89742C8D1410E01C9FC50-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-30 10:33                       ` Linhaifeng
2015-02-01  6:04                       ` Linhaifeng
     [not found]                         ` <82F45D86ADE5454A95A89742C8D1410E01CA1DA3@shsmsx102.ccr.corp.intel.com>
     [not found]                           ` <54CF6BB3.7080002@huawei.com>
     [not found]                             ` <C37D651A908B024F974696C65296B57B0F37C3F7@SHSMSX101.ccr.corp.intel.com>
     [not found]                               ` <54D08AFA.2030404@huawei.com>
     [not found]                                 ` <82F45D86ADE5454A95A89742C8D1410E01CA3197@shsmsx102.ccr.corp.intel.com>
     [not found]                                   ` <54D0926D.9010304@huawei.com>
     [not found]                                     ` <54D0926D.9010304-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-04  1:38                                       ` Xu, Qian Q
     [not found]                                         ` <82F45D86ADE5454A95A89742C8D1410E01CA3873-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-06  4:02                                           ` Linhaifeng [this message]
     [not found]                                             ` <54D43CCF.1000509-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-06  5:54                                               ` Xu, Qian Q
     [not found]                                                 ` <82F45D86ADE5454A95A89742C8D1410E01CB7717-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-06 11:02                                                   ` Linhaifeng
2015-02-07  4:26                                                   ` Linhaifeng
     [not found]                                                     ` <54D593F9.4070200-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-09  2:57                                                       ` Xu, Qian Q
     [not found]                                                         ` <82F45D86ADE5454A95A89742C8D1410E01CBABBB-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-09  4:11                                                           ` Linhaifeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54D43CCF.1000509@huawei.com \
    --to=haifeng.lin-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=liuyongan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=qian.q.xu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).