From owner-freebsd-xen@FreeBSD.ORG Sun Jan 9 05:40:09 2011 Return-Path: Delivered-To: freebsd-xen@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8211A1065695 for ; Sun, 9 Jan 2011 05:40:09 +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 7105B8FC12 for ; Sun, 9 Jan 2011 05:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p095e9xt038443 for ; Sun, 9 Jan 2011 05:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p095e9fb038441; Sun, 9 Jan 2011 05:40:09 GMT (envelope-from gnats) Date: Sun, 9 Jan 2011 05:40:09 GMT Message-Id: <201101090540.p095e9fb038441@freefall.freebsd.org> To: freebsd-xen@FreeBSD.org From: Greg Holmberg Cc: Subject: Re: kern/153620: Xen guest system clock drifts in AWS EC2 (FreeBSD 9.0-CURRENT i386 T1-micro) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Greg Holmberg 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: Sun, 09 Jan 2011 05:40:09 -0000 The following reply was made to PR kern/153620; it has been noted by GNATS. From: Greg Holmberg To: FreeBSD PR kern/153620 Cc: Subject: Re: kern/153620: Xen guest system clock drifts in AWS EC2 (FreeBSD 9.0-CURRENT i386 T1-micro) Date: Sun, 9 Jan 2011 06:39:44 +0100 This problem -- dropping 2200 seconds of clock time -- is not seen in a FreeBSD 8.2-RC1 AMI on Amazon EC2 (ami-f77e4a83), using the same type of T1-micro VM as in the initial report. The clock drift noted with 9-CURRENT is also present in 8.2-RC1, but at about 40% of the rate, taking three hours and twenty-two minutes to lose an entire second. Best regards, Greg Holmberg From owner-freebsd-xen@FreeBSD.ORG Sun Jan 9 14:10:08 2011 Return-Path: Delivered-To: freebsd-xen@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1319106566C for ; Sun, 9 Jan 2011 14:10:08 +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 A2FE58FC18 for ; Sun, 9 Jan 2011 14:10:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p09EA7mh018190 for ; Sun, 9 Jan 2011 14:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p09EA7Qq018189; Sun, 9 Jan 2011 14:10:07 GMT (envelope-from gnats) Date: Sun, 9 Jan 2011 14:10:07 GMT Message-Id: <201101091410.p09EA7Qq018189@freefall.freebsd.org> To: freebsd-xen@FreeBSD.org From: Greg Holmberg Cc: Subject: Re: kern/153620: Xen guest system clock drifts in AWS EC2 (FreeBSD 9.0-CURRENT i386 T1-micro) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Greg Holmberg 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: Sun, 09 Jan 2011 14:10:08 -0000 The following reply was made to PR kern/153620; it has been noted by GNATS. From: Greg Holmberg To: FreeBSD PR kern/153620 Cc: Subject: Re: kern/153620: Xen guest system clock drifts in AWS EC2 (FreeBSD 9.0-CURRENT i386 T1-micro) Date: Sun, 9 Jan 2011 15:01:44 +0100 Both Intel and AMD systems experience this problem. Interestingly, the dual Xeon E5430 lost 4x more time over six hours of idling than the Opteron 2218 HE. The image was ami-e388bd97. Best, Greg Holmberg From owner-freebsd-xen@FreeBSD.ORG Mon Jan 10 11:07:16 2011 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A263B10656B1 for ; Mon, 10 Jan 2011 11:07:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9082D8FC21 for ; Mon, 10 Jan 2011 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0AB7G2H001961 for ; Mon, 10 Jan 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0AB7FQh001959 for freebsd-xen@FreeBSD.org; Mon, 10 Jan 2011 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Jan 2011 11:07:15 GMT Message-Id: <201101101107.p0AB7FQh001959@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org 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: Mon, 10 Jan 2011 11:07:16 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/153789 xen [xen] [regression] FreeBSD 8.2-RC1 crashes under Solar o kern/153674 xen [xen] i386/XEN idle thread shows wrong percentages o kern/153672 xen [xen] [panic] i386/XEN panics under heavy fork load o kern/153620 xen [xen] Xen guest system clock drifts in AWS EC2 (FreeBS o kern/153477 xen [xen] XEN pmap code abuses vm page queue lock o kern/153150 xen [xen] xen/ec2: disable checksum offloading on interfac o kern/152228 xen [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor f kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after f kern/135667 xen ufs filesystem corruption on XEN DomU system f kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. f kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i o kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all f i386/124516 xen [xen] FreeBSD-CURRENT Xen Kernel Segfaults when config 16 problems total. From owner-freebsd-xen@FreeBSD.ORG Tue Jan 11 18:06:11 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 50F23106566B for ; Tue, 11 Jan 2011 18:06:11 +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 DE2261A920E for ; Tue, 11 Jan 2011 18:06:10 +0000 (UTC) Received: (qmail 86955 invoked from network); 11 Jan 2011 18:06:12 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2011 18:06:12 -0000 Message-ID: <4D2C9C14.3090407@freebsd.org> Date: Tue, 11 Jan 2011 10:06:12 -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: "freebsd-xen@freebsd.org" X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Tue, 11 Jan 2011 18:06:11 -0000 Hi all, I'm looking for someone with a recent AMD system who has Xen running and/or can install it. I've had a report of a FreeBSD 8.x panic while booting on AMD, and it looks very plausible to me, but I need to be able to reproduce it so that I can get a patch tested. If you have such a system, please let me know ASAP -- I'm hoping to get this fix into 8.2-RELEASE, and there's only a few days left. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Tue Jan 11 19:18:46 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00BA51065672; Tue, 11 Jan 2011 19:18:46 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 730578FC08; Tue, 11 Jan 2011 19:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=cF0kh26G+KPmifO9/fNgxVleQmmgz2/FMlnXNWLzjrc=; b=ZYThN5fg9s2/Bng5MWaznABdMmSLFFdl1gmJlzwky/Zz0Pbgk5K8FJymNZAMLYkpoqgPn3UFGuZX7QoXAc+PGuQ0zOgLq9JgpnxhIRbalecDzPMnStemMzc8sKJ3GLTV; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:53881 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1Pcjjw-00025w-C9 from ; Tue, 11 Jan 2011 20:18:44 +0100 Message-ID: <4D2CAD14.7050307@deployis.eu> Date: Tue, 11 Jan 2011 20:18:44 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Colin Percival References: <4D2C9C14.3090407@freebsd.org> In-Reply-To: <4D2C9C14.3090407@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Tue, 11 Jan 2011 19:18:46 -0000 Hi, I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image: FreeBSD-8.2-RC1-i386-disc1.iso Regards, Andras Colin Percival wrote: > Hi all, > > I'm looking for someone with a recent AMD system who has Xen running and/or can > install it. I've had a report of a FreeBSD 8.x panic while booting on AMD, and > it looks very plausible to me, but I need to be able to reproduce it so that I > can get a patch tested. > > If you have such a system, please let me know ASAP -- I'm hoping to get this fix > into 8.2-RELEASE, and there's only a few days left. > From owner-freebsd-xen@FreeBSD.ORG Tue Jan 11 19:23:52 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 B964F1065675 for ; Tue, 11 Jan 2011 19:23:52 +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 99BF414F507 for ; Tue, 11 Jan 2011 19:23:08 +0000 (UTC) Received: (qmail 87731 invoked from network); 11 Jan 2011 19:23:09 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2011 19:23:09 -0000 Message-ID: <4D2CAE1D.6060100@freebsd.org> Date: Tue, 11 Jan 2011 11:23:09 -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: <4D2C9C14.3090407@freebsd.org> <4D2CAD14.7050307@deployis.eu> In-Reply-To: <4D2CAD14.7050307@deployis.eu> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: Tue, 11 Jan 2011 19:23:52 -0000 Oops... I should have been a bit more specific. The problem is when running paravirtualized, not via HVM, so the standard install disk won't help. On 01/11/11 11:18, Gót András wrote: > I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image: > FreeBSD-8.2-RC1-i386-disc1.iso > > Regards, > Andras > > > Colin Percival wrote: >> Hi all, >> >> I'm looking for someone with a recent AMD system who has Xen running >> and/or can >> install it. I've had a report of a FreeBSD 8.x panic while booting on >> AMD, and >> it looks very plausible to me, but I need to be able to reproduce it >> so that I >> can get a patch tested. >> >> If you have such a system, please let me know ASAP -- I'm hoping to >> get this fix >> into 8.2-RELEASE, and there's only a few days left. >> > -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Tue Jan 11 19:35:52 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C968106566C; Tue, 11 Jan 2011 19:35:52 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 9CFEC8FC13; Tue, 11 Jan 2011 19:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=xM4lcNkGpJXclMbn+3Uhmdt9FCG7THcYREt+ZqxKPbs=; b=Ucp07s9LNf9AkAU+ZoOqfsrIXfeL4/6WeeG9wVj1UpDcrpuvSHA76ReFwvS7PwpdoSRfAkdqcDauX1FMwYdkE2MNPd3MglzTGLZA2fMGVnmZ/VRVf6B2k+IEmWuhkIpr; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:53677 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1Pck0U-0002om-V5 from ; Tue, 11 Jan 2011 20:35:50 +0100 Message-ID: <4D2CB116.6050302@deployis.eu> Date: Tue, 11 Jan 2011 20:35:50 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Colin Percival References: <4D2C9C14.3090407@freebsd.org> <4D2CAD14.7050307@deployis.eu> <4D2CAE1D.6060100@freebsd.org> In-Reply-To: <4D2CAE1D.6060100@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Tue, 11 Jan 2011 19:35:52 -0000 I know there's no problem with simple HVM, so I'll compile a PV kernel and check it. (I hope at least.) Colin Percival wrote: > Oops... I should have been a bit more specific. The problem is when running > paravirtualized, not via HVM, so the standard install disk won't help. > > On 01/11/11 11:18, Gót András wrote: >> I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image: >> FreeBSD-8.2-RC1-i386-disc1.iso >> >> Regards, >> Andras >> >> >> Colin Percival wrote: >>> Hi all, >>> >>> I'm looking for someone with a recent AMD system who has Xen running >>> and/or can >>> install it. I've had a report of a FreeBSD 8.x panic while booting on >>> AMD, and >>> it looks very plausible to me, but I need to be able to reproduce it >>> so that I >>> can get a patch tested. >>> >>> If you have such a system, please let me know ASAP -- I'm hoping to >>> get this fix >>> into 8.2-RELEASE, and there's only a few days left. >>> > > From owner-freebsd-xen@FreeBSD.ORG Tue Jan 11 23:03:16 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F29B1065679; Tue, 11 Jan 2011 23:03:16 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id A170C8FC20; Tue, 11 Jan 2011 23:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=1JLfw11UNpzF4sBWXWLtH00+BK2NIlnbUsRsT2aIT4A=; b=myYJIKxZH665dcYJHyx3YvkmwnEHXXfEBBa1oz2vrSzFrcA7/iMkZ69drSm6sZkO5kdOAKrsq2AUmeAY7jzAfWHRFoEfKeLrCJxBiAxp1LVqZcUVtqdpuM9cZKcC0g6Q; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:57933 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PcnFB-0004E2-Ub from ; Wed, 12 Jan 2011 00:03:13 +0100 Message-ID: <4D2CE1B1.6030109@deployis.eu> Date: Wed, 12 Jan 2011 00:03:13 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Colin Percival References: <4D2C9C14.3090407@freebsd.org> <4D2CAD14.7050307@deployis.eu> <4D2CAE1D.6060100@freebsd.org> In-Reply-To: <4D2CAE1D.6060100@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Tue, 11 Jan 2011 23:03:16 -0000 I took the iso file below and installed, csupped RELENG_8_2 to /usr/src and after successful buildworld and buildkernel I've installed the world and kernel to a new disk. Of course in PV mode the Xen tried loading the kernel. Tomorrow, if needed, I can try to boot the very same instance on Intel HW also. I got the following (of course there is no 120 domains on the host :) ): Started domain freebsd-pv (id=120) WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 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 8.2-RC2 #0: Tue Jan 11 22:43:09 CET 2011 root@fbsd-hvm:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. panic: pmap_init: page table page is out of range cpuid = 0 KDB: enter: panic [thread pid 0 tid 0 ] Stopped at 0xc010aa2a: movl $0,0xc03e6c74 domain.cfg: kernel = '$somedir/freebsd-kernel' memory = 1024 name = 'freebsd-pv' vif = [] vcpus = '1' disk = [ 'phy:/$volumegroup/freebsd-i386-pv,sda1,w' ] hap = 1 Host machine xm info: release : 2.6.18.8-xen version : #1 SMP Fri May 28 13:46:51 CEST 2010 machine : x86_64 nr_cpus : 8 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2300 hw_caps : 178bf3ff:efd3fbff:00000000:00000310:00802001:00000000:000037ff:00000000 virt_caps : hvm total_memory : 20479 free_memory : 3926 node_to_cpu : node0:0-7 node_to_memory : node0:3926 xen_major : 3 xen_minor : 4 xen_extra : .3 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : Fri May 28 08:04:47 2010 +0100 19976:635c48b8e646 cc_compiler : gcc version 4.2.4 Regards, Andras Colin Percival wrote: > Oops... I should have been a bit more specific. The problem is when running > paravirtualized, not via HVM, so the standard install disk won't help. > > On 01/11/11 11:18, Gót András wrote: >> I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image: >> FreeBSD-8.2-RC1-i386-disc1.iso >> >> Regards, >> Andras >> >> >> Colin Percival wrote: >>> Hi all, >>> >>> I'm looking for someone with a recent AMD system who has Xen running >>> and/or can >>> install it. I've had a report of a FreeBSD 8.x panic while booting on >>> AMD, and >>> it looks very plausible to me, but I need to be able to reproduce it >>> so that I >>> can get a patch tested. >>> >>> If you have such a system, please let me know ASAP -- I'm hoping to >>> get this fix >>> into 8.2-RELEASE, and there's only a few days left. >>> > > From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 13:24:45 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BAD6106566B for ; Wed, 12 Jan 2011 13:24:45 +0000 (UTC) (envelope-from SNasonov@BCC.RU) Received: from extmx.bcc.ru (extmx.bcc.ru [217.170.85.214]) by mx1.freebsd.org (Postfix) with ESMTP id CAE828FC13 for ; Wed, 12 Jan 2011 13:24:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by extmx.bcc.ru (Postfix) with ESMTP id 8520511EAE; Wed, 12 Jan 2011 15:54:22 +0300 (MSK) Received: from extmx.bcc.ru ([127.0.0.1]) by localhost (extmx.bcc.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18730-05; Wed, 12 Jan 2011 15:54:20 +0300 (MSK) Received: from mail.bcc (unknown [172.16.250.23]) by extmx.bcc.ru (Postfix) with ESMTP id 98A5211E91; Wed, 12 Jan 2011 15:54:20 +0300 (MSK) Received: from snasonovnbwxp.bcc ([192.168.201.205]) by mail.bcc over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 12 Jan 2011 16:01:50 +0300 From: Sergey G Nasonov Organization: BCC To: got.andras@deployis.eu, freebsd-xen@freebsd.org, cperciva@freebsd.org Date: Wed, 12 Jan 2011 16:01:58 +0300 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.4; i386; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201101121601.58282.snasonov@bcc.ru> X-OriginalArrivalTime: 12 Jan 2011 13:01:50.0710 (UTC) FILETIME=[E0B64960:01CBB258] X-Virus-Scanned: amavisd-new at bcc.ru Cc: Subject: 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 13:24:45 -0000 I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 cpu_count : 4 vendor: GenuineIntel speed: 1995.001 modelname: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz family: 6 model: 23 stepping: 6 flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc pni vmx ssse3 sse4_1 features: 000ce33d-bfebfbff-00000001-20000800 features_after_reboot: 000ce33d-bfebfbff-00000001-20000800 physical_features: 000ce33d-bfebfbff-00000001-20000800 maskable: base WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 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 8.2-PRERELEASE #4: Wed Jan 12 13:30:44 MSK 2011 root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. panic: pmap_init: page table page is out of range cpuid = 0 KDB: enter: panic [thread pid 0 tid 0 ] Stopped at 0xc010ab0a: movl $0,0xc03e6f74 db> db> db> FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. Unfortunately, currently I dont have any servers with AMD Opteron CPU to test. -- Best Regards, Nasonov Sergey From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 13:27:29 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C7A01065673; Wed, 12 Jan 2011 13:27:29 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 3541D8FC0A; Wed, 12 Jan 2011 13:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=U26u2z0fRmjxYyOuNvNTT6iS/FGgV87lqn10L4xFN7g=; b=JkJB4qZOJgTQxWzkoMBwQedm9KbMFI0rwFYuXQJOS1GvsvdZ3+jKJdoS0wjTOz1CubF8mIxERjbGnkj4Eexw4+K5rWMjpMEkMMQ3NxXXgq4pe1urk0+mHeCCQu5H1qQ7; Received: from [80.95.75.131] (port=54147 helo=[192.168.2.194]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1Pd0jY-0008PE-03 from ; Wed, 12 Jan 2011 14:27:28 +0100 Message-ID: <4D2DAC3F.4040409@deployis.eu> Date: Wed, 12 Jan 2011 14:27:27 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Sergey G Nasonov References: <201101121601.58282.snasonov@bcc.ru> In-Reply-To: <201101121601.58282.snasonov@bcc.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 80.95.75.131) X-Mail-Status-postahivatal: trustedmail (from 80.95.75.131) 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 13:27:29 -0000 Good point. I'll make tests with 768MB and 512MB on AMD and Xeon systems also. Sergey G Nasonov wrote: > I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 > > cpu_count : 4 > vendor: GenuineIntel > speed: 1995.001 > modelname: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz > family: 6 > model: 23 > stepping: 6 > flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc pni vmx ssse3 sse4_1 > features: 000ce33d-bfebfbff-00000001-20000800 > features_after_reboot: 000ce33d-bfebfbff-00000001-20000800 > physical_features: 000ce33d-bfebfbff-00000001-20000800 > maskable: base > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > 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 8.2-PRERELEASE #4: Wed Jan 12 13:30:44 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > panic: pmap_init: page table page is out of range > cpuid = 0 > KDB: enter: panic > [thread pid 0 tid 0 ] > Stopped at 0xc010ab0a: movl $0,0xc03e6f74 > db> > db> > db> > > > FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. > Unfortunately, currently I dont have any servers with AMD Opteron CPU to test. > From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 13:34:02 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AEF01065670; Wed, 12 Jan 2011 13:34:02 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id B5C6B8FC13; Wed, 12 Jan 2011 13:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=TjQ43KbBz88V+WEZ80e+87pbLO0fbPXrBKJEwkrTOsI=; b=tJvmN9WZD2Cadjn1xat0WNLO7VuAvwqd/7qLycVccdKNNP3eI7LPs3VEk6B8jaxODB463Cy3sZ0C08tWRBNJbsKwgwXnfebIjoQGdKA6zMeV5i4Xl3hDfMVujqSP+/fH; Received: from [80.95.75.131] (port=55287 helo=[192.168.2.194]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1Pd0ps-0002Av-Fb from ; Wed, 12 Jan 2011 14:34:00 +0100 Message-ID: <4D2DADC7.8080404@deployis.eu> Date: Wed, 12 Jan 2011 14:33:59 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Sergey G Nasonov References: <201101121601.58282.snasonov@bcc.ru> In-Reply-To: <201101121601.58282.snasonov@bcc.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 80.95.75.131) X-Mail-Status-postahivatal: trustedmail (from 80.95.75.131) 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 13:34:02 -0000 So the results. Xeon machine: boots fine until 832MB RAM, after that came the known error. I raised memory in 32MB steps, so 832MB is fine and 864MB causes the crash. Opteron machine with 512MB (I think Colin wanted to debug this error not the memory related.): CPU: Quad-Core AMD Opteron(tm) Processor 2376 (2300.09-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f42 Family = 10 Model = 4 Stepping = 2 Features=0x1783fbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant real memory = 536870912 (512 MB) avail memory = 515928064 (492 MB) [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) xs_probe: Probe retuns 0 xenstore0: on motherboard [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock xc0: on motherboard Timecounters tick every 10.000 msec xenbusb_front0: on xenstore0 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 Regards, Andras Sergey G Nasonov wrote: > I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 > > cpu_count : 4 > vendor: GenuineIntel > speed: 1995.001 > modelname: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz > family: 6 > model: 23 > stepping: 6 > flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc pni vmx ssse3 sse4_1 > features: 000ce33d-bfebfbff-00000001-20000800 > features_after_reboot: 000ce33d-bfebfbff-00000001-20000800 > physical_features: 000ce33d-bfebfbff-00000001-20000800 > maskable: base > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > 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 8.2-PRERELEASE #4: Wed Jan 12 13:30:44 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > panic: pmap_init: page table page is out of range > cpuid = 0 > KDB: enter: panic > [thread pid 0 tid 0 ] > Stopped at 0xc010ab0a: movl $0,0xc03e6f74 > db> > db> > db> > > > FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. > Unfortunately, currently I dont have any servers with AMD Opteron CPU to test. > From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 17:35:38 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 7D6C7106566B for ; Wed, 12 Jan 2011 17:35:38 +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 8844C14E091 for ; Wed, 12 Jan 2011 17:35:37 +0000 (UTC) Received: (qmail 18173 invoked from network); 12 Jan 2011 17:35:38 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2011 17:35:38 -0000 Message-ID: <4D2DE66A.6000403@freebsd.org> Date: Wed, 12 Jan 2011 09:35:38 -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: Sergey G Nasonov References: <201101121601.58282.snasonov@bcc.ru> In-Reply-To: <201101121601.58282.snasonov@bcc.ru> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:35:38 -0000 Hi, On 01/12/11 05:01, Sergey G Nasonov wrote: > I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 > panic: pmap_init: page table page is out of range > > FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. Yeah, this is a completely separate bug from the one I'm trying to fix right now -- good to know that it's easily reproduced, though, and very interesting to hear that it depends on the amount of RAM you have. Do you get the same panic with -CURRENT? (I'm guessing you will given that the xen code is very close to identical between 9.0 and 8.2, but always best to check...) -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid 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-- From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:31:45 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6648106566C for ; Wed, 12 Jan 2011 20:31:45 +0000 (UTC) (envelope-from tobiasztworek@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4F4958FC15 for ; Wed, 12 Jan 2011 20:31:44 +0000 (UTC) Received: by eyf6 with SMTP id 6so521357eyf.13 for ; Wed, 12 Jan 2011 12:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=QCl7xZKPT+5ZBHwaqOVGF5QkSL/Jj387E/IZ7BSg464=; b=LfO0L62DWbiQWYwOcxg6jSADhHnlueLAa++bZ5/asPE7pmmUrPo0Y5IvJ/jibjkDEF VMudqHw+eDJT5zd08Tf6jIIEWvul+4OBY84UZIfEY7Zl2ho3RDLckVg3ozW9NDME7wRs yPcGNLbrtfdA+xcQWjbXeBx03/2CxZbX0bfZ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=vrlDZHoRqgSfIFS/Y9JrPIfIHqV7KFtIOp7i2MEf4C4pBJGxK+lfJmUbMxjHOnWJx9 NkZVndyLViRISTCbCrJFwJWdklm6BFtGC6zhy4SQabunPRazAQk+/81SDg7wXFVkl516 4Z/Yv1c69UjYt7pb08w3BlNgm+YD5ljvYbgug= Received: by 10.223.101.134 with SMTP id c6mr661553fao.12.1294864303285; Wed, 12 Jan 2011 12:31:43 -0800 (PST) Received: from [10.1.1.4] (87-205-161-54.adsl.inetia.pl [87.205.161.54]) by mx.google.com with ESMTPS id n15sm385632fam.12.2011.01.12.12.31.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 12:31:41 -0800 (PST) Message-ID: <4D2E0FAB.4010900@gmail.com> Date: Wed, 12 Jan 2011 21:31:39 +0100 From: Tobiasz Tworek User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> In-Reply-To: <4D2DE6E6.2090202@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 20:31:46 -0000 I had tested latest curent version on my AMD Athlon II X4 Xen Server 6.5 and i have got panic. My output: WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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-CURRENT #0: Wed Jan 12 20:14:15 CET 2011 root@freebsdcurent:/usr/src/sys/i386/compile/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 3013.708 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f53 Family = 10 Model = 5 Stepping = 3 Features=0x1783fbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant Data TLB: 48 entries, fully associative Instruction TLB: 32 entries, fully associative L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 536870912 (512 MB) Physical memory chunk(s): 0x000000000077d000 - 0x000000001f638fff, 518766592 bytes (126652 pages) avail memory = 515821568 (491 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) ULE: setup cpu 0 [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) Event-channel device installed. nfslock: pseudo-device mem: Pentium Pro MTRR support enabled io: null: random: [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) Grant table initialized xenbus0: on motherboard xc0: on motherboard Device configuration finished. procfs registered Timecounters tick every 10.000 msec kernel trap 9 with interrupts disabled Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer= 0x21:0xc032b311 stack pointer = 0x29:0xlo0: bpf attached c21fec8c frame pointer = 0x29:0xc21fec94 code segment= base 0x0, limit 0xfffff, type [XEN] hypervisor wallclock nudged; nudging TOD. 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+0xa1: hlt Regards, Tobiasz Tworek > 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? > > > > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:34:13 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EF9D1065670 for ; Wed, 12 Jan 2011 20:34:13 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id BF3768FC20 for ; Wed, 12 Jan 2011 20:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=gnlgSAmSF9kxwjF2wfvfiASu9CI4fN5fQyo2yPwx2ZY=; b=cz88Iv1Tfe62vX1pXeZmwPMVafN3Oy6cTEZDMoHGwxKPpasdd1zgHZAhykq9+wcjbGGvsck1Wv1CEGtmo3MRKgSgXWwGx6VXeWUeWkmhf7CGDyTqRYZl6vuuS02X4HCh; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:47086 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1Pd7OV-0004Z5-3E from ; Wed, 12 Jan 2011 21:34:11 +0100 Message-ID: <4D2E1042.5090302@deployis.eu> Date: Wed, 12 Jan 2011 21:34:10 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Tobiasz Tworek References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> In-Reply-To: <4D2E0FAB.4010900@gmail.com> Content-Type: multipart/mixed; boundary="------------040606080308060105070506" X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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 20:34:13 -0000 This is a multi-part message in MIME format. --------------040606080308060105070506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I've attached Colin's patch. It may work on current also. Tobiasz Tworek wrote: > I had tested latest curent version on my AMD Athlon II X4 Xen Server 6.5 > and i have got panic. My output: > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2010 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-CURRENT #0: Wed Jan 12 20:14:15 CET 2011 > root@freebsdcurent:/usr/src/sys/i386/compile/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > Xen reported: 3013.708 MHz processor. > Timecounter "ixen" frequency 1000000000 Hz quality 0 > CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x100f53 Family = 10 Model = 5 > Stepping = 3 > > Features=0x1783fbff > > Features2=0x802009 > AMD > Features=0xee500800 > AMD > Features2=0x37ff > > TSC: P-state invariant > Data TLB: 48 entries, fully associative > Instruction TLB: 32 entries, fully associative > L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative > L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > associative > L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way > associative > real memory = 536870912 (512 MB) > Physical memory chunk(s): > 0x000000000077d000 - 0x000000001f638fff, 518766592 bytes (126652 pages) > avail memory = 515821568 (491 MB) > APIC: Using the MPTable enumerator. > SMP: Added CPU 0 (BSP) > ULE: setup cpu 0 > [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) > [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) > Event-channel device installed. > nfslock: pseudo-device > mem: > Pentium Pro MTRR support enabled > io: > null: > random: > [XEN] xen_rtc_probe: probing Hypervisor RTC clock > rtc0: on motherboard > [XEN] xen_rtc_attach: attaching Hypervisor RTC clock > rtc0: registered as a time-of-day clock (resolution 1000000us, > adjustment 0.500000000s) > Grant table initialized > xenbus0: on motherboard > xc0: on motherboard > Device configuration finished. > procfs registered > Timecounters tick every 10.000 msec > kernel trap 9 with interrupts disabled > > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer= 0x21:0xc032b311 > stack pointer = 0x29:0xlo0: bpf attached > c21fec8c > frame pointer = 0x29:0xc21fec94 > code segment= base 0x0, limit 0xfffff, type [XEN] hypervisor wallclock > nudged; nudging TOD. > 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+0xa1: hlt > > > > Regards, > Tobiasz Tworek > > >> 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? >> >> >> >> _______________________________________________ >> freebsd-xen@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" --------------040606080308060105070506 Content-Type: text/x-patch; name="amdc1e_privileged.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="amdc1e_privileged.patch" Index: i386/i386/machdep.c =================================================================== --- i386/i386/machdep.c (revision 217272) +++ i386/i386/machdep.c (working copy) @@ -1228,6 +1228,7 @@ static int cpu_ident_amdc1e = 0; +#if !defined(XEN) || defined(XEN_PRIVILEGED) static int cpu_probe_amdc1e(void) { @@ -1254,6 +1255,7 @@ #endif return (0); } +#endif /* * C1E renders the local APIC timer dead, so we disable it by @@ -2690,8 +2692,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 --------------040606080308060105070506-- From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:43:03 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2619E1065673 for ; Wed, 12 Jan 2011 20:43:03 +0000 (UTC) (envelope-from tobiasztworek@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A81218FC13 for ; Wed, 12 Jan 2011 20:43:02 +0000 (UTC) Received: by fxm16 with SMTP id 16so1059208fxm.13 for ; Wed, 12 Jan 2011 12:43:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=eHcT8vBMPZE/HsPGRMa1AUtSAQwOSm2vnRy55SIWdNc=; b=bwXp001mr5cEM7dcrQVNri/2XcllUiPbh9iyEvc47CnL7+12tl9CNQjGKY7A2AO77f B5VuwYo5nzUEDN0i2ZzqkJMCxRfvrwQLCTUcLHx71eiVgTywRjEvWA794iHAJQrIv7Fy RPGw/OtcVGfutaqNKBLcvbtmeq2F+Re2BxI9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=n/Bk1mo8eb+9tg7pJW0IDHnBjD0oXnbPJFH/HluKwIuhZIbOYuTTG4sMcBDU/8D5HE 71CduWmeZ9/U8QE5GPbNnwEt8HHuHk98M4HwyRQH2+pVKHaNVej0eEpq1Bj9WxbYELao vkyjrnTR3rAhTw4DOnx3nVH86k+U3sIInvAg0= Received: by 10.223.83.197 with SMTP id g5mr1478056fal.52.1294864981387; Wed, 12 Jan 2011 12:43:01 -0800 (PST) Received: from [10.1.1.4] (87-205-161-54.adsl.inetia.pl [87.205.161.54]) by mx.google.com with ESMTPS id n3sm389492fax.31.2011.01.12.12.42.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 12:43:00 -0800 (PST) Message-ID: <4D2E1253.4030703@gmail.com> Date: Wed, 12 Jan 2011 21:42:59 +0100 From: Tobiasz Tworek User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> <4D2E1042.5090302@deployis.eu> In-Reply-To: <4D2E1042.5090302@deployis.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 20:43:03 -0000 In current patch is attached to file i386/i386/machdep.c. There is no line "#if defined(XEN_PRIVILEGED)". Tobiasz > I've attached Colin's patch. It may work on current also. > > Tobiasz Tworek wrote: >> I had tested latest curent version on my AMD Athlon II X4 Xen Server >> 6.5 and i have got panic. My output: >> >> WARNING: loader(8) metadata is missing! >> GDB: no debug ports present >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2010 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-CURRENT #0: Wed Jan 12 20:14:15 CET 2011 >> root@freebsdcurent:/usr/src/sys/i386/compile/XEN i386 >> WARNING: WITNESS option enabled, expect reduced performance. >> Xen reported: 3013.708 MHz processor. >> Timecounter "ixen" frequency 1000000000 Hz quality 0 >> CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU) >> Origin = "AuthenticAMD" Id = 0x100f53 Family = 10 Model = 5 >> Stepping = 3 >> >> Features=0x1783fbff >> >> Features2=0x802009 >> AMD >> Features=0xee500800 >> AMD >> Features2=0x37ff >> >> TSC: P-state invariant >> Data TLB: 48 entries, fully associative >> Instruction TLB: 32 entries, fully associative >> L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative >> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way >> associative >> L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way >> associative >> real memory = 536870912 (512 MB) >> Physical memory chunk(s): >> 0x000000000077d000 - 0x000000001f638fff, 518766592 bytes (126652 pages) >> avail memory = 515821568 (491 MB) >> APIC: Using the MPTable enumerator. >> SMP: Added CPU 0 (BSP) >> ULE: setup cpu 0 >> [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) >> [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) >> Event-channel device installed. >> nfslock: pseudo-device >> mem: >> Pentium Pro MTRR support enabled >> io: >> null: >> random: >> [XEN] xen_rtc_probe: probing Hypervisor RTC clock >> rtc0: on motherboard >> [XEN] xen_rtc_attach: attaching Hypervisor RTC clock >> rtc0: registered as a time-of-day clock (resolution 1000000us, >> adjustment 0.500000000s) >> Grant table initialized >> xenbus0: on motherboard >> xc0: on motherboard >> Device configuration finished. >> procfs registered >> Timecounters tick every 10.000 msec >> kernel trap 9 with interrupts disabled >> >> >> Fatal trap 9: general protection fault while in kernel mode >> cpuid = 0; apic id = 00 >> instruction pointer= 0x21:0xc032b311 >> stack pointer = 0x29:0xlo0: bpf attached >> c21fec8c >> frame pointer = 0x29:0xc21fec94 >> code segment= base 0x0, limit 0xfffff, type [XEN] hypervisor >> wallclock nudged; nudging TOD. >> 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+0xa1: hlt >> >> >> >> Regards, >> Tobiasz Tworek >> >> >>> 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? >>> >>> >>> >>> _______________________________________________ >>> freebsd-xen@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >>> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:45:56 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54C451065698 for ; Wed, 12 Jan 2011 20:45:56 +0000 (UTC) (envelope-from tobiasztworek@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D620C8FC1C for ; Wed, 12 Jan 2011 20:45:55 +0000 (UTC) Received: by fxm16 with SMTP id 16so1061863fxm.13 for ; Wed, 12 Jan 2011 12:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/EUxJkNvP6C+L+nCzhiEhFc9yVtD4xSX3IK1h30GYK4=; b=AyWc3j3eEfITb1vDsg/HI1oZMvhcAWexztyBWrAONoYI4J1OR/cnMETkbJlTQLfJ/f wmjFmkOasXYsuUxzFi/fwvfxE0otNb43qyo7zSLawKesH44QHt/w5s2O3mu5YZunb6ZK LfvycQVci7v20RaPFKgdHB4HEh6u44QEWJ6O8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qBSo9drXhn4mcYynx5EYHQOO/d21J19BG7R4Bj9baZkrC/MDZffFuUyjxW4eG60eJL VIEpgoxXBWlm8uZrDgvTpCu8w27c6LovyfLJqieEqp+NG3Xvl+nmQj3q6GbTEm8+RTJT BpNiIUXFQ3cIvptBOAFCOfs/orZwN6C/bsazQ= Received: by 10.223.95.207 with SMTP id e15mr1460366fan.145.1294865154751; Wed, 12 Jan 2011 12:45:54 -0800 (PST) Received: from [10.1.1.4] (87-205-161-54.adsl.inetia.pl [87.205.161.54]) by mx.google.com with ESMTPS id n15sm390187fam.36.2011.01.12.12.45.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 12:45:53 -0800 (PST) Message-ID: <4D2E1300.6010303@gmail.com> Date: Wed, 12 Jan 2011 21:45:52 +0100 From: Tobiasz Tworek User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> <4D2E1042.5090302@deployis.eu> <4D2E1253.4030703@gmail.com> In-Reply-To: <4D2E1253.4030703@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 20:45:56 -0000 Sory my bad i will atache path to curent and tomorow i will test it. Tobiasz > In current patch is attached to file i386/i386/machdep.c. > There is no line "#if defined(XEN_PRIVILEGED)". > > Tobiasz >> I've attached Colin's patch. It may work on current also. >> >> Tobiasz Tworek wrote: >>> I had tested latest curent version on my AMD Athlon II X4 Xen Server >>> 6.5 and i have got panic. My output: >>> >>> WARNING: loader(8) metadata is missing! >>> GDB: no debug ports present >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2010 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-CURRENT #0: Wed Jan 12 20:14:15 CET 2011 >>> root@freebsdcurent:/usr/src/sys/i386/compile/XEN i386 >>> WARNING: WITNESS option enabled, expect reduced performance. >>> Xen reported: 3013.708 MHz processor. >>> Timecounter "ixen" frequency 1000000000 Hz quality 0 >>> CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU) >>> Origin = "AuthenticAMD" Id = 0x100f53 Family = 10 Model = 5 >>> Stepping = 3 >>> >>> Features=0x1783fbff >>> >>> Features2=0x802009 >>> AMD >>> Features=0xee500800 >>> AMD >>> Features2=0x37ff >>> >>> TSC: P-state invariant >>> Data TLB: 48 entries, fully associative >>> Instruction TLB: 32 entries, fully associative >>> L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative >>> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way >>> associative >>> L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way >>> associative >>> real memory = 536870912 (512 MB) >>> Physical memory chunk(s): >>> 0x000000000077d000 - 0x000000001f638fff, 518766592 bytes (126652 pages) >>> avail memory = 515821568 (491 MB) >>> APIC: Using the MPTable enumerator. >>> SMP: Added CPU 0 (BSP) >>> ULE: setup cpu 0 >>> [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) >>> [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) >>> Event-channel device installed. >>> nfslock: pseudo-device >>> mem: >>> Pentium Pro MTRR support enabled >>> io: >>> null: >>> random: >>> [XEN] xen_rtc_probe: probing Hypervisor RTC clock >>> rtc0: on motherboard >>> [XEN] xen_rtc_attach: attaching Hypervisor RTC clock >>> rtc0: registered as a time-of-day clock (resolution 1000000us, >>> adjustment 0.500000000s) >>> Grant table initialized >>> xenbus0: on motherboard >>> xc0: on motherboard >>> Device configuration finished. >>> procfs registered >>> Timecounters tick every 10.000 msec >>> kernel trap 9 with interrupts disabled >>> >>> >>> Fatal trap 9: general protection fault while in kernel mode >>> cpuid = 0; apic id = 00 >>> instruction pointer= 0x21:0xc032b311 >>> stack pointer = 0x29:0xlo0: bpf attached >>> c21fec8c >>> frame pointer = 0x29:0xc21fec94 >>> code segment= base 0x0, limit 0xfffff, type [XEN] hypervisor >>> wallclock nudged; nudging TOD. >>> 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+0xa1: hlt >>> >>> >>> >>> Regards, >>> Tobiasz Tworek >>> >>> >>>> 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? >>>> >>>> >>>> >>>> _______________________________________________ >>>> freebsd-xen@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >>>> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > > From owner-freebsd-xen@FreeBSD.ORG Wed Jan 12 20:52:48 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 DE201106566C for ; Wed, 12 Jan 2011 20:52:47 +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 80EA3200A0D for ; Wed, 12 Jan 2011 20:52:25 +0000 (UTC) Received: (qmail 66966 invoked from network); 12 Jan 2011 20:52:26 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2011 20:52:26 -0000 Message-ID: <4D2E148A.6060404@freebsd.org> Date: Wed, 12 Jan 2011 12:52:26 -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: Tobiasz Tworek References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> In-Reply-To: <4D2E0FAB.4010900@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 20:52:48 -0000 On 01/12/11 12:31, Tobiasz Tworek wrote: > I had tested latest curent version on my AMD Athlon II X4 Xen Server 6.5 > and i have got panic. My output: Hmm, that's odd. I didn't think this bug affected HEAD. > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer= 0x21:0xc032b311 Can you check (using addr2line) where 0xc032b311 is? Thanks, -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 13:51:32 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F737106564A; Thu, 13 Jan 2011 13:51:32 +0000 (UTC) (envelope-from SNasonov@BCC.RU) Received: from extmx.bcc.ru (extmx.bcc.ru [217.170.85.214]) by mx1.freebsd.org (Postfix) with ESMTP id E1CEE8FC08; Thu, 13 Jan 2011 13:51:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by extmx.bcc.ru (Postfix) with ESMTP id D61B811ED8; Thu, 13 Jan 2011 16:44:00 +0300 (MSK) Received: from extmx.bcc.ru ([127.0.0.1]) by localhost (extmx.bcc.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09820-03; Thu, 13 Jan 2011 16:43:59 +0300 (MSK) Received: from mail.bcc (unknown [172.16.250.23]) by extmx.bcc.ru (Postfix) with ESMTP id E4272F83F; Thu, 13 Jan 2011 16:43:59 +0300 (MSK) Received: from snasonovnbwxp.bcc ([192.168.201.205]) by mail.bcc over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Jan 2011 16:51:30 +0300 From: Sergey G Nasonov Organization: BCC To: Colin Percival Date: Thu, 13 Jan 2011 16:51:37 +0300 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.4; i386; ; ) References: <201101121601.58282.snasonov@bcc.ru> <4D2DE66A.6000403@freebsd.org> In-Reply-To: <4D2DE66A.6000403@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201101131651.37535.snasonov@bcc.ru> X-OriginalArrivalTime: 13 Jan 2011 13:51:30.0253 (UTC) FILETIME=[FB1237D0:01CBB328] X-Virus-Scanned: amavisd-new at bcc.ru 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: Thu, 13 Jan 2011 13:51:32 -0000 On Wednesday 12 January 2011 20:35:38 Colin Percival wrote: > Hi, > > On 01/12/11 05:01, Sergey G Nasonov wrote: > > I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 > > panic: pmap_init: page table page is out of range > > > > FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. > > Yeah, this is a completely separate bug from the one I'm trying to fix right > now -- good to know that it's easily reproduced, though, and very interesting > to hear that it depends on the amount of RAM you have. Do you get the same > panic with -CURRENT? (I'm guessing you will given that the xen code is very > close to identical between 9.0 and 8.2, but always best to check...) > > Hi, CURRENT kernel goes to panic even with 512 MB RAM: WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 1995.001 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0xbfe3fbff Features2=0xce33d AMD Features=0x20000000 AMD Features2=0x1 Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line real memory = 536870912 (512 MB) Physical memory chunk(s): 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) avail memory = 515637248 (491 MB) ULE: setup cpu 0 [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) Event-channel device installed. mem: Pentium Pro MTRR support enabled null: io: nfslock: pseudo-device random: [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) xenstore0: on motherboard Device configuration finished. procfs registered Timecounters tick every 10.000 msec [XEN] hypervisor wallclock nudged; nudging TOD. lo0: bpf attached xenbusb_front0: on xenstore0 Fatal trap 1: privileged instruction fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer= 0x21:0xc0334e5c stack pointer = 0x29:0xc21fec84 frame pointer = 0x29:0xc21fec88 code segment= base 0x0, limit 0xfffff, type 0x1b = DPL 1, pres 1, def32 xn0: at device/vif/0 on xenbusb_front0 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process= 11 (idle: cpu0) [ thread pid 11 tid 100003 ] Stopped at outb_+0x6ac: monitor db> But if I set VM to 1024 MB the problem the same as in STABLE: WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. panic: pmap_init: page table page is out of range cpuid = 0 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at 0xc011566a: movl $0,0xc04133b4 db> So pmap_init problem is common for STABLE and CURRENT. -- Best Regards, Nasonov Sergey From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 14:16:09 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 690F61065697; Thu, 13 Jan 2011 14:16:09 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id C14F18FC1D; Thu, 13 Jan 2011 14:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=w0w/5piLRY3B7bE2sbHTOg05SzGGjFNaURHaC2b2RlU=; b=iIHAC3wbmhqz5J49iChiOf4K+tmsaJHtTMEEI9fSS6+vCYvdb1sCH+Wg7AoxTnb7PHzUP/OKvHdcYVqDEJvtCvCHxsoJAd9Z6OONBf8wgyzDaRCwkV0MohHm0MgpdP9w; Received: from [80.95.75.131] (port=51320 helo=[192.168.2.194]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdNyB-0007Oj-4B from ; Thu, 13 Jan 2011 15:16:07 +0100 Message-ID: <4D2F0926.3070407@deployis.eu> Date: Thu, 13 Jan 2011 15:16:06 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Sergey G Nasonov References: <201101121601.58282.snasonov@bcc.ru> <4D2DE66A.6000403@freebsd.org> <201101131651.37535.snasonov@bcc.ru> In-Reply-To: <201101131651.37535.snasonov@bcc.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 80.95.75.131) X-Mail-Status-postahivatal: trustedmail (from 80.95.75.131) 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: Thu, 13 Jan 2011 14:16:09 -0000 Is this an SMP kernel with more then 1 vcpus configured? (SMP: Added CPU 0 (BSP)) Sergey G Nasonov wrote: > On Wednesday 12 January 2011 20:35:38 Colin Percival wrote: >> Hi, >> >> On 01/12/11 05:01, Sergey G Nasonov wrote: >>> I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 >>> panic: pmap_init: page table page is out of range >>> >>> FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. >> Yeah, this is a completely separate bug from the one I'm trying to fix right >> now -- good to know that it's easily reproduced, though, and very interesting >> to hear that it depends on the amount of RAM you have. Do you get the same >> panic with -CURRENT? (I'm guessing you will given that the xen code is very >> close to identical between 9.0 and 8.2, but always best to check...) >> >> > > Hi, > > CURRENT kernel goes to panic even with 512 MB RAM: > > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > APIC: Using the MPTable enumerator. > SMP: Added CPU 0 (BSP) > 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > Xen reported: 1995.001 MHz processor. > Timecounter "ixen" frequency 1953125 Hz quality 0 > CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 > Features=0xbfe3fbff > Features2=0xce33d > AMD Features=0x20000000 > AMD Features2=0x1 > Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries > 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size > 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size > L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line > real memory = 536870912 (512 MB) > Physical memory chunk(s): > 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) > avail memory = 515637248 (491 MB) > ULE: setup cpu 0 > [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) > [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) > Event-channel device installed. > mem: > Pentium Pro MTRR support enabled > null: > io: > nfslock: pseudo-device > random: > [XEN] xen_rtc_probe: probing Hypervisor RTC clock > rtc0: on motherboard > [XEN] xen_rtc_attach: attaching Hypervisor RTC clock > rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) > xenstore0: on motherboard > Device configuration finished. > procfs registered > Timecounters tick every 10.000 msec > [XEN] hypervisor wallclock nudged; nudging TOD. > lo0: bpf attached > xenbusb_front0: on xenstore0 > > > Fatal trap 1: privileged instruction fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer= 0x21:0xc0334e5c > stack pointer = 0x29:0xc21fec84 > frame pointer = 0x29:0xc21fec88 > code segment= base 0x0, limit 0xfffff, type 0x1b > = DPL 1, pres 1, def32 xn0: at device/vif/0 on xenbusb_front0 > 1, gran 1 > processor eflags= interrupt enabled, resume, IOPL = 0 > current process= 11 (idle: cpu0) > [ thread pid 11 tid 100003 ] > Stopped at outb_+0x6ac: monitor > db> > > > But if I set VM to 1024 MB the problem the same as in STABLE: > > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > APIC: Using the MPTable enumerator. > SMP: Added CPU 0 (BSP) > 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > panic: pmap_init: page table page is out of range > cpuid = 0 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at 0xc011566a: movl $0,0xc04133b4 > db> > > > So pmap_init problem is common for STABLE and CURRENT. > > From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 14:22:33 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B935610657ED; Thu, 13 Jan 2011 14:22:33 +0000 (UTC) (envelope-from SNasonov@BCC.RU) Received: from extmx.bcc.ru (extmx.bcc.ru [217.170.85.214]) by mx1.freebsd.org (Postfix) with ESMTP id EAEE68FC08; Thu, 13 Jan 2011 14:22:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by extmx.bcc.ru (Postfix) with ESMTP id CB04011ED6; Thu, 13 Jan 2011 17:15:01 +0300 (MSK) Received: from extmx.bcc.ru ([127.0.0.1]) by localhost (extmx.bcc.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10409-01; Thu, 13 Jan 2011 17:15:00 +0300 (MSK) Received: from mail.bcc (unknown [172.16.250.23]) by extmx.bcc.ru (Postfix) with ESMTP id 891FFF83F; Thu, 13 Jan 2011 17:15:00 +0300 (MSK) Received: from snasonovnbwxp.bcc ([192.168.201.205]) by mail.bcc over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Jan 2011 17:22:31 +0300 From: Sergey G Nasonov Organization: BCC To: =?iso-8859-1?q?G=F3t_Andr=E1s?= Date: Thu, 13 Jan 2011 17:22:38 +0300 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.4; i386; ; ) References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> In-Reply-To: <4D2F0926.3070407@deployis.eu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201101131722.38551.snasonov@bcc.ru> X-OriginalArrivalTime: 13 Jan 2011 14:22:31.0420 (UTC) FILETIME=[5069C3C0:01CBB32D] X-Virus-Scanned: amavisd-new at bcc.ru 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: Thu, 13 Jan 2011 14:22:33 -0000 On Thursday 13 January 2011 17:16:06 G=F3t Andr=E1s wrote: > Is this an SMP kernel with more then 1 vcpus configured? >=20 > (SMP: Added CPU 0 (BSP)) >=20 > Sergey G Nasonov wrote: > > On Wednesday 12 January 2011 20:35:38 Colin Percival wrote: > >> Hi, > >> > >> On 01/12/11 05:01, Sergey G Nasonov wrote: > >>> I am sorry for intrusion. I have the same problem (pmap_init) running= FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IB= M x3650 with intel Xeon 5405=20 > >>> panic: pmap_init: page table page is out of range > >>> > >>> FreeBSD VM has 1GB memory. And this problem does not appear when I re= duce amount of RAM to 512 MB.=20 > >> Yeah, this is a completely separate bug from the one I'm trying to fix= right > >> now -- good to know that it's easily reproduced, though, and very inte= resting > >> to hear that it depends on the amount of RAM you have. Do you get the= same > >> panic with -CURRENT? (I'm guessing you will given that the xen code i= s very > >> close to identical between 9.0 and 8.2, but always best to check...) > >> > >> > >=20 > > Hi, > >=20 > > CURRENT kernel goes to panic even with 512 MB RAM: > >=20 > >=20 > > WARNING: loader(8) metadata is missing! > > GDB: no debug ports present > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > APIC: Using the MPTable enumerator. > > SMP: Added CPU 0 (BSP) > > 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 > > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > > WARNING: WITNESS option enabled, expect reduced performance. > > Xen reported: 1995.001 MHz processor. > > Timecounter "ixen" frequency 1953125 Hz quality 0 > > CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-c= lass CPU) > > Origin =3D "GenuineIntel" Id =3D 0x10676 Family =3D 6 Model =3D 17= Stepping =3D 6 > > Features=3D0xbfe3fbff > > Features2=3D0xce33d > > AMD Features=3D0x20000000 > > AMD Features2=3D0x1 > > Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries > > 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line= size > > 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size > > L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line > > real memory =3D 536870912 (512 MB) > > Physical memory chunk(s): > > 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) > > avail memory =3D 515637248 (491 MB) > > ULE: setup cpu 0 > > [XEN] IPI cpu=3D0 irq=3D128 vector=3DRESCHEDULE_VECTOR (0) > > [XEN] IPI cpu=3D0 irq=3D129 vector=3DCALL_FUNCTION_VECTOR (1) > > Event-channel device installed. > > mem: > > Pentium Pro MTRR support enabled > > null: > > io: > > nfslock: pseudo-device > > random: > > [XEN] xen_rtc_probe: probing Hypervisor RTC clock > > rtc0: on motherboard > > [XEN] xen_rtc_attach: attaching Hypervisor RTC clock > > rtc0: registered as a time-of-day clock (resolution 1000000us, adjustme= nt 0.500000000s) > > xenstore0: on motherboard > > Device configuration finished. > > procfs registered > > Timecounters tick every 10.000 msec > > [XEN] hypervisor wallclock nudged; nudging TOD. > > lo0: bpf attached > > xenbusb_front0: on xenstore0 > >=20 > >=20 > > Fatal trap 1: privileged instruction fault while in kernel mode > > cpuid =3D 0; apic id =3D 00 > > instruction pointer=3D 0x21:0xc0334e5c > > stack pointer =3D 0x29:0xc21fec84 > > frame pointer =3D 0x29:0xc21fec88 > > code segment=3D base 0x0, limit 0xfffff, type 0x1b > > =3D DPL 1, pres 1, def32 xn0: at device/vif= /0 on xenbusb_front0 > > 1, gran 1 > > processor eflags=3D interrupt enabled, resume, IOPL =3D 0 > > current process=3D 11 (idle: cpu0) > > [ thread pid 11 tid 100003 ] > > Stopped at outb_+0x6ac: monitor > > db>=20 No, this is FreeBSD CURRENT VM with single vCPU.=20 Adding additional vCPU lead to another problem. For example: WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) SMP: Added CPU 1 (AP) 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. =46reeBSD is a registered trademark of The FreeBSD Foundation. =46reeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 1994.998 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class= CPU) Origin =3D "GenuineIntel" Id =3D 0x10676 Family =3D 6 Model =3D 17 St= epping =3D 6 Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line real memory =3D 536870912 (512 MB) Physical memory chunk(s): 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) avail memory =3D 515637248 (491 MB) gdtpfn=3D18ec63 pdptpfn=3D8930c panic: HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt): /usr/src/sys/i386= /xen/mp_machdep.c:926 cpuid =3D 0 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db>=20 Features=3D0xbfe3fbff Features2=3D0xce33d AMD Features=3D0x20000000 AMD Features2=3D0x1 =2D-=20 Best Regards, Nasonov Sergey From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 16:25:57 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FDDD106566C for ; Thu, 13 Jan 2011 16:25:57 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id C57368FC08 for ; Thu, 13 Jan 2011 16:25:56 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.4/8.14.4) with ESMTP id p0DGPtcu068972 for ; Thu, 13 Jan 2011 17:25:55 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.4/8.14.4/Submit) id p0DGPtqw068971 for freebsd-xen@freebsd.org; Thu, 13 Jan 2011 11:25:55 -0500 (EST) (envelope-from cracauer) Date: Thu, 13 Jan 2011 11:25:55 -0500 From: Martin Cracauer To: freebsd-xen@freebsd.org Message-ID: <20110113162555.GA61717@cons.org> References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201101131722.38551.snasonov@bcc.ru> User-Agent: Mutt/1.4.2.3i 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: Thu, 13 Jan 2011 16:25:57 -0000 FWIW, I have a Xen 4.x install on a Phenom II now and I can give out accounts on there if it helps the cause. BTW, did anyone succeed in making a Xen 4.x install with a Debian/squeeze dom0 go through a diskless PXE boot? I can't use the same kernel that works on local disk since it doesn't have root_nfs. All my attempts to compile that very kernel with Debian's own config and sources ends up with the "screen goes blank after Xen messages when entering dom0 kernel" syndrome which indicates to me I am missing some Dom0 support in that kernel. But the precompiled one works. Also, previously I had problems that the Xen scripts connecting the DomU via an Ethernet bridge would intermittently disconnect the physical Ethernet connection. Which in the case of a diskless machine stopped that very script ;-) Anyone got any tips here? Not use Debian would be a way I suppose. What do you guys have for Dom0? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 16:56:03 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 281E11065673 for ; Thu, 13 Jan 2011 16:56:03 +0000 (UTC) (envelope-from tobiasztworek@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A37BE8FC1B for ; Thu, 13 Jan 2011 16:56:02 +0000 (UTC) Received: by bwz12 with SMTP id 12so1581525bwz.13 for ; Thu, 13 Jan 2011 08:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=AZC/1NCbK9+/IvGLyKRrAjv5FLKQwOsttj/nsLQOTgc=; b=WeIaxxCxDAmw4KaudTCcbAdlz8kNKt6NZrl2Tki9jOSTzn/LpDvdxs4WuiJFMkdg5d Jwf/ToHr3o5ZCa9/QHqKMtCqwXfTBv8Rb8SUE/M8nbtWIcuYUS1wjOvSFJx2C/dIIKM3 HZuU2BPzpo5017ObdgrWZwcKHsxU2uKR1uSBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=o3MPCBxVX+eIUglrejjF/Lb6GxQAzRbE9En6hDIZhaLAmo2+ilVRE5nwcJ40RsGYei mwxLJPBCcntT95FaOOZ3sFeiSzTwy5Ti1mczROBPvRzJGOZd7Z+XNZ34EVct5fvdop8a Ygs7sEV+nfbOF3GA1kVY/fv+lmz0Vg5DqLYE0= Received: by 10.204.148.74 with SMTP id o10mr1973395bkv.109.1294937761410; Thu, 13 Jan 2011 08:56:01 -0800 (PST) Received: from [10.1.1.4] (77-255-34-112.adsl.inetia.pl [77.255.34.112]) by mx.google.com with ESMTPS id v1sm785793bkt.5.2011.01.13.08.56.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 08:56:00 -0800 (PST) Message-ID: <4D2F2E9F.8010307@gmail.com> Date: Thu, 13 Jan 2011 17:55:59 +0100 From: Tobiasz Tworek User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <4D2DADC7.8080404@deployis.eu> <4D2DE6E6.2090202@freebsd.org> <4D2E0FAB.4010900@gmail.com> <4D2E148A.6060404@freebsd.org> In-Reply-To: <4D2E148A.6060404@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 13 Jan 2011 16:56:03 -0000 On 01/12/11 12:31, Tobiasz Tworek wrote: >> I had tested latest curent version on my AMD Athlon II X4 Xen Server 6.5 >> and i have got panic. My output: > Hmm, that's odd. I didn't think this bug affected HEAD. > >> Fatal trap 9: general protection fault while in kernel mode >> cpuid = 0; apic id = 00 >> instruction pointer= 0x21:0xc032b311 > Can you check (using addr2line) where 0xc032b311 is? > > Thanks, This is output of addr2line of address 0xc032b311 # addr2line -f -e kernel.debug 0xc032b311 cpu_idle_abdc1e ../../../i386/i386/machdep.c:1298 i will now try your patch for 8.2 to head and will post results. Tobiasz From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:29:19 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EC0B1065670 for ; Thu, 13 Jan 2011 22:29:19 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id E10F38FC16 for ; Thu, 13 Jan 2011 22:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=BDBGdTNsbnrHVsEAvY7ksvBPhiURGQJRkq+QX9WRcuo=; b=dQrGieRYgb4Gc9T3wrfKsUysJqxAIpGylZCftNTFYBWAVvBZupZKfcKQ+T/0AxbBjrPOnnWXsRHvYKk98zMmZ93EOf5oIVuhuNzmYxIYpNpTcTbrghkZiuzVg1300SSq; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:53096 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdVfQ-0002Vt-Sq from ; Thu, 13 Jan 2011 23:29:17 +0100 Message-ID: <4D2F7CBC.4090502@deployis.eu> Date: Thu, 13 Jan 2011 23:29:16 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Sergey G Nasonov References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> In-Reply-To: <201101131722.38551.snasonov@bcc.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Thu, 13 Jan 2011 22:29:19 -0000 Sergey G Nasonov wrote: > On Thursday 13 January 2011 17:16:06 Gót András wrote: >> Is this an SMP kernel with more then 1 vcpus configured? >> >> (SMP: Added CPU 0 (BSP)) >> >> Sergey G Nasonov wrote: >>> On Wednesday 12 January 2011 20:35:38 Colin Percival wrote: >>>> Hi, >>>> >>>> On 01/12/11 05:01, Sergey G Nasonov wrote: >>>>> I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 >>>>> panic: pmap_init: page table page is out of range >>>>> >>>>> FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. >>>> Yeah, this is a completely separate bug from the one I'm trying to fix right >>>> now -- good to know that it's easily reproduced, though, and very interesting >>>> to hear that it depends on the amount of RAM you have. Do you get the same >>>> panic with -CURRENT? (I'm guessing you will given that the xen code is very >>>> close to identical between 9.0 and 8.2, but always best to check...) >>>> >>>> >>> Hi, >>> >>> CURRENT kernel goes to panic even with 512 MB RAM: >>> >>> >>> WARNING: loader(8) metadata is missing! >>> GDB: no debug ports present >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> APIC: Using the MPTable enumerator. >>> SMP: Added CPU 0 (BSP) >>> 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 >>> root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 >>> WARNING: WITNESS option enabled, expect reduced performance. >>> Xen reported: 1995.001 MHz processor. >>> Timecounter "ixen" frequency 1953125 Hz quality 0 >>> CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) >>> Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 >>> Features=0xbfe3fbff >>> Features2=0xce33d >>> AMD Features=0x20000000 >>> AMD Features2=0x1 >>> Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries >>> 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size >>> 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size >>> L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line >>> real memory = 536870912 (512 MB) >>> Physical memory chunk(s): >>> 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) >>> avail memory = 515637248 (491 MB) >>> ULE: setup cpu 0 >>> [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) >>> [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) >>> Event-channel device installed. >>> mem: >>> Pentium Pro MTRR support enabled >>> null: >>> io: >>> nfslock: pseudo-device >>> random: >>> [XEN] xen_rtc_probe: probing Hypervisor RTC clock >>> rtc0: on motherboard >>> [XEN] xen_rtc_attach: attaching Hypervisor RTC clock >>> rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) >>> xenstore0: on motherboard >>> Device configuration finished. >>> procfs registered >>> Timecounters tick every 10.000 msec >>> [XEN] hypervisor wallclock nudged; nudging TOD. >>> lo0: bpf attached >>> xenbusb_front0: on xenstore0 >>> >>> >>> Fatal trap 1: privileged instruction fault while in kernel mode >>> cpuid = 0; apic id = 00 >>> instruction pointer= 0x21:0xc0334e5c >>> stack pointer = 0x29:0xc21fec84 >>> frame pointer = 0x29:0xc21fec88 >>> code segment= base 0x0, limit 0xfffff, type 0x1b >>> = DPL 1, pres 1, def32 xn0: at device/vif/0 on xenbusb_front0 >>> 1, gran 1 >>> processor eflags= interrupt enabled, resume, IOPL = 0 >>> current process= 11 (idle: cpu0) >>> [ thread pid 11 tid 100003 ] >>> Stopped at outb_+0x6ac: monitor >>> db> > > > No, this is FreeBSD CURRENT VM with single vCPU. > Adding additional vCPU lead to another problem. For example: > > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > APIC: Using the MPTable enumerator. > SMP: Added CPU 0 (BSP) > SMP: Added CPU 1 (AP) > 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-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011 > root@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386 > WARNING: WITNESS option enabled, expect reduced performance. > Xen reported: 1994.998 MHz processor. > Timecounter "ixen" frequency 1953125 Hz quality 0 > CPU: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (1995.00-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 > Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries > 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size > 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size > L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line > real memory = 536870912 (512 MB) > Physical memory chunk(s): > 0x000000000079b000 - 0x000000001f638fff, 518643712 bytes (126622 pages) > avail memory = 515637248 (491 MB) > gdtpfn=18ec63 pdptpfn=8930c > panic: HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt): /usr/src/sys/i386/xen/mp_machdep.c:926 > cpuid = 0 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at kdb_enter+0x3a: movl $0,kdb_why > db> > Features=0xbfe3fbff > Features2=0xce33d > AMD Features=0x20000000 > AMD Features2=0x1 > > I can confirm this... Started domain freebsd-pv (id=27) WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 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-CURRENT #0: Thu Jan 13 21:57:19 CET 2011 root@fbsd-hvm:/usr/obj/usr/src/current/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 3000.104 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X5450 @ 3.00GHz (3000.10-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0xbfe3fbff Features2=0xce3bd AMD Features=0x20000000 AMD Features2=0x1 real memory = 536870912 (512 MB) avail memory = 515633152 (491 MB) [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock xenstore0: on motherboard xc0: on motherboard Timecounters tick every 10.000 msec xenbusb_front0: on xenstore0 [XEN] hypervisor wallclock nudged; nudging TOD. xenbusb_back0: on xenstore0 xctrl0: on xenstore0 Fatal trap 1: privileged instruction fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x21:0xc0334e5c stack pointer = 0x29:0xc21fec84 frame pointer = 0x29:0xc21fec88 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 11 (idle: cpu0) [ thread pid 11 tid 100003 ] Stopped at outb_+0x6ac: monitor db> From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:33:04 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 CC1A510656C3 for ; Thu, 13 Jan 2011 22:33:04 +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 CAE93156035 for ; Thu, 13 Jan 2011 22:33:03 +0000 (UTC) Received: (qmail 84030 invoked from network); 13 Jan 2011 22:33:05 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2011 22:33:05 -0000 Message-ID: <4D2F7DA1.4050206@freebsd.org> Date: Thu, 13 Jan 2011 14:33:05 -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> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> In-Reply-To: <4D2F7CBC.4090502@deployis.eu> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-xen@freebsd.org, Sergey G Nasonov 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: Thu, 13 Jan 2011 22:33:04 -0000 On 01/13/11 14:29, Gót András wrote: > Fatal trap 1: privileged instruction fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x21:0xc0334e5c > stack pointer = 0x29:0xc21fec84 > frame pointer = 0x29:0xc21fec88 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 1, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 11 (idle: cpu0) > [ thread pid 11 tid 100003 ] > Stopped at outb_+0x6ac: monitor > db> This is a different panic (PR kern/152228). To fix this one, set machdep.idle_mwait=0 in the loader. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:33:27 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D93141065697 for ; Thu, 13 Jan 2011 22:33:27 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 94A658FC14 for ; Thu, 13 Jan 2011 22:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=TfaxVTJxyG94+v6H9w45ME8Fyu/9+cQu52Vniw2G/bQ=; b=ljfiJ9WV2T2YI29SuubFMV7+oMwWdtXL0rCWFdJvWmItfcYlRPICOpoKpq2GrqiR1bSaIYTUm+EQv9Nr42B+k9VDR4IGx5PfmrnskXPUHrX7oOCPx0qQu6xZti4tYw/X; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:42546 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdVjS-0002kX-IM from ; Thu, 13 Jan 2011 23:33:26 +0100 Message-ID: <4D2F7DB6.4040004@deployis.eu> Date: Thu, 13 Jan 2011 23:33:26 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Martin Cracauer References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <20110113162555.GA61717@cons.org> In-Reply-To: <20110113162555.GA61717@cons.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Thu, 13 Jan 2011 22:33:27 -0000 Do you use "stock" Xen or the Debian bundled one? However I'd suggest that boot from local disk (usb is also good) and use nfs only for guests. I'd also suggest that try 3.4.3. If you could boot CURRENT and 8-RC2 on that, at least try it, it would help a little imho. Martin Cracauer wrote: > FWIW, I have a Xen 4.x install on a Phenom II now and I can give out > accounts on there if it helps the cause. > > BTW, did anyone succeed in making a Xen 4.x install with a > Debian/squeeze dom0 go through a diskless PXE boot? I can't use the > same kernel that works on local disk since it doesn't have root_nfs. > All my attempts to compile that very kernel with Debian's own config > and sources ends up with the "screen goes blank after Xen messages > when entering dom0 kernel" syndrome which indicates to me I am missing > some Dom0 support in that kernel. But the precompiled one works. > > Also, previously I had problems that the Xen scripts connecting the > DomU via an Ethernet bridge would intermittently disconnect the > physical Ethernet connection. Which in the case of a diskless machine > stopped that very script ;-) > > Anyone got any tips here? Not use Debian would be a way I suppose. > What do you guys have for Dom0? > > Martin From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:35:45 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BB2910656C7; Thu, 13 Jan 2011 22:35:45 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id CA81B8FC29; Thu, 13 Jan 2011 22:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=06CoyHsOeZmnGXYMLnFdjAwNrDS89TOJ5rNOefuDzXk=; b=W377d1zcdEeW55dF2DUNjO9zshqbsx/5xfIecWlD7630WNdqHkkVeJTpFFHSjrx6aUtvQ6Cf1o1rHsRdiSp4SyUD0ybvCOXQR4R9a43WytCnmUmemTwih8EadDuvX5Fi; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:42550 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdVlg-0002n0-2B from ; Thu, 13 Jan 2011 23:35:44 +0100 Message-ID: <4D2F7E3F.1000007@deployis.eu> Date: Thu, 13 Jan 2011 23:35:43 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> <4D2F7DA1.4050206@freebsd.org> In-Reply-To: <4D2F7DA1.4050206@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) Cc: 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: Thu, 13 Jan 2011 22:35:45 -0000 Colin Percival wrote: > On 01/13/11 14:29, Gót András wrote: >> Fatal trap 1: privileged instruction fault while in kernel mode >> cpuid = 0; apic id = 00 >> instruction pointer = 0x21:0xc0334e5c >> stack pointer = 0x29:0xc21fec84 >> frame pointer = 0x29:0xc21fec88 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 1, pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 11 (idle: cpu0) >> [ thread pid 11 tid 100003 ] >> Stopped at outb_+0x6ac: monitor >> db> > > This is a different panic (PR kern/152228). To fix this one, set > machdep.idle_mwait=0 in the loader. > er, how could we set it from the Xen config side (or any side)? With Linux, in PV mode Xen just boots the kernel with some params. From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:39:54 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 4C4351065679 for ; Thu, 13 Jan 2011 22:39:54 +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 05B60151880 for ; Thu, 13 Jan 2011 22:39:53 +0000 (UTC) Received: (qmail 84102 invoked from network); 13 Jan 2011 22:39:55 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2011 22:39:55 -0000 Message-ID: <4D2F7F3A.6090008@freebsd.org> Date: Thu, 13 Jan 2011 14:39:54 -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> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> <4D2F7DA1.4050206@freebsd.org> <4D2F7E3F.1000007@deployis.eu> In-Reply-To: <4D2F7E3F.1000007@deployis.eu> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: Thu, 13 Jan 2011 22:39:54 -0000 On 01/13/11 14:35, Gót András wrote: > Colin Percival wrote: >> This is a different panic (PR kern/152228). To fix this one, set >> machdep.idle_mwait=0 in the loader. > > er, how could we set it from the Xen config side (or any side)? With > Linux, in PV mode Xen just boots the kernel with some params. I think putting it into the extra="..." line in a xen domain config file works. I'm using pv-grub, and with that I just add the config options after the kernel path (e.g., "kernel /boot/kernel/kernel machdep.idle_mwait=0,boot_verbose=1"). -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Thu Jan 13 22:46:41 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC121065679; Thu, 13 Jan 2011 22:46:41 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7B58FC14; Thu, 13 Jan 2011 22:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=w11W5ArEaJagVz0gYc1IehAw7JhGOMwr8VrZAxTCLkA=; b=ohVUhc0wxTi5gcQNtrJDwnP7Ca3pfP7HaxlypqENIN5qVwOQlezWptjnIO1WpeV1QWwSCFoI5U5GnrD0f0W2vQvyfHej5xSAQOcpUJ9eZgT+tgHFHhni1k5ADk71miNS; Received: from 54033545.catv.pool.telekom.hu ([84.3.53.69]:48628 helo=[192.168.0.102]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdVwG-0003H0-Db from ; Thu, 13 Jan 2011 23:46:40 +0100 Message-ID: <4D2F80D0.5000803@deployis.eu> Date: Thu, 13 Jan 2011 23:46:40 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Colin Percival References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> <4D2F7DA1.4050206@freebsd.org> <4D2F7E3F.1000007@deployis.eu> <4D2F7F3A.6090008@freebsd.org> In-Reply-To: <4D2F7F3A.6090008@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 84.3.53.69) X-Mail-Status-postahivatal: trustedmail (from 84.3.53.69) 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: Thu, 13 Jan 2011 22:46:42 -0000 Colin Percival wrote: > On 01/13/11 14:35, Gót András wrote: >> Colin Percival wrote: >>> This is a different panic (PR kern/152228). To fix this one, set >>> machdep.idle_mwait=0 in the loader. >> er, how could we set it from the Xen config side (or any side)? With >> Linux, in PV mode Xen just boots the kernel with some params. > > I think putting it into the extra="..." line in a xen domain config file works. > I'm using pv-grub, and with that I just add the config options after the kernel > path (e.g., "kernel /boot/kernel/kernel machdep.idle_mwait=0,boot_verbose=1"). > Thanks, I've just find it here: http://wiki.freebsd.org/AdrianChadd/XenHackery It boots fine with machdep.idle_mwait=0 From owner-freebsd-xen@FreeBSD.ORG Fri Jan 14 08:24:23 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 97D9E106567A for ; Fri, 14 Jan 2011 08:24:23 +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 89B0F151662 for ; Fri, 14 Jan 2011 08:24:22 +0000 (UTC) Received: (qmail 89588 invoked from network); 14 Jan 2011 08:24:24 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2011 08:24:24 -0000 Message-ID: <4D300838.7090205@freebsd.org> Date: Fri, 14 Jan 2011 00:24:24 -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> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> <4D2F7DA1.4050206@freebsd.org> <4D2F7E3F.1000007@deployis.eu> <4D2F7F3A.6090008@freebsd.org> <4D2F80D0.5000803@deployis.eu> In-Reply-To: <4D2F80D0.5000803@deployis.eu> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: Fri, 14 Jan 2011 08:24:23 -0000 On 01/13/11 14:46, Gót András wrote: > It boots fine with machdep.idle_mwait=0 Ok, so to be clear: The AMD system which needs my patch in order to boot 8.2 can boot the latest HEAD without any patches? -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Fri Jan 14 08:42:07 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B675106564A; Fri, 14 Jan 2011 08:42:07 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id EA11D8FC12; Fri, 14 Jan 2011 08:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=N7MVZi3RgNf2Uqiff173RfDOIyzA/S9SfSb2POlOlpk=; b=XasnIs8+pXR62l6ngDnHZ7QuCXk6w+pGW277HOEIYNxEYzPQFkHwDe4vqX2r7iyAVtNAwYis8yCbxAGcRqJSxoPON1EW619ftUqEehz6fjj3hkT4MKY6c9WtOmxog4de; Received: from [80.95.75.131] (port=26687 helo=[192.168.2.194]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PdfEU-0005Kq-1Y from ; Fri, 14 Jan 2011 09:42:06 +0100 Message-ID: <4D300C5D.5000307@deployis.eu> Date: Fri, 14 Jan 2011 09:42:05 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Colin Percival References: <201101121601.58282.snasonov@bcc.ru> <201101131651.37535.snasonov@bcc.ru> <4D2F0926.3070407@deployis.eu> <201101131722.38551.snasonov@bcc.ru> <4D2F7CBC.4090502@deployis.eu> <4D2F7DA1.4050206@freebsd.org> <4D2F7E3F.1000007@deployis.eu> <4D2F7F3A.6090008@freebsd.org> <4D2F80D0.5000803@deployis.eu> <4D300838.7090205@freebsd.org> In-Reply-To: <4D300838.7090205@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-DKIM-Status: None (from 80.95.75.131) X-Mail-Status-postahivatal: trustedmail (from 80.95.75.131) 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: Fri, 14 Jan 2011 08:42:07 -0000 Yes, it also boots fine on amd system, but only with the machdep.idle_mwait=0. Colin Percival wrote: > On 01/13/11 14:46, Gót András wrote: >> It boots fine with machdep.idle_mwait=0 > > Ok, so to be clear: The AMD system which needs my patch in order to boot 8.2 > can boot the latest HEAD without any patches? > From owner-freebsd-xen@FreeBSD.ORG Sat Jan 15 08:28:32 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFF9E106564A for ; Sat, 15 Jan 2011 08:28:32 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8238FC08 for ; Sat, 15 Jan 2011 08:28:32 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0F8SVMs072754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 15 Jan 2011 08:28:31 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0F8SVMs072754 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295080111; x=1295684911; bh=neHAMCinE8UF7+Y90INmYhHZXLht28S/Nfr5Ocg8gik=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=l+4oOmevgYIJ/QRhzjS2KdfzUd7+uWT+yloDbIVVt5N2AnjDd8RLAES4kBRLfW/7P 06cCCbYuqV7upaO9MChPkbcgxJiNClCnJjiM0MWRMndd5fiQ3cPv4gHiZQjeU4r6NQ F73N0tzoLCQyuwRJ3eNo3aaLakXg6GXFS1lRPnBQ= Date: Sat, 15 Jan 2011 08:28:31 +0000 (UTC) From: Janne Snabb To: freebsd-xen@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Sat, 15 Jan 2011 08:28:31 +0000 (UTC) Subject: xn0: Error 2 parsing device/vif/0/mac 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: Sat, 15 Jan 2011 08:28:33 -0000 Hi, I have been trying to get Xen para-virtualized device drivers to work with RELENG_8_2 and -current. It appears that that the netfront driver fails to get the vif mac address which leads to panic shortly afterwards. The Xen networking mode is bridged (with default config, automatically allocated mac address). I have been trying this with FreeBSD-8.2RC1 (i386 and amd64) as distributed and FreeBSD-8.2RC2 (amd64) as of yesterday as well as FreeBSD-CURRENT (amd64) as of yesterday (r217387). I have tried this with Xen 4.0.1 with Gentoo (x86_64 testing) dom0 as well as with Xen 4.0.1, 3.4.3 and 3.3.2 with CentOS 5.5 (x86_64) dom0. If I enable the xenbus drivers (XENHVM kernel config on amd64 or XEN on i386) I always get the following result: [..] xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 28 at device 3.0 on pci0 xs_probe: Probe retuns 0 xenstore0: on xenpci0 [..] xenbusb_front0: on xenstore0 xn0: at device/vif/0 on xenbusb_front0 xn0: Error 2 parsing device/vif/0/mac xn0: Fatal error. Transitioning to Closing State xbd0: 30720MB at device/vbd/768 on xenbusb_front0 xbd0: attaching as ad0 xbd1: 332MB at device/vbd/5632 on xenbusb_front0 xbd1: attaching as ad2 panic: do something smart When using full HVM mode (emulated realtek) I have no problems with Xen 4.0.1 nor 3.4.3 (both i386 and amd64 GENERIC kernels work fine). Xen 3.3.2 causes 8.2RC2 to freeze during probing some devices and 3.0.3 crashes right at the boot loader before attempting to load the kernel. But that does not really matter, those versions are obsolete. I can also confirm that i386 XEN (PV) kernel panics if the domain is given too much memory as already discussed on this list in the previous threads. Is the xn (netfront) driver supposed to work with some Xen version? I have no fancy nor strange kernel or Xen settings. Is there something I am overlooking? Please see the bottom of this message for a couple of full boot message logs including kernel backtraces. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ RELENG_8_2 kernel i386 config XEN (Xen 4.0.1 in PV mode): WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb 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 8.2-RC2 #0: Fri Jan 14 10:37:32 UTC 2011 snabb@xxx.epipe.com:/usr/obj/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2800.078 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3460 @ 2.80GHz (2800.08-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0xbfe3fbff Features2=0x98e3fd AMD Features=0x28100000 AMD Features2=0x1 TSC: P-state invariant real memory = 536870912 (512 MB) avail memory = 515928064 (492 MB) gdtpfn=7cc41 pdptpfn=4dc63 gdtpfn=7cc40 pdptpfn=4dc5d gdtpfn=7cc3f pdptpfn=4dc57 gdtpfn=7cc3e pdptpfn=4dc81 gdtpfn=7cc3d pdptpfn=4dc7b gdtpfn=7cc3c pdptpfn=4dc75 gdtpfn=7cc3b pdptpfn=4dc6f FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=1 irq=130 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=1 irq=131 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=2 irq=133 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=2 irq=134 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=3 irq=135 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=3 irq=136 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=4 irq=137 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=4 irq=138 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=5 irq=139 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=5 irq=140 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=6 irq=141 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=6 irq=142 vector=CALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=7 irq=143 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=7 irq=144 vector=CALL_FUNCTION_VECTOR (1) xs_probe: Probe retuns 0 xenstore0: on motherboard [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock xc0: on motherboard Timecounters tick every 10.000 msec [XEN] hypervisor wallclock nudged; nudging TOD. xenbusb_front0: on xenstore0 xn0: at device/vif/0 on xenbusb_front0 xbd0: 30720MB at device/vbd/768 on xenbusb_front0 xbd0: attaching as ad0 xn0: Error 2 parsing device/vif/0/mac xn0: Fatal error. Transitioning to Closing State panic: do something smart cpuid = 0 KDB: enter: panic [thread pid 0 tid 100000 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> halt RELENG_8_2 kernel amd64 config XENHVM (Xen 4.0.1 HVM mode): KDB: debugger backends: ddb KDB: current backend: ddb 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 8.2-RC2 #2: Fri Jan 14 06:05:39 UTC 2011 snabb@xxx.epipe.com:/usr/obj/usr/src/sys/XENHVM amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3460 @ 2.80GHz (2800.02-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0x1781fbff Features2=0x80982201> AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant real memory = 1073741824 (1024 MB) avail memory = 1016918016 (969 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 8 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 2 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 6 cpu4 (AP): APIC ID: 8 cpu5 (AP): APIC ID: 10 cpu6 (AP): APIC ID: 12 cpu7 (AP): APIC ID: 14 ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-47 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1f48-0x1f4b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc200-0xc20f at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 1.3 (no driver attached) vgapci0: mem 0xf0000000-0xf1ffffff,0xf3000000-0xf3000fff at device 2.0 on pci0 xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 28 at device 3.0 on pci0 xs_probe: Probe retuns 0 xenstore0: on xenpci0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: does not respond device_attach: fdc0 attach returned 6 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart0: console (9600,n,8,1) ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: [ITHREAD] lpt0: on ppbus0 lpt0: [ITHREAD] lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc9000-0xc97ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec acd0: CDROM at ata1-master WDMA2 xenbusb_front0: on xenstore0 xn0: at device/vif/0 on xenbusb_front0 xn0: Error 2 parsing device/vif/0/mac xn0: Fatal error. Transitioning to Closing State xbd0: 30720MB at device/vbd/768 on xenbusb_front0 xbd0: attaching as ad0 xbd1: 332MB at device/vbd/5632 on xenbusb_front0 xbd1: attaching as ad2 panic: do something smart cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 panic() at panic+0x187 netfront_attach() at netfront_attach+0x18c device_attach() at device_attach+0x69 xenbusb_probe_children() at xenbusb_probe_children+0xdf xenbusb_attach() at xenbusb_attach+0x11c device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a xs_attach_deferred() at xs_attach_deferred+0x21 run_interrupt_driven_config_hooks() at run_interrupt_driven_config_hooks+0xab boot_run_interrupt_driven_config_hooks() at boot_run_interrupt_driven_config_hooks+0x2c mi_startup() at mi_startup+0x77 btext() at btext+0x2c KDB: enter: panic [thread pid 0 tid 100000 ] Stopped at kdb_enter+0x3d: movq $0,0x6c7a90(%rip) db> halt From owner-freebsd-xen@FreeBSD.ORG Sat Jan 15 10:12:16 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFC5510656CA for ; Sat, 15 Jan 2011 10:12:16 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id B34B68FC14 for ; Sat, 15 Jan 2011 10:12:16 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0FACGWf096820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 15 Jan 2011 10:12:16 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0FACGWf096820 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295086336; x=1295691136; bh=siXK9GUJQpwTLC7qgbZJrXcXs48ciVUqQX5c1oivldM=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=arP2rlFN2esqO/RP8yDBnd8uqVUiAmS+jGpqU61tY1/7tdY6Rp3QEjd1EW7S9BOSK XXIZUu3Qi9/J3qLVXa8EJwFQQ+nq+YAY/M5x1Gfq56MyaueFQLmSb+t35Cdm2zz43o wGNxqN0Q/GpnOwa699VXetvnI431BrhyOI1oCD20= Date: Sat, 15 Jan 2011 10:12:16 +0000 (UTC) From: Janne Snabb To: freebsd-xen@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Sat, 15 Jan 2011 10:12:16 +0000 (UTC) Subject: Re: xn0: Error 2 parsing device/vif/0/mac [PATCH] 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: Sat, 15 Jan 2011 10:12:17 -0000 On Sat, 15 Jan 2011, Janne Snabb wrote: > It appears that that the netfront driver fails to get the vif mac > address which leads to panic shortly afterwards. The patch at the bottom of this message solves the problem for me. After that the current 8.2RC2 system works fine on amd64 with XENHVM kernel with Xen 4.0.1 (have not tested other versions). If the "mac" node does not appear in the front-end vif directory (does it ever appear there? in my experience no), we fetch a link to the backend directory for the same vif and try to get the "mac" node from there. I am not sure if this is the proper way to fix this, but it works for me. I can send-pr this if desired. Best Regards, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ --- sys/dev/xen/netfront/netfront.c.orig 2010-12-21 17:09:25.000000000 +0000 +++ sys/dev/xen/netfront/netfront.c 2011-01-15 10:01:12.000000000 +0000 @@ -399,16 +399,30 @@ */ static int xen_net_read_mac(device_t dev, uint8_t mac[]) { int error, i; - char *s, *e, *macstr; + char *s, *e, *macstr, *backend; error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, (void **) &macstr); - if (error) - return (error); + + if (error) { + error = xs_read(XST_NIL, xenbus_get_node(dev), "backend", NULL, + (void **) &backend); + + if (error) + return (error); + + error = xs_read(XST_NIL, backend, "mac", NULL, + (void **) &macstr); + + free(backend, M_XENBUS); + + if (error) + return (error); + } s = macstr; for (i = 0; i < ETHER_ADDR_LEN; i++) { mac[i] = strtoul(s, &e, 16); if (s == e || (e[0] != ':' && e[0] != 0)) {