From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO5As-0002Wb-0k for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:14:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO5Aq-0005XE-Tb for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:14:29 -0500 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:46550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO5Aq-0005W5-1E for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:14:28 -0500 Received: from /spool/local by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 Nov 2011 15:13:18 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA99fnSl2273310 for ; Wed, 9 Nov 2011 15:11:49 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA99fmAA019466 for ; Wed, 9 Nov 2011 15:11:48 +0530 Message-ID: <4EBA4AC8.5050303@linux.vnet.ibm.com> Date: Wed, 09 Nov 2011 17:41:28 +0800 From: "Cao,Bing Bu" MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: qemu-devel On 11/08/2011 11:52 PM, Max Filippov wrote: > With kernel command line of 'console=ttyS0 noapic=1 panic=1' patched > qemu boots up successfully with -icount, whereas unpatched qemu loops > infinitely. > > Looks like APIC emulation issue to me. > I'm trying to test issue using a 2.6.38 vmlinuz image. The image is a kernel image of a another ubuntu guest. I just copy it to host and use it directly. # /usr/local/bin/qemu-system-x86_64 -enable-kvm -m 1024 -kernel vmlinuz-2.6.38-8-generic -append 'ro quiet noacpi=1 ' -chardev stdio,id=mon0 -mon chardev=mon0 The kernel can be successfully loaded and run normally until kernel_init(),and panic because there is no root file-system supplied. But add -icount option: # /usr/local/bin/qemu-system-x86_64 -enable-kvm -m 1024 -kernel vmlinuz-2.6.38-8-generic -append 'root=UUID=96bc04c5-410e-482a-82bf-95b2355552d6 ro quiet noacpi=1' -chardev stdio,id=mon0 -mon chardev=mon0 -icount auto The kernel can not be loaded successfully. loop in main_loop_wait(). -- Best Regards, Cao,Bing Bu