Bug 174238 - [qemu] FreeBSD 9.0 doesn't boot under QEMU due to ACPI issues
Summary: [qemu] FreeBSD 9.0 doesn't boot under QEMU due to ACPI issues
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 16:10 UTC by Aurelien Jarno
Modified: 2015-09-02 16:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2012-12-06 16:10:00 UTC
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

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.
How-To-Repeat: Run qemu-system-x86_64 -cdrom FreeBSD-9.0-RELEASE-i386-bootonly.iso
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-03-10 05:12:52 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-emulation

Over to maintainer(s).
Comment 2 Juergen Lock 2013-03-10 19:42:03 UTC
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
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2015-09-02 16:22:31 UTC
This has been fixed for a while in emulators/qemu-devel