From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E0BD98D28 for ; Mon, 1 Feb 2016 16:54:08 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 01 Feb 2016 07:54:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,380,1449561600"; d="scan'208";a="645218157" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by FMSMGA003.fm.intel.com with ESMTP; 01 Feb 2016 07:54:06 -0800 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX108.ger.corp.intel.com (163.33.3.3) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 1 Feb 2016 15:54:05 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.102]) by irsmsx111.ger.corp.intel.com ([169.254.2.198]) with mapi id 14.03.0248.002; Mon, 1 Feb 2016 15:54:05 +0000 From: "Iremonger, Bernard" To: Yuanhan Liu , "dev@dpdk.org" Thread-Topic: [PATCH v3 0/8] vhost-user live migration support Thread-Index: AQHRWlGSfOPG/xuCcUaok8it0At+BJ8XWsxw Date: Mon, 1 Feb 2016 15:54:05 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219FACE1C@IRSMSX108.ger.corp.intel.com> References: <1450321921-27799-1-git-send-email-yuanhan.liu@linux.intel.com> <1454043483-24579-1-git-send-email-yuanhan.liu@linux.intel.com> In-Reply-To: <1454043483-24579-1-git-send-email-yuanhan.liu@linux.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTY2YjI2NzgtZjZkZC00NTMwLWJmYmQtNDI4N2VjYzBlMDVmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZW5EQ2F5WmZLUnd5bFlnOTQzelN4Wm1jQ0V6cGliNjNzdjIwb1BVZTM3MD0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Victor Kaplansky , "Michael S. Tsirkin" Subject: Re: [dpdk-dev] [PATCH v3 0/8] vhost-user live migration support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 15:54:09 -0000 Hi Yuanhan, > A simple test guide (on same host) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > The following test is based on OVS + DPDK (check [0] for how to setup OVS= + > DPDK): >=20 > [0]: http://wiki.qemu.org/Features/vhost-user-ovs-dpdk >=20 > Here is the rough test guide: >=20 > 1. start ovs-vswitchd >=20 > 2. Add two ovs vhost-user port, say vhost0 and vhost1 >=20 > 3. Start a VM1 to connect to vhost0. Here is my example: >=20 > $ $QEMU -enable-kvm -m 1024 -smp 4 \ > -chardev socket,id=3Dchar0,path=3D/var/run/openvswitch/vhost0 \ > -netdev type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > -device virtio-net-pci,netdev=3Dmynet1,mac=3D52:54:00:12:34:58 \ > -object memory-backend-file,id=3Dmem,size=3D1024M,mem- > path=3D$HOME/hugetlbfs,share=3Don \ > -numa node,memdev=3Dmem -mem-prealloc \ > -kernel $HOME/iso/vmlinuz -append "root=3D/dev/sda1" \ > -hda fc-19-i386.img \ > -monitor telnet::3333,server,nowait -curses >=20 > 4. run "ping $host" inside VM1 >=20 > 5. Start VM2 to connect to vhost0, and marking it as the target > of live migration (by adding -incoming tcp:0:4444 option) >=20 > $ $QEMU -enable-kvm -m 1024 -smp 4 \ > -chardev socket,id=3Dchar0,path=3D/var/run/openvswitch/vhost1 \ > -netdev type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > -device virtio-net-pci,netdev=3Dmynet1,mac=3D52:54:00:12:34:58 \ > -object memory-backend-file,id=3Dmem,size=3D1024M,mem- > path=3D$HOME/hugetlbfs,share=3Don \ > -numa node,memdev=3Dmem -mem-prealloc \ > -kernel $HOME/iso/vmlinuz -append "root=3D/dev/sda1" \ > -hda fc-19-i386.img \ > -monitor telnet::3334,server,nowait -curses \ > -incoming tcp:0:4444 >=20 > 6. connect to VM1 monitor, and start migration: >=20 > > migrate tcp:0:4444 >=20 > 7. After a while, you will find that VM1 has been migrated to VM2, > and the "ping" command continues running, perfectly. >=20 The above test guide should probably be added to the DPDK doc files. It could be added to the sample app guide or the programmers guide. There is already a Vhost Library section in the programmers guide and a Vhost Sample Application section in the sample app guide. The Vhost Sample Application section might be the best place to add it. It would be useful to add some documentation on the Vhost Logging feature I= tself.=20 Regards, Bernard.