From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpLpe-0008NC-4Z for qemu-devel@nongnu.org; Tue, 15 Feb 2011 09:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpLpc-0006KP-Dv for qemu-devel@nongnu.org; Tue, 15 Feb 2011 09:24:46 -0500 Received: from smtp2.iitd.ernet.in ([202.141.68.44]:42016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpLpb-00063Z-Kb for qemu-devel@nongnu.org; Tue, 15 Feb 2011 09:24:44 -0500 Message-ID: <4D5A8BDB.1000206@cse.iitd.ac.in> Date: Tue, 15 Feb 2011 19:51:15 +0530 From: Dushyant Bansal MIME-Version: 1.0 References: <7564d180e958415b388e0cb93e2f2a71.squirrel@webmail.iitd.ernet.in> <57F58C04-DDF3-4F8C-9BC3-DAED54D2D088@suse.de> <4D4C5149.80303@cse.iitd.ac.in> <7703D057-F12D-4B95-9AEE-190C4EB2A3CE@suse.de> In-Reply-To: <7703D057-F12D-4B95-9AEE-190C4EB2A3CE@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] =?utf-8?q?Re=3A_qemu_compiling_error_on_ppc64=3A_kv?= =?utf-8?b?bS5jOjgxOiBlcnJvcjogIMKRc3RydWN0IGt2bV9zcmVnc8KSIGhhcyBubyBt?= =?utf-8?q?ember_named_=C2=91pvr=C2=92?= List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-devel@nongnu.org" , "kvm-ppc@vger.kernel.org" >>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please >>> >>> >> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful. >> Thanks a lot. >> > Awesome! I'm eager to hear how well it works for you :) I collected some performance stats using kvm_stat. To get more information about exit counts of individual instructions, I configured CFLAGS_emulate.o with DDEBUG flag. Now, I can see output of "pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));" instruction in kernel logs. I have two queries: 1. The count of "Emulating opcode...." statement in /var/log/kern.log (3 million) is coming out to be much less than emulated_inst_exits (22 million) using kvm_stat. 2. How to configure makefiles to get output of printk statements inside kvm/arch/powerpc/kvm/trace.h Also, every time I start kvm, I get this error "KVM: Couldn't find level irq capability. Expect the VM to stall at times". After some time, the VM just hangs. I traced this output to qemu/target-ppc/kvm.c Is there any way to avoid it. Thanks, Dushyant