From nobody@FreeBSD.org  Tue Dec 13 19:47:06 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 13DF31065676
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2011 19:47:06 +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 DD8E38FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2011 19:47:05 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBDJl5jW084228
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2011 19:47:05 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBDJl5We084227;
	Tue, 13 Dec 2011 19:47:05 GMT
	(envelope-from nobody)
Message-Id: <201112131947.pBDJl5We084227@red.freebsd.org>
Date: Tue, 13 Dec 2011 19:47:05 GMT
From: Robert Millan <rmh@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: crash on VirtualBox when ACPI is enabled
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163263
>Category:       misc
>Synopsis:       crash on VirtualBox when ACPI is enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    grog
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 13 19:50:09 UTC 2011
>Closed-Date:    
>Last-Modified:  Tue Dec 18 04:42:36 UTC 2012
>Originator:     Robert Millan
>Release:        9.0-RC3
>Organization:
>Environment:
>Description:
When booting FreeBSD-9.0-RC3-amd64-bootonly.iso on my VirtualBox 4.0.12 environment, kernel crashes unless ACPI is disabled.

Note: when ACPI is disabled it also crashes (with "panic: No usable event timer found!") but it gets much further.

Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-RC3 #0: Sun Dec  4 08:56:36 UTC 2011
    root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
CPU: Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz (2567.17-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x1067a  Family = 6  Model = 17  Stepping = 10
  Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x209<SSE3,MON,SSSE3>
  AMD Features=0x20000800<SYSCALL,LM>
  AMD Features2=0x1<LAHF>
real memory  = 536805376 (511 MB)
avail memory = 494080000 (471 MB)
kbd1 at kbdmux0
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: could not allocate interrupt
ACPI Exception: AE_ALREADY_EXISTS, Unable to install System Control Interrupt handler (20110527/evevent-137)
acpi0: Could not enable ACPI: AE_ALREADY_EXISTS
device_attach: acpi0 attach returned 6


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x70
fault code              = supervisor write data, page not present
instruction pointer     = 0x20:0xffffffff80b00e39
stack pointer           = 0x28:0xffffffff813d3bc0
frame pointer           = 0x28:0xffffffff813d3c00
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (swapper)
trap number             = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff808680fe at kdb_backtrace+0x5e
#1 0xffffffff80832cb7 at panic+0x187
#2 0xffffffff80b18400 at trap_fatal+0x290
#3 0xffffffff80b18749 at trap_pfault+0x1f9
#4 0xffffffff80b18c0f at trap+0x3df
#5 0xffffffff80b0313f at calltrap+0x8
#6 0xffffffff80b0061f at nexus_acpi_attach+0x7f
#7 0xffffffff80861519 at device_attach+0x69
#8 0xffffffff80863176 at bus_generic_new_pass+0xd6
#9 0xffffffff8085eeca at bus_set_pass+0x7a
#10 0xffffffff80b0278a at configure+0xa
#11 0xffffffff807e7707 at mi_startup+0x77
#12 0xffffffff8029f71c at btext+0x2c
Uptime: 1s

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Patrick Lamaiziere <patfbsd@davenulle.org>
To: bug-followup@freebsd.org <bug-followup@freebsd.org>
Cc:  
Subject: Re: misc/163263: crash on VirtualBox when ACPI is enabled
Date: Wed, 14 Dec 2011 00:38:38 +0100

 Le Tue, 13 Dec 2011 19:47:05 GMT,
 Robert Millan <rmh@FreeBSD.org> a crit :
 
 Hello,
 
 This is because IO-APIC is not enable in the virtual machine.
 With virtual-box when you create the machine, you have the choise
 between "FreeBSD" and "FreeBSD 64". The choice FreeBSD does not enable
 the IO-APIC but "FreeBSD 64" does. I don't know if we should considered
 this problem to be a bug in FreeBSD.
 
 I use a 9.0 beta 2 amd64 on Virtual box without issue.
 
 Regards.
Responsible-Changed-From-To: freebsd-bugs->grog 
Responsible-Changed-By: grog 
Responsible-Changed-When: Tue Dec 18 04:41:32 UTC 2012 
Responsible-Changed-Why:  
grog will reply to this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163263 
>Unformatted:
