Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2013 22:34:37 +0100
From:      CeDeROM <cederom@tlen.pl>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 9.1-RELEASE AMD64 crash under VBox 4.2.6 when IO APIC is disabled
Message-ID:  <CAFYkXjkAfR%2Bzj4X=ZjwNdWmqanfXCZRt37%2BB41VCM71z79g7qA@mail.gmail.com>
In-Reply-To: <201302111606.06731.jhb@freebsd.org>
References:  <CAFYkXjknuDPr=FYxkj9eYDsSRh_kUa=9ubyDR=84=hWi85RTiw@mail.gmail.com> <201302111606.06731.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 11, 2013 at 10:06 PM, John Baldwin <jhb@freebsd.org> wrote:
> On Sunday, February 10, 2013 1:16:16 pm CeDeROM wrote:
>> Hey :-) I have just noticed that booting installation media for
>> FreeBSD 9.1-RELEASE AMD64 from ISO bootonly under VirtualBox 4.2.6
>> results in a kernel panic both when ACPI is enabled and disabled in
>
> You will need to add 'device atpic' to your kernel config and build a custom
> kernel.  All real amd64-capable hardware has APICs.

Hello John :-) Thank you for your reply, still I need some more
information to understand why this happens :-)

The simple answer that I have deduced is that APIC is MANDATORY for
AMD64 machines and they won't run otherwise? This is why generic AMD64
install fails when no APIC is enabled in the VBox?

However I was building custom kernel on my AMD64 recently to test new
driver and I found this part of Handbook [1] a bit misleading:

device          apic               # I/O APIC
The apic device enables the use of the I/O APIC for interrupt
delivery. The apic device can be used in both UP and SMP kernels, but
is required for SMP kernels. Add options SMP to include support for
multiple processors.
Note: The apic device exists only on the i386 architecture, this
configuration line should not be used on other architectures.

Why then APIC is not required in my AMD64 configuration file, but
machine requires it..? Where should I add this configuration option -
which kernel my host or the generic install and wouldn't that produce
error at build time? I am a bit lost :-)

Thank you :-)
Tomek

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkAfR%2Bzj4X=ZjwNdWmqanfXCZRt37%2BB41VCM71z79g7qA>