From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GU1zM-0001Js-5T for qemu-devel@nongnu.org; Sun, 01 Oct 2006 10:08:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GU1zH-0001Jg-BD for qemu-devel@nongnu.org; Sun, 01 Oct 2006 10:08:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GU1zH-0001Jd-60 for qemu-devel@nongnu.org; Sun, 01 Oct 2006 10:08:11 -0400 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GU252-0007gf-BF for qemu-devel@nongnu.org; Sun, 01 Oct 2006 10:14:09 -0400 Message-ID: <451FCBB7.1020003@wasp.net.au> Date: Sun, 01 Oct 2006 18:07:51 +0400 From: Brad Campbell MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Latest cvs and kqemu-1.3.0pre9 segfault on booting linux guest from linux host Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This was working about 4 weeks ago or thereabouts. I just upgraded qemu from cvs and now it won't boot a stock kernel with -kernel-qemu. (no -kernel-kqemu seems to work just fine) Qemu Version: CVS as of 30 mins ago Host kernel: Linux bklaptop2 2.6.18-rc4-bkc1 #3 Wed Aug 9 12:01:18 GST 2006 i686 GNU/Linux Boot command line: qemu -kernel bzImage-2.6.17-2 -initrd ~/initramfs-2.6.cpio.gz -hda /dev/null -kernel-kqemu -append "console=ttyS0 console=tty0" -serial stdio | tee oops.log I tried it with and without -no-acpi with the same result. I've tracked it down to the bios file. If I revert bios.bin back to an older revision it's all good. This works: (It was one I had handy in my backup - current as of about August sometime I think) $Revision: 1.160 $ $Date: 2006/01/25 17:51:49 $ This does not: (Todays CVS) $Revision: 1.166 $ $Date: 2006/08/11 17:34:12 $ Relevant files http://fnarfbargle.dyndns.org:81/qemu/bzImage-2.6.17-2 http://fnarfbargle.dyndns.org:81/qemu/config.gz http://fnarfbargle.dyndns.org:81/qemu/initramfs-2.6.cpio.gz (this is 10M and I really don't think you need it, but it's here for completeness) The kernel is a vanilla 2.6.17 oops attached. Linux version 2.6.17 (brad@bklaptop2) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 Sun Oct 1 17:54:08 GST 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000007ff0000 (usable) BIOS-e820: 0000000007ff0000 - 0000000008000000 (ACPI data) BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) 127MB LOWMEM available. DMI not present or invalid. Allocating PCI resources starting at 10000000 (gap: 08000000:f7fc0000) Built 1 zonelists Kernel command line: console=ttyS0 console=tty0 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 512 (order: 9, 2048 bytes) Detected 598.575 MHz processor. Using tsc for high-res timesource Console: colour VGA+ 80x25 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 116664k/131008k available (1649k kernel code, 13824k reserved, 458k data, 124k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 1180.84 BogoMIPS (lpj=5904209) Mount-cache hash table entries: 512 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 2048K CPU: Intel(R) Pentium(R) M processor 1.20GHz stepping 08 Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 0k freed Unpacking initramfs... done Freeing initrd memory: 10315k freed NET: Registered protocol family 16 PCI: PCI BIOS revision 2.10 entry at 0xfa100, last bus=0 Setting up standard PCI resources SCSI subsystem initialized PCI: Probing PCI hardware PCI quirk: region b000-b03f claimed by PIIX4 ACPI PCI: Using IRQ router PIIX/ICH [8086/7000] at 0000:00:01.0 general protection fault: 0060 [#1] CPU: 0 EIP: 0060:[] Not tainted VLI EFLAGS: 00010203 (2.6.17 #1) EIP is at 0xc00fa205 eax: ffff86ff ebx: c1130100 ecx: 12378086 edx: 00000cfc esi: 00000001 edi: c02ed094 ebp: c1130000 esp: c7fc1f78 ds: 007b es: 007b ss: 0068 Process swapper (pid: 1, threadinfo=c7fc0000 task=c1136a10) Stack: c024c886 00000063 00000000 c113c400 00000001 00000001 c113c400 c113c400 00000000 c032cc0c c7fc0000 00000000 c032478d c01002ff c0311fe0 c0102726 c02d6880 c01002a0 00000000 00000000 00000000 00000000 00000000 00000000 Call Trace: pcibios_sort+0x66/0x1b0 pcibios_init+0x5d/0x70 init+0x5f/0x250 ret_from_fork+0x6/0x20 init+0x0/0x250 init+0x0/0x250 kernel_thread_helper+0x5/0x10 Code: c2 fc 0c 66 89 c8 66 ef 5a eb 21 3c 0d 75 10 e8 25 00 00 00 52 66 ba fc 0c 89 c8 ef 5a eb 0d b4 81 5f 5e 83 64 24 08 fc 66 9d f9 30 e4 5f 5e 83 64 24 08 fc 66 9d f8 cb 52 b8 00 00 80 00 66 EIP: [] 0xc00fa205 SS:ESP 0068:c7fc1f78 <0>Kernel panic - not syncing: Attempted to kill init! Brad -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams