From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 17:37:56 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id B38401065679 for ; Wed, 12 Jan 2011 17:37:56 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from xps.daemonology.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx2.freebsd.org (Postfix) with SMTP id AE108162D30 for ; Wed, 12 Jan 2011 17:37:40 +0000 (UTC) Received: (qmail 18191 invoked from network); 12 Jan 2011 17:37:42 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2011 17:37:42 -0000 Message-ID: <4D2DE6E6.2090202@freebsd.org> Date: Wed, 12 Jan 2011 09:37:42 -0800 From: Colin Percival User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101220 Thunderbird/3.0.11 MIME-Version: 1.0 To: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> In-Reply-To: <4D2DADC7.8080404@deployis.eu> X-Enigmail-Version: 1.0.1 Content-Type: multipart/mixed; boundary="------------030608000702000508010208" Cc: freebsd-xen@freebsd.org Subject: Re: does anyone have Xen running on an AMD system? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 17:37:56 -0000 This is a multi-part message in MIME format. --------------030608000702000508010208 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On 01/12/11 05:33, Gót András wrote: > kernel trap 9 with interrupts disabled > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x21:0xc0321241 > stack pointer = 0x29:0xc21ffc8c > frame pointer = 0x29:0xc21ffc94 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 1, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 11 (idle: cpu0) > [thread pid 11 tid 100003 ] > Stopped at spinlock_exit+0xe1: hlt Yep, this is what I was looking for. Can you try the attached patch (under the same conditions to avoid the pmap_init panic) and let me know if this problem goes away? -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid --------------030608000702000508010208 Content-Type: text/x-diff; name="amdc1e_privileged.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="amdc1e_privileged.patch" Index: i386/i386/machdep.c =================================================================== --- i386/i386/machdep.c (revision 217272) +++ i386/i386/machdep.c (working copy) @@ -2690,8 +2690,10 @@ thread0.td_pcb->pcb_fsd = PCPU_GET(fsgs_gdt)[0]; thread0.td_pcb->pcb_gsd = PCPU_GET(fsgs_gdt)[1]; +#if defined(XEN_PRIVILEGED) if (cpu_probe_amdc1e()) cpu_idle_fn = cpu_idle_amdc1e; +#endif } #else --------------030608000702000508010208--