From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlFlr-0005MH-9E for qemu-devel@nongnu.org; Sun, 11 Oct 2015 08:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlFln-0007Y3-6S for qemu-devel@nongnu.org; Sun, 11 Oct 2015 08:30:35 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:36056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlFlm-0007Xy-Ro for qemu-devel@nongnu.org; Sun, 11 Oct 2015 08:30:31 -0400 Received: by lbcao8 with SMTP id ao8so120155729lbc.3 for ; Sun, 11 Oct 2015 05:30:30 -0700 (PDT) References: <5619764F.3030304@gmail.com> From: "mar.krzeminski" Message-ID: <561A5664.8070801@gmail.com> Date: Sun, 11 Oct 2015 14:30:28 +0200 MIME-Version: 1.0 In-Reply-To: <5619764F.3030304@gmail.com> Content-Type: multipart/alternative; boundary="------------050501040601000801020705" Subject: Re: [Qemu-devel] Arm virtual machine networking problem with build for 64bit host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org Developers" Cc: Peter Maydell , Peter Crosthwaite This is a multi-part message in MIME format. --------------050501040601000801020705 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, Problem solved, there was bug in my gmac model, that cause writes outside my gmac device state structure. That leads to such (undefined) behaviour. Regards, Marcin W dniu 10.10.2015 o 22:34, mar.krzeminski pisze: > Hello, > > I have my own virtual machine (already asked some questions about that > here). > I also have my own gmac model. I am building qemu (version 2.4.0.1) > for 32 and 64 linux hosts. > The problem is with 64 bit binary. If I run as guest under qemu linux, > I could not even ping my machine. > In 32 bit version it works fine. And if I run in this 64 bit host > u-boot pingf from u-boot qorks fine. > From debugging it seems that under linux (32 bit arm) started on 64 > linux host can_receive function from my model, > is called only once when virtual machine is booting, there is no > furthers call so that is why I can not ping. > I am running qemu in this way (based on yocto scripts): > > /qemu-system-arm -kernel zImage.bin -net nic,vlan=0 -net > tap,vlan=0,ifname=tap0,script=no,downscript=no -M macine-a9 -dtb > zImage.dtb -serial null -serial null -serial null -serial mon:stdio > -serial null -nographic -smp 2 -readconfig config -m 512 --append > "ip=192.168.7.2::192.168.7.1:255.255.255.0 noinitrd > console=ttyS3,19200 earlyprintk debug=31"/ > > As there is lack of documentation (or maybe there is but I haven't got > it ), my question is where should I start debugging what is going wrong? > As for now it seems that my model does not receive ping and it is not > asked if can receive one. Situation is same when I ping from quest the > host's tap, > or from host guest machine. > > Regards, > Marcin --------------050501040601000801020705 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hello,

Problem solved, there was bug in my gmac model, that cause writes outside my gmac device state structure.
That leads to such (undefined) behaviour.

Regards,
Marcin


W dniu 10.10.2015 o 22:34, mar.krzeminski pisze:
Hello,

I have my own virtual machine (already asked some questions about that here).
I also have my own gmac model. I am building qemu (version 2.4.0.1) for 32 and 64 linux hosts.
The problem is with 64 bit binary. If I run as guest under qemu linux, I could not even ping my machine.
In 32 bit version it works fine. And if I run in this 64 bit host u-boot pingf from u-boot qorks fine.
From debugging it seems that under linux (32 bit arm) started on 64 linux host can_receive function from my model,
is called only once when virtual machine is booting, there is no furthers call so that is why I can not ping.
I am running qemu in this way (based on yocto scripts):

qemu-system-arm -kernel zImage.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M macine-a9 -dtb zImage.dtb -serial null -serial null -serial null -serial mon:stdio -serial null -nographic -smp 2 -readconfig config -m 512 --append "ip=192.168.7.2::192.168.7.1:255.255.255.0 noinitrd console=ttyS3,19200 earlyprintk debug=31"

As there is lack of documentation (or maybe there is but I haven't got it ), my question is where should I start debugging what is going wrong?
As for now it seems that my model does not receive ping and it is not asked if can receive one. Situation is same when I ping from quest the host's tap,
or from host guest machine.

Regards,
Marcin

--------------050501040601000801020705--