From owner-freebsd-stable@FreeBSD.ORG Mon Feb 11 21:39:53 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 31DBF167; Mon, 11 Feb 2013 21:39:53 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qe0-f44.google.com (mail-qe0-f44.google.com [209.85.128.44]) by mx1.freebsd.org (Postfix) with ESMTP id B47B8F93; Mon, 11 Feb 2013 21:39:52 +0000 (UTC) Received: by mail-qe0-f44.google.com with SMTP id a11so2796906qen.31 for ; Mon, 11 Feb 2013 13:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XwZd+6ZJmQn5LOWhWfkpRqucg6i/EhiPjHBtweRik50=; b=koYLgN91PaY+UhC4UlVqdIqLT57u+kazhHhoEEQcH/BvZMXdlaik9aoQoTfW39GUn+ bjfzEaSEk522Qe1jAOHCjnhPQGzL6JuBd4oQ7q5dqkTs0Itgda50TuUoDvtK5VAYpJjs 9HrLOynS6Y2dC2MAWI3SU5KaRaMyYa61XkiCzuXSKz6JqpBnh/loeFREK2cmJXqbkFDU J/u9l2KMAuf65dJuHW3dtax20LtEsbju5FakoxMLNI+Zm1g74u1RcW5thua63bLF+ABl vMGP3mH1swv1Bu9YC3mKpAVOvle/vcsZMri3bARzNgJIUkxi1SeZZKZE9n45ep4y7wRl rfDg== MIME-Version: 1.0 X-Received: by 10.224.58.147 with SMTP id g19mr6156141qah.22.1360618477453; Mon, 11 Feb 2013 13:34:37 -0800 (PST) Sender: tomek.cedro@gmail.com Received: by 10.49.71.204 with HTTP; Mon, 11 Feb 2013 13:34:37 -0800 (PST) In-Reply-To: <201302111606.06731.jhb@freebsd.org> References: <201302111606.06731.jhb@freebsd.org> Date: Mon, 11 Feb 2013 22:34:37 +0100 X-Google-Sender-Auth: LPJghNiMI0ZP9MGLfgzK5bJlyTg Message-ID: Subject: Re: 9.1-RELEASE AMD64 crash under VBox 4.2.6 when IO APIC is disabled From: CeDeROM To: John Baldwin Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 21:39:53 -0000 On Mon, Feb 11, 2013 at 10:06 PM, John Baldwin 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