public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <drjones@redhat.com>
To: "María Soler Heredia" <maria.solher@gmail.com>
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org
Subject: Re: [PATCH 00/17] kvm-unit-tests/arm: initial drop
Date: Wed, 29 Jan 2014 16:35:47 +0100	[thread overview]
Message-ID: <20140129153547.GA18151@hawk.usersys.redhat.com> (raw)
In-Reply-To: <CABWnSnPMc_CrH8N28TScBVvQmCk+XD-bVWvdmJAxxVczHsVx_g@mail.gmail.com>

On Tue, Jan 28, 2014 at 07:16:11PM +0100, María Soler Heredia wrote:
> Hello Andrew,
> 
> I have been experimenting a little with your tests and I have some comments
> and questions. I have already compiled and run versions v1 and v2, which
> work with kvm disabled, but I cannot run v3 using the same qemu, version
> 1.6.90 with these two sets of patches:
> 
>    - http://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg02142.html(Adds
> 'virt' platform)
>    - http://lists.nongnu.org/archive/html/qemu-devel/2013-10/msg01815.html(Introduces
> virtio-testdev)
> 
> that you indicated on [PATCH 0/9] kvm-unit-tests/arm: initial drop.
> 
> >  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/msg00690.html
> >
> 
> 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 member
> named 'init'
> -------------------------------------------------------------------------------------------------------------------------------------------

The latest git://git.qemu.org/qemu.git with the v3 of virtio-testdev that
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.html

> 
> I modified hw/virtio/virtio-testdev.c to stop this error from happening,
> 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.
> 
> The error that I get when I run the v3 of the test (with qemu 1.6.90) is as
> follows:
> 
> $ ./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
> 
> R00=fffffff7 R01=00000000 R02=00000000 R03=2ff20112
> R04=00000000 R05=00000000 R06=00000000 R07=00000000
> R08=00000000 R09=00000000 R10=00000000 R11=00000000
> R12=00000000 R13=40017ff8 R14=080117b0 R15=00000000
> PSR=a00001d3 N-C- A svc32
> s00=00000000 s01=00000000 d00=0000000000000000
> ...
> s62=00000000 s63=00000000 d31=0000000000000000
> FPSCR: 00000000
> ./arm-run: line 16:  4839 Aborted                 (core dumped) $command
> "$@"
> FAIL selftest_mem
> ./arm-run arm/selftest.flat -smp 1 -append 'vectors'
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000
> 
> R00=fffffff7 R01=00000000 R02=00000000 R03=2ff20112
> R04=00000000 R05=00000000 R06=00000000 R07=00000000
> R08=00000000 R09=00000000 R10=00000000 R11=00000000
> R12=00000000 R13=40017ff8 R14=080117b0 R15=00000000
> PSR=a00001d3 N-C- A svc32
> s00=00000000 s01=00000000 d00=0000000000000000
> ...
> s62=00000000 s63=00000000 d31=0000000000000000
> FPSCR: 00000000
> ./arm-run: line 16:  4845 Aborted                 (core dumped) $command
> "$@"
> 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
> 
> R00=fffffff7 R01=00000000 R02=00000000 R03=2ff20112
> R04=00000000 R05=00000000 R06=00000000 R07=00000000
> R08=00000000 R09=00000000 R10=00000000 R11=00000000
> R12=00000000 R13=40017ff8 R14=080117b0 R15=00000000
> PSR=a00001d3 N-C- A svc32
> s00=00000000 s01=00000000 d00=0000000000000000
> ...
> s62=00000000 s63=00000000 d31=0000000000000000
> FPSCR: 00000000
> ./arm-run: line 16:  4851 Aborted                 (core dumped) $command
> "$@"
> FAIL selftest_vectors_usr
> 
> Am I using the wrong qemu? Is there a new dependency that is not mentioned
> and that may cause this problem? Any other ideas on why this could happen?

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 the
latest mach-virt.

I can run these tests on my x86_64 machine, without kvm enabled, as well as
on an armv7 machine with kvm enabled. Are you still running on the
FastModel? I never got around to setting one up to see if that works or not.

