From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO5gI-0002Hd-Sn for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:47:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO5gH-0002ls-F6 for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:46:58 -0500 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:58032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO5gG-0002lR-HV for qemu-devel@nongnu.org; Wed, 09 Nov 2011 05:46:57 -0500 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp02.in.ibm.com (8.14.4/8.13.1) with ESMTP id pA9AkpaI028388 for ; Wed, 9 Nov 2011 16:16:51 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA9AhHVH4530408 for ; Wed, 9 Nov 2011 16:13:18 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA9AhHXM020839 for ; Wed, 9 Nov 2011 21:43:17 +1100 Message-ID: <4EBA5930.6060001@linux.vnet.ibm.com> Date: Wed, 09 Nov 2011 18:42:56 +0800 From: "Cao,Bing Bu" MIME-Version: 1.0 References: <4EBA4AC8.5050303@linux.vnet.ibm.com> In-Reply-To: <4EBA4AC8.5050303@linux.vnet.ibm.com> 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/09/2011 05:41 PM, Cao,Bing Bu wrote: > 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(). > > When with option -icount,kernel message: "HPET counter not counting. HPET disabled" halt not continue running: normally boot message: < APIC calibration not consistent with PM-Timer: 92ms instead of 100ms^M < APIC delta adjusted to PM-Timer: 6250004 (5750429)^M < Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only.^M < Brought up 1 CPUs^M < Total of 1 processors activated (5183.86 BogoMIPS).^M < devtmpfs: initialized^M < print_constraints: dummy: ^M < Time: 10:32:17 Date: 11/09/11^M < NET: Registered protocol family 16^M < EISA bus registered^M < ACPI: bus type pci registered^M < PCI: PCI BIOS revision 2.10 entry at 0xffe77, last bus=0^M < PCI: Using configuration type 1 for base access^M < bio: create slab at 0^M < ACPI: Interpreter enabled^M < ACPI: (supports S0 S3 S4 S5)^M < ACPI: Using IOAPIC for interrupt routing^M < ACPI: No dock devices found.^M < HEST: Table not found.^M < PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug^M < ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])^M < pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI^M < pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB^M < ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)^M < ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)^M < ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)^M < ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)^M < ACPI: PCI Interrupt Link [LNKS] (IRQs 9) *0^M Maybe right,it is a ACPI issue. -- Best Regards, Cao,Bing Bu