From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?b?TWFyw61h?= Soler Heredia Subject: Re: [PATCH 0/9] kvm-unit-tests/arm: initial drop Date: Wed, 20 Nov 2013 23:06:11 +0000 (UTC) Message-ID: References: <1381767815-12510-1-git-send-email-drjones@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:37213 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754276Ab3KTXPF (ORCPT ); Wed, 20 Nov 2013 18:15:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VjGz9-0002tE-Lc for kvm@vger.kernel.org; Thu, 21 Nov 2013 00:15:03 +0100 Received: from 81.202.200.137.dyn.user.ono.com ([81.202.200.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 00:15:03 +0100 Received: from maria.solher by 81.202.200.137.dyn.user.ono.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 00:15:03 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Andrew Jones redhat.com> writes: =20 > 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 ge= t them to work all right. When I run them disabling kvm on the arm-run sc= ript, they do work, but when I run them with kvm enabled they fail. This is my output: =2E/arm-run arm/boot.flat -smp 1 -m 256 -append 'info 0x10000000 0x1000= ' qemu-system-arm -device virtio-testdev -display none -serial stdio -M v= irt -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 =2E/arm-run: line 16: 1251 Aborted $command "$@" Return value from qemu: 134 =46AIL boot_info =2E/arm-run arm/boot.flat -smp 1 -append 'vectors' qemu-system-arm -device virtio-testdev -display none -serial stdio -M v= irt -cpu cortex-a15 -enable-kvm -kernel arm/boot.flat -smp 1 -append vector= s kvm [1257]: load/store instruction decoding not implemented error: kvm run failed Function not implemented =2E/arm-run: line 16: 1256 Aborted $command "$@" Return value from qemu: 134 =46AIL boot_vectors I am using FastModels Model Debugger version 8.2.028, with a model of t= his 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 wi= th the patches indicated here https://lists.gnu.org/archive/html/qemu-devel/2013-10/msg02428.html plu= s > [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 t= his call: qemu-system-arm \ -display none \ -enable-kvm \ -kernel zImage\ -m 128 -M virt -cpu cortex-a15 \ -drive if=3Dnone,file=3Dlinux.img,id=3Dfs \ -device virtio-blk-device,drive=3Dfs 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 specifical= ly the line *tdp++ =3D cpu_to_le32(va_arg(va, unsigned)); inside the firs= t while. I am not used to sending emails to this kind of list, so I don't know i= f 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 s= olve this problem.=20 Thank you very much, Mar=C3=ADa.