thanks,
drew

  parent reply	other threads:[~2014-01-29 15:36 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21 16:21 [PATCH 00/17] kvm-unit-tests/arm: initial drop Andrew Jones
2014-01-21 16:21 ` [PATCH 01/17] remove unused files Andrew Jones
2014-01-21 16:21 ` [PATCH 02/17] makefile and run_tests tweaks Andrew Jones
2014-01-21 16:21 ` [PATCH 03/17] clean root dir of all x86-ness Andrew Jones
2014-01-21 16:21 ` [PATCH 04/17] gitignore: Ignore more Andrew Jones
2014-01-21 16:21 ` [PATCH 05/17] add 'make cscope' support Andrew Jones
2014-02-02  2:22   ` Christoffer Dall
2014-02-03 13:25     ` Andrew Jones
2014-01-21 16:21 ` [PATCH 06/17] Add halt() and some error codes Andrew Jones
2014-02-02  2:23   ` Christoffer Dall
2014-01-21 16:21 ` [PATCH 07/17] move x86's simple heap management to common code Andrew Jones
2014-02-02  2:23   ` Christoffer Dall
2014-01-21 16:21 ` [PATCH 08/17] Introduce libio to common code for io read/write Andrew Jones
2014-02-02  2:24   ` Christoffer Dall
2014-02-03 13:51     ` Andrew Jones
2014-02-03 16:30       ` Christoffer Dall
2014-01-21 16:21 ` [PATCH 10/17] libfdt: get libfdt to build Andrew Jones
2014-02-02  2:25   ` Christoffer Dall
2014-02-03 13:57     ` Andrew Jones
2014-01-21 16:21 ` [PATCH 11/17] add support for device trees Andrew Jones
2014-02-02  2:27   ` Christoffer Dall
2014-02-03 15:31     ` Andrew Jones
2014-02-03 16:36       ` Christoffer Dall
2014-01-21 16:21 ` [PATCH 12/17] Introduce virtio-testdev Andrew Jones
2014-02-02  2:27   ` Christoffer Dall
2014-02-03 15:44     ` Andrew Jones
2014-02-03 16:41       ` Christoffer Dall
2014-01-21 16:21 ` [PATCH 13/17] arm: initial drop Andrew Jones
2014-02-02  2:28   ` Christoffer Dall
2014-02-03 15:55     ` Andrew Jones
2014-01-21 16:22 ` [PATCH 14/17] arm: Add IO accessors to avoid register-writeback Andrew Jones
2014-01-21 16:22 ` [PATCH 15/17] printf: support field padding Andrew Jones
2014-02-02  2:28   ` Christoffer Dall
2014-01-21 16:22 ` [PATCH 16/17] arm: add useful headers from the linux kernel Andrew Jones
2014-02-02  2:29   ` Christoffer Dall
2014-02-03 16:46     ` Andrew Jones
2014-02-03 17:38       ` Christoffer Dall
2014-01-21 16:22 ` [PATCH 17/17] arm: vectors support Andrew Jones
2014-02-02  2:29   ` Christoffer Dall
2014-02-03 16:50     ` Andrew Jones
2014-02-03 21:19       ` Christoffer Dall
2014-02-04  7:12         ` Andrew Jones
     [not found] ` <CABWnSnPMc_CrH8N28TScBVvQmCk+XD-bVWvdmJAxxVczHsVx_g@mail.gmail.com>
2014-01-29 15:35   ` Andrew Jones [this message]
2014-02-02  2:22 ` [PATCH 00/17] kvm-unit-tests/arm: initial drop Christoffer Dall
2014-02-03 13:24   ` Andrew Jones
     [not found]     ` <CALxX4v-h+gOCZDukCnGK_GUQepu07KYw4BGjzjGNgA0SdDcLNw@mail.gmail.com>
2014-02-04  8:33       ` Andrew Jones
     [not found] ` <1390321323-1855-10-git-send-email-drjones@redhat.com>
2014-02-02  2:25   ` [PATCH 09/17] libfdt: Import libfdt source Christoffer Dall

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=20140129153547.GA18151@hawk.usersys.redhat.com \
    --to=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=maria.solher@gmail.com \
    /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