From nobody@FreeBSD.org  Thu Dec  6 16:08:26 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2338473F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Dec 2012 16:08:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 09FD08FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Dec 2012 16:08:26 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB6G8Px0076233
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Dec 2012 16:08:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qB6G8PJB076232;
	Thu, 6 Dec 2012 16:08:25 GMT
	(envelope-from nobody)
Message-Id: <201212061608.qB6G8PJB076232@red.freebsd.org>
Date: Thu, 6 Dec 2012 16:08:25 GMT
From: Aurelien Jarno <aurelien@aurel32.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 9.0 doesn't boot under QEMU due to ACPI issues
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174238
>Category:       kern
>Synopsis:       [qemu] FreeBSD 9.0 doesn't boot under QEMU due to ACPI issues
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-emulation
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 06 16:10:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Mar 10 19:50:00 UTC 2013
>Originator:     Aurelien Jarno
>Release:        9.0-RELEASE-p3
>Organization:
>Environment:
FreeBSD freebsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
FreeBSD 9.0 doesn't boot in QEMU 1.3.0 due to ACPI issues. The boot process hangs at:

FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (3392.32-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x206a7  Family = 6  Model = 2a  Stepping = 7
Features=0xf83fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,SS>
Features2=0x97b82223<SSE3,PCLMULQDQ,VMX,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,AVX,HV>
AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
AMD Features2=0x1<LAHF>
real memory  = 268435456 (256 MB)
avail memory = 243380224 (232 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <BOCHS  BXPCAPIC>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0 
>How-To-Repeat:
Run qemu-system-x86_64 -cdrom FreeBSD-9.0-RELEASE-i386-bootonly.iso
>Fix:
The change that trigger the issue is the following seabios change:

http://git.qemu.org/?p=seabios.git;a=commit;h=4540409d19a4baeec5006d925cfca19f8038a96e

That said according to the seabios developers, the real problem is on
the FreeBSD kernel side.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Mar 10 05:12:52 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174238 

From: Juergen Lock <nox@jelal.kn-bremen.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/174238: [qemu] FreeBSD 9.0 doesn't boot under QEMU due to
 ACPI issues
Date: Sun, 10 Mar 2013 20:42:03 +0100

 This has meanwhile been fixed in seabios shipped with qemu 1.3.1
 (and 1.4.0), a patch and fixed bios.bin that you can pass to
 qemu 1.3.0 with -bios has been posted in this thread:
 
 	https://lists.nongnu.org/archive/html/qemu-devel/2012-12/msg01703.html
 
  HTH, :)
 	Juergen
>Unformatted:
