From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tyo201.gate.nec.co.jp (TYO201.gate.nec.co.jp [210.143.35.51]) by dpdk.org (Postfix) with ESMTP id 178F01FE for ; Tue, 15 Jul 2014 02:00:59 +0200 (CEST) Received: from mailgate3.nec.co.jp ([10.7.69.195]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id s6F01X8g004918; Tue, 15 Jul 2014 09:01:33 +0900 (JST) Received: from mailsv3.nec.co.jp (imss61.nec.co.jp [10.7.69.156]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id s6F01Xa19368; Tue, 15 Jul 2014 09:01:33 +0900 (JST) Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv3.nec.co.jp (8.13.8/8.13.4) with ESMTP id s6F01XCb008714; Tue, 15 Jul 2014 09:01:33 +0900 (JST) Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.141] [10.38.151.141]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-539696; Tue, 15 Jul 2014 09:01:15 +0900 Received: from BPXM14GP.gisp.nec.co.jp ([169.254.1.238]) by BPXC13GP.gisp.nec.co.jp ([10.38.151.141]) with mapi id 14.02.0328.011; Tue, 15 Jul 2014 09:01:14 +0900 From: Hiroshi Shimamoto To: Srinivas Reddi , "dev@dpdk.org" Thread-Topic: MENNIC1.2 host-sim crashed for me Thread-Index: Ac+fTMUAzySYOBvfTyqMuy1ry+oBHAAchlJQ Date: Tue, 15 Jul 2014 00:01:14 +0000 Message-ID: <7F861DC0615E0C47A872E6F3C5FCDDBD01150C89@BPXM14GP.gisp.nec.co.jp> References: <97f38ab32ebb49759fb699b4bc23e623@GURMBXV02.AD.ARICENT.COM> In-Reply-To: <97f38ab32ebb49759fb699b4bc23e623@GURMBXV02.AD.ARICENT.COM> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.205.5.123] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] MENNIC1.2 host-sim crashed for me 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: Tue, 15 Jul 2014 00:01:01 -0000 Hi, > Subject: [dpdk-dev] MENNIC1.2 host-sim crashed for me >=20 > Hi, > I want to run MEMNIC 1.2 application . >=20 > 1. I compiled DPDK1.6 >=20 > 2. I compiled memnic.12 >=20 > 3. And while running memnic-hostsim app got strucked >=20 > 4. >=20 > 5. [root@localhost host-sim]# ./memnic-host-sim /dev/shm/ivshm >=20 > Bus error (core dumped) >=20 >=20 >=20 > Core was generated by `./memnic-host-sim /dev/shm/ivshm'. >=20 > Program terminated with signal SIGBUS, Bus error. >=20 > #0 0x0000003a82e894e4 in memset () from /lib64/libc.so.6 >=20 > Missing separate debuginfos, use: debuginfo-install glibc-2.18-11.fc20.x8= 6_64 >=20 > (gdb) bt >=20 > #0 0x0000003a82e894e4 in memset () from /lib64/libc.so.6 >=20 > #1 0x00000000004008a3 in init_memnic (nic=3D0x7ffff6fe2000) at host-sim.= c:55 >=20 > #2 0x0000000000400a8a in main (argc=3D2, argv=3D0x7fffffffe4a8) at host-= sim.c:106 >=20 > (gdb) >=20 >=20 >=20 >=20 >=20 > Got error at line 55 .. saying nic is read only.. I have never tried host-sim yet though. I guess it's the cause that host-sim doesn't increase the shared memory siz= e. Could you try booting qemu first with -device ivshmem,size=3D16,shm=3D/ivsh= m then run host-sim? thanks, Hiroshi >=20 >=20 >=20 > 53 static void init_memnic(struct memnic_area *nic) >=20 > 54 { >=20 > 55 memset(nic, 0, sizeof(*nic)); >=20 > 56 nic->hdr.magic =3D MEMNIC_MAGIC; >=20 > 57 nic->hdr.version =3D MEMNIC_VERSION; >=20 > 58 /* 00:09:c0:00:13:37 */ >=20 > 59 nic->hdr.mac_addr[0] =3D 0x00; >=20 > 60 nic->hdr.mac_addr[1] =3D 0x09; >=20 > 61 nic->hdr.mac_addr[2] =3D 0xc0; >=20 > 62 nic->hdr.mac_addr[3] =3D 0x00; >=20 > 63 nic->hdr.mac_addr[4] =3D 0x13; >=20 > 64 nic->hdr.mac_addr[5] =3D 0x37; >=20 > 65 } >=20 >=20 >=20 > Thanks, >=20 > Srinivas. >=20 > "DISCLAIMER: This message is proprietary to Aricent and is intended solel= y for the use of the individual to whom it is > addressed. It may contain privileged or confidential information and shou= ld not be circulated or used for any purpose > other than for what it is intended. If you have received this message in = error, please notify the originator immediately. > If you are not the intended recipient, you are notified that you are stri= ctly prohibited from using, copying, altering, > or disclosing the contents of this message. Aricent accepts no responsibi= lity for loss or damage arising from the use > of the information transmitted by this email including damage from virus.= "