From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: IO APIC emulation failure with qemu-kvm Date: Fri, 04 Feb 2011 14:58:43 +0100 Message-ID: <4D4C0613.9050309@siemens.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: seabios@seabios.org, qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org To: Ravi Kumar Kulkarni Return-path: Received: from thoth.sbs.de ([192.35.17.2]:31562 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752361Ab1BDN7c (ORCPT ); Fri, 4 Feb 2011 08:59:32 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 2011-02-04 14:35, Ravi Kumar Kulkarni wrote: > Hi all, > I'm Initializing the Local and IO APIC for a propeitary operating > system running in Virtualized Environment . > Im facing some problem with qemu-kvm but the code runs fine with qemu. Does it also run fine with qemu-kvm and -no-kvm-irqchip? What versions of the kernel and qemu-kvm are you using? If not the latest git, does updating change the picture? > when i run my kernel image with qemu-kvm it gives emulation error failure > trying to execute the code outside ROM or RAM at fec00000(IO APIC base address) > but the same code runs fine with qemu. can anyone please point me > where might be the problem or how to find out this one? Start with capturing the activity of you guest via ftrace, enabling all kvm:* events. You may also try to attach gdb to qemu and analyze the different code path in both versions (specifically if you have debugging symbols for your guest). BTW, is your OS doing any fancy [IO]APIC relocations? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlMCA-00071P-08 for qemu-devel@nongnu.org; Fri, 04 Feb 2011 08:59:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlMC7-0002Vv-GF for qemu-devel@nongnu.org; Fri, 04 Feb 2011 08:59:28 -0500 Received: from thoth.sbs.de ([192.35.17.2]:19200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlMC7-0002UO-3W for qemu-devel@nongnu.org; Fri, 04 Feb 2011 08:59:27 -0500 Message-ID: <4D4C0613.9050309@siemens.com> Date: Fri, 04 Feb 2011 14:58:43 +0100 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: IO APIC emulation failure with qemu-kvm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ravi Kumar Kulkarni Cc: seabios@seabios.org, qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org On 2011-02-04 14:35, Ravi Kumar Kulkarni wrote: > Hi all, > I'm Initializing the Local and IO APIC for a propeitary operating > system running in Virtualized Environment . > Im facing some problem with qemu-kvm but the code runs fine with qemu. Does it also run fine with qemu-kvm and -no-kvm-irqchip? What versions of the kernel and qemu-kvm are you using? If not the latest git, does updating change the picture? > when i run my kernel image with qemu-kvm it gives emulation error failure > trying to execute the code outside ROM or RAM at fec00000(IO APIC base address) > but the same code runs fine with qemu. can anyone please point me > where might be the problem or how to find out this one? Start with capturing the activity of you guest via ftrace, enabling all kvm:* events. You may also try to attach gdb to qemu and analyze the different code path in both versions (specifically if you have debugging symbols for your guest). BTW, is your OS doing any fancy [IO]APIC relocations? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux