kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "María Soler Heredia" <maria.solher@gmail.com>
To: kvm@vger.kernel.org
Subject: Re: [PATCH 0/9] kvm-unit-tests/arm: initial drop
Date: Wed, 20 Nov 2013 23:06:11 +0000 (UTC)	[thread overview]
Message-ID: <loom.20131121T000607-850@post.gmane.org> (raw)
In-Reply-To: 1381767815-12510-1-git-send-email-drjones@redhat.com

Andrew Jones <drjones <at> redhat.com> writes:

 
> This series introduces arm to kvm-unit-tests.

> To use this you need an arm platform or simulator capable
> of running kvmarm and a qemu with the mach-virt patches[2], as
> well as the previously mentioned virtio-testdev.

Hello,

I have been playing with your tests for a while and I cannot seem to get
them to work all right. When I run them disabling kvm on the arm-run script,
they do work, but when I run them with kvm enabled they fail.

This is my output:

./arm-run arm/boot.flat -smp 1 -m 256 -append 'info 0x10000000 0x1000'
qemu-system-arm -device virtio-testdev -display none -serial stdio -M virt
-cpu cortex-a15 -enable-kvm -kernel arm/boot.flat -smp 1 -m 256 -append info
0x10000000 0x1000
kvm [1252]: load/store instruction decoding not implemented
error: kvm run failed Function not implemented
./arm-run: line 16:  1251 Aborted                 $command "$@"
Return value from qemu: 134
FAIL boot_info
./arm-run arm/boot.flat -smp 1 -append 'vectors'
qemu-system-arm -device virtio-testdev -display none -serial stdio -M virt
-cpu cortex-a15 -enable-kvm -kernel arm/boot.flat -smp 1 -append vectors
kvm [1257]: load/store instruction decoding not implemented
error: kvm run failed Function not implemented
./arm-run: line 16:  1256 Aborted                 $command "$@"
Return value from qemu: 134
FAIL boot_vectors

I am using FastModels Model Debugger version 8.2.028, with a model of this
characteristics:

Model:
------
Model name: ARM_Cortex-A15
Instance: cluster.cpu0
Using CADI 2.0 interface revision 0.
Version: 8.2.72
Generated by Core Generator: No
Needs SimGen License: No

running the latest stable linux release and qemu-devel's latest qemu with
the patches indicated here
https://lists.gnu.org/archive/html/qemu-devel/2013-10/msg02428.html plus
> [1] http://lists.nongnu.org/archive/html/qemu-devel/2013-10/msg01815.html

I tested the instalation by running a linux with the same setup using this call:
qemu-system-arm \
        -display none \
        -enable-kvm \
        -kernel zImage\
        -m 128 -M virt -cpu cortex-a15 \
        -drive if=none,file=linux.img,id=fs \
        -device virtio-blk-device,drive=fs

As I said, the tests pass if the kvm is not enabled and fail otherwise. I
have added a few printfs for debugging and I can tell that the code in
boot.c runs ok, but then when virtio_testdev is called (from
virtio_testdev_exit) the execution throws an exception (more specifically
the line  *tdp++ = cpu_to_le32(va_arg(va, unsigned)); inside the first while.

I am not used to sending emails to this kind of list, so I don't know if I
am being too specific, too little or maybe not even giving the right
information. Please tell me what else you need and if you can help me solve
this problem. 

Thank you very much,
María.


  parent reply	other threads:[~2013-11-20 23:15 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14 16:23 [PATCH 0/9] kvm-unit-tests/arm: initial drop Andrew Jones
2013-10-14 16:23 ` [PATCH 1/9] remove unused files Andrew Jones
2013-10-16 12:52   ` Gleb Natapov
2013-10-16 13:13     ` Alexander Graf
2013-10-16 13:18     ` Andrew Jones
2013-10-14 16:23 ` [PATCH 2/9] makefile and run_tests tweaks Andrew Jones
2013-10-14 16:23 ` [PATCH 3/9] clean root dir of all x86-ness Andrew Jones
2013-10-17  1:06   ` Christoffer Dall
2013-10-17  9:35     ` Andrew Jones
2013-10-17 19:01       ` Christoffer Dall
2013-10-20 16:37         ` Andrew Jones
2013-10-14 16:23 ` [PATCH 4/9] Introduce a simple iomap structure Andrew Jones
2013-10-14 16:23 ` [PATCH 5/9] Add halt() and some error codes Andrew Jones
2013-10-14 16:23 ` [PATCH 6/9] Introduce virtio-testdev Andrew Jones
2013-10-15  8:39   ` Andrew Jones
2013-10-17  1:06   ` Christoffer Dall
2013-10-17  9:51     ` Andrew Jones
2013-10-17 19:01       ` Christoffer Dall
2013-10-17  1:06   ` Christoffer Dall
2013-10-14 16:23 ` [PATCH 7/9] arm: replace arbitrary divisions Andrew Jones
2013-10-17  1:06   ` Christoffer Dall
2013-10-17 10:03     ` Andrew Jones
2013-10-17 18:59       ` Christoffer Dall
2013-10-14 16:23 ` [PATCH 8/9] arm: initial drop Andrew Jones
2013-10-17  1:06   ` Christoffer Dall
2013-10-17 10:16     ` Andrew Jones
2013-10-17 13:28       ` Andrew Jones
2013-10-17 18:39         ` Christoffer Dall
2013-10-14 16:23 ` [PATCH 9/9] arm: add vectors support Andrew Jones
2013-10-17  1:06   ` Christoffer Dall
2013-10-17 10:38     ` Andrew Jones
2013-10-17 18:58       ` Christoffer Dall
2013-10-20 16:35         ` Andrew Jones
2013-10-21  9:59           ` Christoffer Dall
2013-11-20 23:06 ` María Soler Heredia [this message]
2013-11-26 17:23   ` [PATCH 0/9] kvm-unit-tests/arm: initial drop Andrew Jones
2013-12-29  9:24 ` Christoffer Dall
2014-01-02 18:56   ` Andrew Jones

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=loom.20131121T000607-850@post.gmane.org \
    --to=maria.solher@gmail.com \
    --cc=kvm@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).