Received: from eggs.gnu.org ([2001:4830:134:3::10]:53407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgxsQ-0005UE-Od for qemu-devel@nongnu.org; Thu, 14 Nov 2013 09:26:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgxsJ-0007Jb-PL for qemu-devel@nongnu.org; Thu, 14 Nov 2013 09:26:34 -0500 Received: from indium.canonical.com ([91.189.90.7]:52789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgxsJ-0007JV-Jp for qemu-devel@nongnu.org; Thu, 14 Nov 2013 09:26:27 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VgxsJ-0000dx-1T for ; Thu, 14 Nov 2013 14:26:27 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id EAF152E8081 for ; Thu, 14 Nov 2013 14:26:26 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Nov 2013 14:20:08 -0000 From: Andre Przywara Sender: bounces@canonical.com References: <20131022162416.15428.47621.malonedeb@soybean.canonical.com> Message-Id: <20131114142008.18743.65923.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1243287] Re: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail Reply-To: Bug 1243287 <1243287@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Peter, the config option is called: CONFIG_STRICT_DEVMEM And /dev/mem behaves differently between doing read() and doing mmap(). As Peter already hinted, the memory layout is different on native Midway (w= hich has DRAM starting at 0) and mach-virt/vexpress (which start at 128MB /= 2GB respectively). So accessing 0xf0000 reads memory on native, but faults= in stage 2 mapping in the host kernel. But the actual problem is that the host kernel passes this abort on to user= space, where QEMU just does abort(), thus crashing the whole virtual machin= e. Actually I think we should change the host kernel to inject the data abo= rt into the guest. I tested this with a simple patch, it now makes dmidecod= e crash (due to a signal), but keeps the guest alive. This approach needs some discussion on the ML, I guess. But near term we should not call dmidecode on ARM, since AFAIK it does not give any information. There once was a discussion on patching dmidecode to output hardcoded or elsewhere gathered information to make scripts happy, but I don't know where this ended. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1243287 Title: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail Status in QEMU: Confirmed Bug description: On booting the cloud image using qemu/kvm fails with the following error: Cloud-init v. 0.7.3 running 'init' at Thu, 03 Oct 2013 16:45:21 +0000. Up= 360.78 seconds. ci-info: +++++++++++++++++++++++++Net device info+++++++++++++++++++++++++ ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: | Device | Up | Address | Mask | Hw-Address | ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | ci-info: | eth0 | True | 10.0.2.15 | 255.255.255.0 | 52:54:00:12:34:56 | ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: ++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++= ++++++ ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U | ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ error: kvm run failed Function not implemented /usr/lib/python2.7/dist- packages/cloudinit/sources/DataSourceAltCloud.py assumes that dmidecode command is availabe (ie it assumes that system is x86) on arm systems there is no dmidecode command so host kvm fails with the message "error: kvm run failed Function not implemented" The patch makes get_cloud_type() function return with UNKNOWN for ARM systems. I was able to boot the cloud-image on ARM after applying this change. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1243287/+subscriptions