From owner-freebsd-amd64@FreeBSD.ORG Sun Aug 5 09:40:07 2012 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E43411065672 for ; Sun, 5 Aug 2012 09:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1AB8FC0C for ; Sun, 5 Aug 2012 09:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q759e2jM088767 for ; Sun, 5 Aug 2012 09:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q759e2Xe088761; Sun, 5 Aug 2012 09:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 5 Aug 2012 09:40:02 GMT Resent-Message-Id: <201208050940.q759e2Xe088761@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jimmy Olgeni Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 29D8F106566B; Sun, 5 Aug 2012 09:34:30 +0000 (UTC) (envelope-from g.olgeni@colby.it) Received: from mail.colby.tv (93-62-141-58.ip22.fastwebnet.it [93.62.141.58]) by mx1.freebsd.org (Postfix) with ESMTP id A22328FC0A; Sun, 5 Aug 2012 09:34:28 +0000 (UTC) Received: from server.colby.local (localhost [127.0.0.1]) by server.colby.local (8.14.5/8.14.5) with ESMTP id q759VBNl028873; Sun, 5 Aug 2012 11:31:11 +0200 (CEST) (envelope-from g.olgeni@colby.it) Received: from exchange.colby.local ([192.168.1.11] helo=exchange.colby.local) with IPv4:25 by server.colby.local; 5 Aug 2012 11:31:11 +0200 Received: from backoffice.colby.local ([192.168.1.56]) by exchange.colby.local over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 5 Aug 2012 11:31:11 +0200 Received: from backoffice.colby.local (localhost [127.0.0.1]) by backoffice.colby.local (8.14.5/8.14.5) with ESMTP id q759VBK7035003; Sun, 5 Aug 2012 11:31:11 +0200 (CEST) (envelope-from olgeni@backoffice.colby.local) Received: (from olgeni@localhost) by backoffice.colby.local (8.14.5/8.14.5/Submit) id q759VBVD035002; Sun, 5 Aug 2012 11:31:11 +0200 (CEST) (envelope-from olgeni) Message-Id: <201208050931.q759VBVD035002@backoffice.colby.local> Date: Sun, 5 Aug 2012 11:31:11 +0200 (CEST) From: Jimmy Olgeni To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 X-Mailman-Approved-At: Sun, 05 Aug 2012 11:18:26 +0000 Cc: jkim@FreeBSD.org Subject: amd64/170388: 8-STABLE amd64 past r233799 is unable to boot in certain KVM environments X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jimmy Olgeni List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 09:40:08 -0000 >Number: 170388 >Category: amd64 >Synopsis: 8-STABLE amd64 past r233799 is unable to boot in certain KVM environments >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 05 09:40:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jimmy Olgeni >Release: FreeBSD 8.3-STABLE amd64 >Organization: >Environment: >Description: FreeBSD 8-STABLE is unable to boot in some KVM environments after r233799. ------------------------------------------------------------------------ r233799 | jkim | 2012-04-02 20:27:06 +0200 (Mon, 02 Apr 2012) | 4 lines MFC: r233702 Work around Erratum 721 for AMD Family 10h and 12h processors. ------------------------------------------------------------------------ The following panic message is shown immediately after the kernel starts: === kernel trap 9 with interrupts disabled Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff808fd8dc stack pointer = 0x28:0xffffffff80cd5440 frame pointer = 0x28:0xffffffff80cd5470 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () trap number = 9 panic: general protection fault cpuid = 0 KDB: stack backtrace: #0 0xffffffff8064e18e at ??+0 #1 0xffffffff8061b247 at ??+0 #2 0xffffffff80912ca0 at ??+0 #3 0xffffffff80913235 at ??+0 #4 0xffffffff808faad4 at ??+0 #5 0xffffffff80904cc2 at ??+0 #6 0xffffffff801a0244 at ??+0 === When booting from the latest 8-STABLE branch the booting process just halts after the first panic line. The same problem can be observed in 9-STABLE, but I did not actually bisect all the way to the relevant commit yet. However, r233702 seems a reasonable guess. Once the system is booted by reverting r233799, the following processor information can be read: CPU: Six-Core AMD Opteron(tm) Processor 2427 (2211.49-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100f80 Family = 10 Model = 8 Stepping = 0 Features=0x783fbff Features2=0x80802001 AMD Features=0xe6500800 AMD Features2=0x1f7 TSC: P-state invariant Also, using x86info: x86info v1.30. Dave Jones 2001-2011 Feedback to . Extended Family: 1 Extended Model: 0 Family: 15 Model: 8 Stepping: 0 CPU Model (x86info's best guess): Phenom/Athlon/Sempron/Turion (II)/Opteron (HY-D0) Processor name string (BIOS programmed): Six-Core AMD Opteron(tm) Processor 2427 Monitor/Mwait: min/max line size 0/0, ecx bit 0 support, enumeration extension SVM: revision 1, 16 ASIDs, np, NRIPSave Address Size: 48 bits virtual, 40 bits physical running at an estimated 2.35GHz Unfortunately I have no detailed information about the QEMU configuration, but I set up a dedicated VM that I could use to test patches. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: