From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [PATCH 00/17] kvm-unit-tests/arm: initial drop Date: Wed, 29 Jan 2014 16:35:47 +0100 Message-ID: <20140129153547.GA18151@hawk.usersys.redhat.com> References: <1390321323-1855-1-git-send-email-drjones@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org To: =?iso-8859-1?Q?Mar=EDa?= Soler Heredia Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56949 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751947AbaA2PgH (ORCPT ); Wed, 29 Jan 2014 10:36:07 -0500 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 28, 2014 at 07:16:11PM +0100, Mar=EDa Soler Heredia wrote: > Hello Andrew, >=20 > I have been experimenting a little with your tests and I have some co= mments > and questions. I have already compiled and run versions v1 and v2, wh= ich > work with kvm disabled, but I cannot run v3 using the same qemu, vers= ion > 1.6.90 with these two sets of patches: >=20 > - http://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg02142= =2Ehtml(Adds > 'virt' platform) > - http://lists.nongnu.org/archive/html/qemu-devel/2013-10/msg01815= =2Ehtml(Introduces > virtio-testdev) >=20 > that you indicated on [PATCH 0/9] kvm-unit-tests/arm: initial drop. >=20 > > Only qemu-system-arm, recent enough to have mach-virt, and the > > virtio-testdev patch[1], > > is required. > > > > [1] http://lists.nongnu.org/archive/html/qemu-devel/2013-12/msg0069= 0.html > > >=20 > Then I thought maybe the problem was that my qemu was too old, so I > upgraded to version 1.7.50, the newest available version at git:// > git.qemu-project.org/qemu.git and applied patch[1] but it seems to be > incompatible with that version of qemu, since it doesn't compile: > ---------------------------------------------------------------------= ---------------------------------------------------------------------- > hw/virtio/virtio-testdev.c: In function 'virtio_testdev_class_init': > hw/virtio/virtio-testdev.c:136:8: error: 'VirtioDeviceClass' has no m= ember > named 'init' > ---------------------------------------------------------------------= ---------------------------------------------------------------------- The latest git://git.qemu.org/qemu.git with the v3 of virtio-testdev th= at I just sent[*] works for me. virtio-testdev needed to be converted from= init to realize. [*] http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg04041.ht= ml >=20 > I modified hw/virtio/virtio-testdev.c to stop this error from happeni= ng, > but it won't run the already compiled (with qemu 1.6.90) v1 and v2 or= make > a runnable version of either v1, v2 or v3 when recompiling them. >=20 > The error that I get when I run the v3 of the test (with qemu 1.6.90)= is as > follows: >=20 > $ ./run_tests.sh -v > ./arm-run arm/selftest.flat -smp 1 -m 256 -append 'mem 256' > qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000 >=20 > R00=3Dfffffff7 R01=3D00000000 R02=3D00000000 R03=3D2ff20112 > R04=3D00000000 R05=3D00000000 R06=3D00000000 R07=3D00000000 > R08=3D00000000 R09=3D00000000 R10=3D00000000 R11=3D00000000 > R12=3D00000000 R13=3D40017ff8 R14=3D080117b0 R15=3D00000000 > PSR=3Da00001d3 N-C- A svc32 > s00=3D00000000 s01=3D00000000 d00=3D0000000000000000 > ... > s62=3D00000000 s63=3D00000000 d31=3D0000000000000000 > FPSCR: 00000000 > ./arm-run: line 16: 4839 Aborted (core dumped) $comm= and > "$@" > FAIL selftest_mem > ./arm-run arm/selftest.flat -smp 1 -append 'vectors' > qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000 >=20 > R00=3Dfffffff7 R01=3D00000000 R02=3D00000000 R03=3D2ff20112 > R04=3D00000000 R05=3D00000000 R06=3D00000000 R07=3D00000000 > R08=3D00000000 R09=3D00000000 R10=3D00000000 R11=3D00000000 > R12=3D00000000 R13=3D40017ff8 R14=3D080117b0 R15=3D00000000 > PSR=3Da00001d3 N-C- A svc32 > s00=3D00000000 s01=3D00000000 d00=3D0000000000000000 > ... > s62=3D00000000 s63=3D00000000 d31=3D0000000000000000 > FPSCR: 00000000 > ./arm-run: line 16: 4845 Aborted (core dumped) $comm= and > "$@" > FAIL selftest_vectors > ./arm-run arm/selftest.flat -smp 1 -append 'vectors_usr' > qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000 >=20 > R00=3Dfffffff7 R01=3D00000000 R02=3D00000000 R03=3D2ff20112 > R04=3D00000000 R05=3D00000000 R06=3D00000000 R07=3D00000000 > R08=3D00000000 R09=3D00000000 R10=3D00000000 R11=3D00000000 > R12=3D00000000 R13=3D40017ff8 R14=3D080117b0 R15=3D00000000 > PSR=3Da00001d3 N-C- A svc32 > s00=3D00000000 s01=3D00000000 d00=3D0000000000000000 > ... > s62=3D00000000 s63=3D00000000 d31=3D0000000000000000 > FPSCR: 00000000 > ./arm-run: line 16: 4851 Aborted (core dumped) $comm= and > "$@" > FAIL selftest_vectors_usr >=20 > Am I using the wrong qemu? Is there a new dependency that is not ment= ioned > and that may cause this problem? Any other ideas on why this could ha= ppen? Are you sure you have the latest mach-virt patches for qemu? v3 of kvm-unit-tests/arm sets the load address to 0x40000000, which matches t= he latest mach-virt. I can run these tests on my x86_64 machine, without kvm enabled, as wel= l as on an armv7 machine with kvm enabled. Are you still running on the =46astModel? I never got around to setting one up to see if that works = or not. thanks, drew