From owner-freebsd-xen@FreeBSD.ORG Mon May 27 11:06:57 2013 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D73ED39E for ; Mon, 27 May 2013 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B8FFD6E3 for ; Mon, 27 May 2013 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4RB6vml016245 for ; Mon, 27 May 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4RB6vvR016243 for freebsd-xen@FreeBSD.org; Mon, 27 May 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 May 2013 11:06:57 GMT Message-Id: <201305271106.r4RB6vvR016243@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 Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 27 May 2013 11:06:57 -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/176471 xen [xen] xn driver crash on detach o kern/176053 xen [xen] [patch] i386: Correct wrong usage of vsnprintf() o kern/175954 xen [xen] XENHVM xn network driver extreme packet loss dur o kern/175822 xen [xen] FreeBSD 9.1 does not work with Xen 4.0 o kern/175757 xen [xen] [patch] xen pvhvm looses keyboard input from VNC o kern/171873 xen [xen] xn network device floods warning in dmesg o kern/171118 xen [xen] FreeBSD XENHVM guest doesn't shutdown cleanly o kern/166174 xen [xen] Problems ROOT MOUNT ERROR o kern/165418 xen [xen] Problems mounting root filesystem from XENHVM o kern/164630 xen [xen] XEN HVM kernel: run_interrupt_driven_hooks: stil o kern/164450 xen [xen] Failed to install FreeeBSD 9.0-RELEASE from CD i o kern/162677 xen [xen] FreeBSD not compatible with "Current Stable Xen" o kern/161318 xen [xen] sysinstall crashes with floating point exception o kern/155468 xen [xen] Xen PV i386 multi-kernel CPU system is not worki o kern/155353 xen [xen] [patch] put "nudging TOD" message under boot_ver o kern/154833 xen [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. o kern/154473 xen [xen] xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not o kern/154472 xen [xen] xen 4.0 - DomU freebsd8.1 i386 xen kernel reboot o kern/154428 xen [xen] xn0 network interface and PF - Massive performan 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 p 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 o kern/118734 xen [xen] FreeBSD 6.3-RC1 and FreeBSD 7.0-BETA 4 fail to b 35 problems total. From owner-freebsd-xen@FreeBSD.ORG Tue May 28 15:21:23 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6F423F22; Tue, 28 May 2013 15:21:23 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) by mx1.freebsd.org (Postfix) with ESMTP id 2E0AF200; Tue, 28 May 2013 15:21:23 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id up14so2731431obb.14 for ; Tue, 28 May 2013 08:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xPio3IJVaVY6s+Qwj4M56F5c7VWlzuT0VWXOERhJuEs=; b=Ht02x/SllwFrhBg9lfNPLC6mxvv+1tYU+fvf9/Ng7O4Q4YOML5tRcHvIPWlPWqZzHY vYdW7NiBhYPDFqeQYM/+X3DKQXLtG5NBR6RXk2hh5S3Xr6lir68wiDhXk8KJGxf7l4wY nT0X36xja+u3MRMFNcMrtRgHv6hUB1AINvHM5eSlHETfVvhEEWSLTZcbIWX78G3UM7F4 2Fbrqkl4jzZ4aoV41mqtpbLIoLz4GI2nOKBwHKMvGZo5yEBYdHDzvcKAOkJYZIMHHp7H HIWVvWOPVCV6W+Q3qYMm6d3IHNuWgTvuGzJ+3JFCWElaQYgNseCGoCQZCSDDAzdlFfeD 19cQ== MIME-Version: 1.0 X-Received: by 10.182.118.42 with SMTP id kj10mr20822987obb.99.1369754482743; Tue, 28 May 2013 08:21:22 -0700 (PDT) Received: by 10.76.152.225 with HTTP; Tue, 28 May 2013 08:21:22 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> Date: Tue, 28 May 2013 11:21:22 -0400 Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Outback Dingo To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 15:21:23 -0000 On Fri, May 24, 2013 at 6:27 PM, Craig Rodrigues wr= ote: > On Thu, May 23, 2013 at 6:30 AM, Roger Pau Monn=E9 >wrote: > > > On 23/05/13 15:20, Jeroen van der Ham wrote: > > > > > > On 13 May 2013, at 20:32, Roger Pau Monn=E9 > wrote: > > >> Also, I've created a wiki page that explains how to set up a FreeBSD > > >> PVHVM for testing: > > >> > > >> http://wiki.xen.org/wiki/Testing_FreeBSD_PVHVM > > > > > > > > > You mention on that page that it is easier to install on 10.0-CURRENT > > snapshots. > > > What are the issues with installing this on 9.1? Is it possible? > > > > I don't think it is recommended to use a HEAD (10) kernel with a 9.1 > > userland. You can always install a 9.1 and then do a full update with > > the source on my repository. > > > > > Actually in FreeBSD, it is possible to run an older userland on a newer > kernel, > and a lot of effort is spent in preserving this type of backwards > compatibility. > So a 9.1 userland with a 10 kernel will work. > However, running a newer userland on an older kernel is not guaranteed to > work. > So running a 10 userland with a 9.1 kernel will most likely not work. > > However, since you guys are doing very cutting edge stuff with 10-CURRENT= , > it is better that you do not waste time with 9.1. > > I recommend you start with a 10.0 CURRENT snapshot ISO and go from there. > I am going through a similar setup exercise with a Google Summer of Code > student > where he needs to have a latest CURRENT system running in a VM. > > I wrote this blog post: > > > http://blogs.freebsdish.org/rodrigc/2013/05/24/setting-up-a-vm-for-doing-= gsoc-work/ > > for the steps how to do it. You can follow those steps to get bootstrapp= ed > with a working environment if it helps you out. > > Good luck. > > Any chance this will be backported to 9.X or 9-STABLE at least ?? > -- > Craig > _______________________________________________ > 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 Tue May 28 16:15:12 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 977F56E; Tue, 28 May 2013 16:15:12 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [46.33.159.39]) by mx1.freebsd.org (Postfix) with ESMTP id E01FF6DA; Tue, 28 May 2013 16:15:11 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,758,1363132800"; d="scan'208";a="5059085" Received: from lonpex01cl01.citrite.net ([10.30.203.101]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA; 28 May 2013 16:15:01 +0000 Received: from [192.168.1.30] (10.30.203.1) by LONPEX01CL01.citrite.net (10.30.203.101) with Microsoft SMTP Server id 14.2.342.3; Tue, 28 May 2013 17:15:01 +0100 Message-ID: <51A4D804.9050208@citrix.com> Date: Tue, 28 May 2013 18:15:00 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Colin Percival Subject: Re: FreeBSD PVHVM call for testing References: <519131D8.9010307@citrix.com> <51952BAE.6010609@freebsd.org> <51957D42.9060801@citrix.com> <51959ED9.6040405@freebsd.org> <51974EC9.9030204@citrix.com> <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> In-Reply-To: <519F3CD0.5090405@citrix.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.30.203.1] Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , Matt Wilson , "freebsd-virtualization@freebsd.org" , xen-devel X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 16:15:12 -0000 On 24/05/13 12:11, Roger Pau Monné wrote: > On 23/05/13 21:09, Colin Percival wrote: >> On 05/23/13 02:06, Roger Pau Monné wrote: >>> On 22/05/13 22:03, Colin Percival wrote: >>>> Testing on a cr1.8xlarge EC2 instance, I get Xen 4.2, but it ends up with >>>> a panic -- console output below. I can get a backtrace and possibly even >>>> a dump if those would help. >>> >>> Thanks for the test, I've been using Xen 4.2 (and 4.3) without problems >>> so far. By looking at the Xen code, the only reason the timer setup >>> could return -22 (EINVAL), is that we try to set the timer for a >>> different vCPU than the one we are running on. >>> >>> I've been able to boot a 32 vCPU DomU on my 8way box using Xen 4.2.1 >>> (using both qemu-xen and qemu-xen-traditional device models), so I'm >>> unsure if this could be due to some patch Amazon applies to Xen. Could >>> you try the following patch and post the error message? I would like to >>> see if the cpuid reported by kdb and the vCPU that we are trying to set >>> the timer are the same. >> >> Looks like there's agreement about the cpuids here. Anything else I should >> try testing? > > Thanks for the test, this is what I expected. I'm a little bit out of > ideas since I'm not able to reproduce this on upstream Xen 4.2. Without > knowing what's happening inside the hypervisor it's hard to tell what's > wrong. It would be interesting to try if the same happens with a Linux > PVHVM (not PV) running on the same instance type. Hello Matt, Colin has found an issue on the FreeBSD PVHVM port that I haven't been able to reproduce using open source Xen, even when using the same version as the one reported by EC2. Is there anyway you could provide some help debugging this? Without seeing the Xen code that causes VCPUOP_set_singleshot_timer to return EINVAL it is quite hard to figure out what's happening inside the hypervisor. Thanks, Roger. From owner-freebsd-xen@FreeBSD.ORG Tue May 28 16:52:02 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4EE92617; Tue, 28 May 2013 16:52:02 +0000 (UTC) (envelope-from konrad.wilk@oracle.com) Received: from aserp1050.oracle.com (aserp1050.oracle.com [141.146.126.70]) by mx1.freebsd.org (Postfix) with ESMTP id BDEDB8D9; Tue, 28 May 2013 16:52:01 +0000 (UTC) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by aserp1050.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r4SDh3r1005995 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 May 2013 13:43:10 GMT Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r4SDgxJE021182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 May 2013 13:43:00 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r4SDgwNj008485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 28 May 2013 13:42:59 GMT Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r4SDgvEG017409; Tue, 28 May 2013 13:42:58 GMT Received: from phenom.dumpdata.com (/50.195.21.189) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 28 May 2013 06:42:57 -0700 Received: by phenom.dumpdata.com (Postfix, from userid 1000) id 6CF821BF781; Tue, 28 May 2013 09:42:56 -0400 (EDT) Date: Tue, 28 May 2013 09:42:56 -0400 From: Konrad Rzeszutek Wilk To: Craig Rodrigues Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing Message-ID: <20130528134256.GF724@phenom.dumpdata.com> References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> <20130524141400.GB3900@phenom.dumpdata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Source-IP: aserp1040.oracle.com [141.146.126.69] Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 16:52:02 -0000 On Fri, May 24, 2013 at 03:21:54PM -0700, Craig Rodrigues wrote: > On Fri, May 24, 2013 at 7:14 AM, Konrad Rzeszutek Wilk < > konrad.wilk@oracle.com> wrote: >=20 > > On Thu, May 23, 2013 at 07:41:50PM +0200, Roger Pau Monn=E9 wrote: > > > Hello, > > > > > > I've pushed a new branch, pvhvm_v10 that contains a PV IPI > > > implementation for both amd64 and i386. I've also updated the wiki = to > > > point to the pvhvm_v10 branch: > > > > I feel a bit stupid to ask this, but how I install 'gmake'? Doing 'pk= g_add > > -r gmake' > > tells me there is no package (perhaps I am using a too modern version= of > > FreeBSD > > (FreeBSD-10.0-CURRENT-amd64-20130512-r250582-release.iso)? > > > > The Wiki mentions how to install git but that fails b/c it can't find > > gmake. > > >=20 > For 10.0-CURRENT, not all the packages are available yet from the main > FreeBSD.org ftp site. > I am going through a similar setup issue with someone who has signed up= for > Google Summer of Code, > and I need him to use close to the latest 10.0-CURRENT and have a usabl= e > system. >=20 > I wrote this blog post for the student: > http://blogs.freebsdish.org/rodrigc/2013/05/24/setting-up-a-vm-for-doin= g-gsoc-work/ Excellent! Thanks for the link. From owner-freebsd-xen@FreeBSD.ORG Tue May 28 19:19:10 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1AA3DF0D; Tue, 28 May 2013 19:19:10 +0000 (UTC) (envelope-from prvs=8537416cf=msw@amazon.com) Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id A74C89E; Tue, 28 May 2013 19:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=msw@amazon.com; q=dns/txt; s=amazon201209; t=1369768749; x=1401304749; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=yG55VFh0WNP2/pY5xjZtRFXtjo7WsphkGwXc+KaVu14=; b=OvCxN2tJpmlGyiYjR4GGFsiei9/fHj/u/klfTLSK4pfZquLZJsMBYqsF Mr5ZcSWV27vycTm4TJtnwuOe9nwiryEy0t9xNRLrUKnXqL7u5Bh6ocEF+ k/QCb/ij5Nlm/r6aaTphrM7/V3DsOXijEQg8Y2Qx1p590nd7QkjO9ne2y Q=; X-IronPort-AV: E=Sophos;i="4.87,759,1363132800"; d="scan'208";a="568049173" Received: from smtp-in-1002.vdc.amazon.com ([10.118.132.23]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 May 2013 19:18:58 +0000 Received: from ex10-hub-9002.ant.amazon.com (ex10-hub-9002.ant.amazon.com [10.185.137.130]) by smtp-in-1002.vdc.amazon.com (8.13.8/8.13.8) with ESMTP id r4SJIubK015557 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Tue, 28 May 2013 19:18:58 GMT Received: from u109add4315675089e695.ant.amazon.com (10.184.8.86) by ex10-hub-9002.ant.amazon.com (10.185.137.130) with Microsoft SMTP Server id 14.2.247.3; Tue, 28 May 2013 12:18:56 -0700 Received: by u109add4315675089e695.ant.amazon.com (sSMTP sendmail emulation); Tue, 28 May 2013 12:18:55 -0700 Date: Tue, 28 May 2013 12:18:55 -0700 From: Matt Wilson To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing Message-ID: <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> References: <51957D42.9060801@citrix.com> <51959ED9.6040405@freebsd.org> <51974EC9.9030204@citrix.com> <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51A4D804.9050208@citrix.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 19:19:10 -0000 On Tue, May 28, 2013 at 06:15:00PM +0200, Roger Pau Monné wrote: > On 24/05/13 12:11, Roger Pau Monné wrote: > > > > Thanks for the test, this is what I expected. I'm a little bit out of > > ideas since I'm not able to reproduce this on upstream Xen 4.2. Without > > knowing what's happening inside the hypervisor it's hard to tell what's > > wrong. It would be interesting to try if the same happens with a Linux > > PVHVM (not PV) running on the same instance type. > > Hello Matt, > > Colin has found an issue on the FreeBSD PVHVM port that I haven't been > able to reproduce using open source Xen, even when using the same > version as the one reported by EC2. Is there anyway you could provide > some help debugging this? Without seeing the Xen code that causes > VCPUOP_set_singleshot_timer to return EINVAL it is quite hard to figure > out what's happening inside the hypervisor. Hi Roger, VCPUOP_set_singleshot_timer returns -EINVAL when: 1) the specified vCPU ID is out of range (<0 or >MAX_VIRT_CPUS) 2) the specified vCPU ID doesn't match the running vCPU. It seems that there is a confusion between the logical vCPU ID and the local APIC physical ID. I added some debugging to case 2): diff --git a/xen/common/domain.c b/xen/common/domain.c index e728819..e3efb8c 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -901,7 +901,12 @@ long do_vcpu_op(int cmd, int vcpuid, XEN_GUEST_HANDLE(void) arg) struct vcpu_set_singleshot_timer set; if ( v != current ) + { + printk("Domain %d (vcpu#%d) VCPUOP_set_singleshot_timer specified vcpuid %d\n", + d->domain_id, current->vcpu_id, vcpuid); + return -EINVAL; + } if ( copy_from_guest(&set, arg, 1) ) return -EFAULT; The output from booting ami-e75c358e on a cr1.8xlarge: (XEN) Domain 1 (vcpu#16) VCPUOP_set_singleshot_timer specified vcpuid 1 (XEN) Domain 1 (vcpu#7) VCPUOP_set_singleshot_timer specified vcpuid 14 (XEN) Domain 1 (vcpu#23) VCPUOP_set_singleshot_timer specified vcpuid 15 (XEN) Domain 1 (vcpu#11) VCPUOP_set_singleshot_timer specified vcpuid 22 (XEN) Domain 1 (vcpu#27) VCPUOP_set_singleshot_timer specified vcpuid 23 (XEN) Domain 1 (vcpu#18) VCPUOP_set_singleshot_timer specified vcpuid 5 (XEN) Domain 1 (vcpu#2) VCPUOP_set_singleshot_timer specified vcpuid 4 (XEN) Domain 1 (vcpu#9) VCPUOP_set_singleshot_timer specified vcpuid 18 (XEN) Domain 1 (vcpu#25) VCPUOP_set_singleshot_timer specified vcpuid 19 (XEN) Domain 1 (vcpu#1) VCPUOP_set_singleshot_timer specified vcpuid 2 (XEN) Domain 1 (vcpu#6) VCPUOP_set_singleshot_timer specified vcpuid 12 (XEN) Domain 1 (vcpu#22) VCPUOP_set_singleshot_timer specified vcpuid 13 (XEN) Domain 1 (vcpu#26) VCPUOP_set_singleshot_timer specified vcpuid 21 (XEN) Domain 1 (vcpu#10) VCPUOP_set_singleshot_timer specified vcpuid 20 (XEN) Domain 1 (vcpu#14) VCPUOP_set_singleshot_timer specified vcpuid 28 (XEN) Domain 1 (vcpu#30) VCPUOP_set_singleshot_timer specified vcpuid 29 (XEN) Domain 1 (vcpu#3) VCPUOP_set_singleshot_timer specified vcpuid 6 (XEN) Domain 1 (vcpu#19) VCPUOP_set_singleshot_timer specified vcpuid 7 (XEN) Domain 1 (vcpu#12) VCPUOP_set_singleshot_timer specified vcpuid 24 (XEN) Domain 1 (vcpu#28) VCPUOP_set_singleshot_timer specified vcpuid 25 (XEN) Domain 1 (vcpu#5) VCPUOP_set_singleshot_timer specified vcpuid 10 (XEN) Domain 1 (vcpu#21) VCPUOP_set_singleshot_timer specified vcpuid 11 (XEN) Domain 1 (vcpu#24) VCPUOP_set_singleshot_timer specified vcpuid 17 (XEN) Domain 1 (vcpu#8) VCPUOP_set_singleshot_timer specified vcpuid 16 (XEN) Domain 1 (vcpu#17) VCPUOP_set_singleshot_timer specified vcpuid 3 (XEN) Domain 1 (vcpu#20) VCPUOP_set_singleshot_timer specified vcpuid 9 (XEN) Domain 1 (vcpu#4) VCPUOP_set_singleshot_timer specified vcpuid 8 (XEN) Domain 1 (vcpu#13) VCPUOP_set_singleshot_timer specified vcpuid 26 (XEN) Domain 1 (vcpu#29) VCPUOP_set_singleshot_timer specified vcpuid 27 (XEN) Domain 1 (vcpu#15) VCPUOP_set_singleshot_timer specified vcpuid 30 Note from the FreeBSD boot output: APIC: CPU 0 has ACPI ID 0 APIC: CPU 1 has ACPI ID 16 APIC: CPU 2 has ACPI ID 1 APIC: CPU 3 has ACPI ID 17 APIC: CPU 4 has ACPI ID 2 APIC: CPU 5 has ACPI ID 18 APIC: CPU 6 has ACPI ID 3 APIC: CPU 7 has ACPI ID 19 APIC: CPU 8 has ACPI ID 4 APIC: CPU 9 has ACPI ID 20 APIC: CPU 10 has ACPI ID 5 APIC: CPU 11 has ACPI ID 21 APIC: CPU 12 has ACPI ID 6 APIC: CPU 13 has ACPI ID 22 APIC: CPU 14 has ACPI ID 7 APIC: CPU 15 has ACPI ID 23 APIC: CPU 16 has ACPI ID 8 APIC: CPU 17 has ACPI ID 24 APIC: CPU 18 has ACPI ID 9 APIC: CPU 19 has ACPI ID 25 APIC: CPU 20 has ACPI ID 10 APIC: CPU 21 has ACPI ID 26 APIC: CPU 22 has ACPI ID 11 APIC: CPU 23 has ACPI ID 27 APIC: CPU 24 has ACPI ID 12 APIC: CPU 25 has ACPI ID 28 APIC: CPU 26 has ACPI ID 13 APIC: CPU 27 has ACPI ID 29 APIC: CPU 28 has ACPI ID 14 APIC: CPU 29 has ACPI ID 30 APIC: CPU 30 has ACPI ID 15 APIC: CPU 31 has ACPI ID 31 --msw From owner-freebsd-xen@FreeBSD.ORG Tue May 28 21:34:07 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 27D0E684 for ; Tue, 28 May 2013 21:34:07 +0000 (UTC) (envelope-from bounces+73574-0602-freebsd-xen=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id CB0B6B49 for ; Tue, 28 May 2013 21:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpapi; bh=FDhmtoph41CXde4pcXthb1 JkJeA=; b=VepaRyE3w9GKnv7Fw6F1q5uuI9CH1ZdgqkCvrKCL8rEy7XJsS2uMZ8 HdYco8KuOptX5S4+DegMxwRSAB/aqhWrgJRD2LhiKnnBero5yyOFZfpmhT0WLCR2 z420tWwJMByyuYs6+E/He5M5k+jkY4JBYqQZP+NFdg91gxsnOgM90= Received: by 10.42.80.139 with SMTP id filter-073.7330.51A522C72 Tue, 28 May 2013 21:33:59 +0000 (UTC) Received: from mail.tarsnap.com (unknown [10.60.208.17]) by mi17 (SG) with ESMTP id 13eed0fdb38.46a0.823e01 for ; Tue, 28 May 2013 16:33:59 -0500 (CST) Received: (qmail 83665 invoked from network); 28 May 2013 21:33:57 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 28 May 2013 21:33:57 -0000 Received: (qmail 67058 invoked from network); 28 May 2013 21:33:19 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 28 May 2013 21:33:19 -0000 Message-ID: <51A5229F.80205@freebsd.org> Date: Tue, 28 May 2013 14:33:19 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130406 Thunderbird/17.0.5 MIME-Version: 1.0 To: Matt Wilson , =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing References: <51957D42.9060801@citrix.com> <51959ED9.6040405@freebsd.org> <51974EC9.9030204@citrix.com> <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> In-Reply-To: <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SG-EID: RUbAm5H8PjswBj/QH+sYVehaJogg3iBnZcyVi1bw/IwdY5+U+2g51gTSyrQF+k8eX5jqsJK1m/x/zrRifk804Eis0ypTK6EvQHzGmklM4X9q/XUknpn//pAW42wY36R1Mc1YeOUDeX49xztwabeOHA== Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 21:34:07 -0000 On 05/28/13 12:18, Matt Wilson wrote: > VCPUOP_set_singleshot_timer returns -EINVAL when: > > 1) the specified vCPU ID is out of range (<0 or >MAX_VIRT_CPUS) > 2) the specified vCPU ID doesn't match the running vCPU. > > It seems that there is a confusion between the logical vCPU ID and the > local APIC physical ID. > [...] > (XEN) Domain 1 (vcpu#16) VCPUOP_set_singleshot_timer specified vcpuid 1 > [...] > APIC: CPU 1 has ACPI ID 16 Thanks Matt! Looks like we need to pass our acpi_id to the Xen hypercall instead of our cpuid. Roger, changing the line int cpu = PCPU_GET(cpuid); to int cpu = PCPU_GET(acpi_id); in xentimer_et_start and xentimer_et_stop fixes this panic and gets me slightly further; the following lines are now added to the console output prior to the system appearing to hang: > ioapic0: routing intpin 1 (ISA IRQ 1) to lapic 1 vector 48 > ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 2 vector 48 > ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 3 vector 48 > ioapic0: routing intpin 12 (ISA IRQ 12) to lapic 4 vector 48 > ioapic0: routing intpin 14 (ISA IRQ 14) to lapic 5 vector 48 > ioapic0: routing intpin 15 (ISA IRQ 15) to lapic 6 vector 48 > ioapic0: routing intpin 28 (PCI IRQ 28) to lapic 7 vector 48 > TSC timecounter discards lower 1 bit(s) > Timecounter "TSC-low" frequency 1300024860 Hz quality -100 > WARNING: WITNESS option enabled, expect reduced performance. On a cc2.8xlarge EC2 instance, the lines which come after this are > GEOM: new disk xbd1 > GEOM: new disk xbd2 > GEOM: new disk xbd3 > GEOM: new disk xbd4 > Trying to mount root from ufs:/dev/ad0a [rw]... > start_init: trying /sbin/init and then the userland boot process; have you made any bug fixes after your pvhvm_v7 which would explain why tasting disks was hanging? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Tue May 28 22:11:11 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E9D4366; Tue, 28 May 2013 22:11:11 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD71DC6; Tue, 28 May 2013 22:11:10 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id r11so8371888lbv.38 for ; Tue, 28 May 2013 15:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UXaSWdt0YceK8+p8mJKAIgiWbRnQxqsjNhdBxXt/E+w=; b=0Cy937kms2ehq7LIRwRxGf9+Imjfxixr/OYKwirld6vs0Ai5I5tuQHOvMmeznPDE5j Ah7MsNyBl2g/DgYhSm0t3WTAwQcThKKyiJlLhdAoV4xeiI4+qfIsupyGo2dUymALXW2j wVQbOvrcF/JhqLtcw380qu6WOU7ty63N9SsIkdDb531ZxAmo9Hz+9pXJW9S8me4cu0H8 k6j56bUS+RO+Cd0ieljsfNjhBPwKD4wd6qthCkItdvX8Jo9R2LUzJJMdbteM89fmIwwu v45kOUov2Y0fSjKzfWj4rEyhJgTZBoFHarn8fNkwHUIYDC9jdeC6/46kAXEcHlyVwxEl SAbA== MIME-Version: 1.0 X-Received: by 10.112.131.232 with SMTP id op8mr248051lbb.2.1369778709501; Tue, 28 May 2013 15:05:09 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.13.135 with HTTP; Tue, 28 May 2013 15:05:09 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> Date: Tue, 28 May 2013 15:05:09 -0700 X-Google-Sender-Auth: j4j0ndJlBDA_uaiB5Cl3r9fcm2A Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Craig Rodrigues To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 22:11:11 -0000 On Tue, May 28, 2013 at 8:21 AM, Outback Dingo wrote: > > > > On Fri, May 24, 2013 at 6:27 PM, Craig Rodrigues wrote: > >> I wrote this blog post: >> >> >> http://blogs.freebsdish.org/rodrigc/2013/05/24/setting-up-a-vm-for-doing-gsoc-work/ >> >> for the steps how to do it. You can follow those steps to get >> bootstrapped >> with a working environment if it helps you out. >> >> Good luck. >> >> > Any chance this will be backported to 9.X or 9-STABLE at least ?? > > I wrote a blog post specifically for installing 10-CURRENT from a snapshot ISO and getting bootstrapped from there, to help the Google Summer of Code Student that I am mentoring. What specifically do you want to be backported to 9-STABLE? -- Craig From owner-freebsd-xen@FreeBSD.ORG Tue May 28 22:43:11 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 133CB93E; Tue, 28 May 2013 22:43:11 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) by mx1.freebsd.org (Postfix) with ESMTP id C6794F2F; Tue, 28 May 2013 22:43:10 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id n9so10893695oag.14 for ; Tue, 28 May 2013 15:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3MKzpE72joJRwtIMoPRIH253+u4d5UIFd3W13OLCUcg=; b=vBw65N2BLw80oj6n/j08QGxpRL0agycCKTeDUDmpl/7ZqZOeLgbscURMGmL3oiKMPL GbJ6u2uAhsS5wy4bD++6wY7ecw29ms4zZCt8445T4jV7/scQjtW23UdSgrDzX3uDsb7v sAkfqlfvdrAB5WTdps/oCsAdRDbEINQp2bM5DR6duSEo4vGrHdjmBaiXZdAMzaFPEyOY VzT02Td1BhWHMwgvKzprSUjB+9qefPQ5M+Ik3qUVMIiR2BHkJzGm5NPq5cyd32qvo/3r d5TbVe7uhXKGnfXnCoYj8U4YYiGSwy4KH+YHi8owuyO0LrmdI+SSdtO8JGSZF1Mzm9wH 9KQw== MIME-Version: 1.0 X-Received: by 10.182.65.100 with SMTP id w4mr19891373obs.70.1369780990087; Tue, 28 May 2013 15:43:10 -0700 (PDT) Received: by 10.76.152.225 with HTTP; Tue, 28 May 2013 15:43:09 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> Date: Tue, 28 May 2013 18:43:09 -0400 Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Outback Dingo To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 22:43:11 -0000 On Tue, May 28, 2013 at 6:05 PM, Craig Rodrigues wrote: > > > > On Tue, May 28, 2013 at 8:21 AM, Outback Dingo wrote: > >> >> >> >> On Fri, May 24, 2013 at 6:27 PM, Craig Rodrigues wrote: >> >>> I wrote this blog post: >>> >>> >>> http://blogs.freebsdish.org/rodrigc/2013/05/24/setting-up-a-vm-for-doing-gsoc-work/ >>> >>> for the steps how to do it. You can follow those steps to get >>> bootstrapped >>> with a working environment if it helps you out. >>> >>> Good luck. >>> >>> >> Any chance this will be backported to 9.X or 9-STABLE at least ?? >> >> > > > I wrote a blog post specifically for installing 10-CURRENT from a snapshot > ISO and getting bootstrapped > from there, to help the Google Summer of Code Student that I am mentoring. > What specifically do you want to be backported to 9-STABLE? > Yes Ive seen the post, however we have a hard requirement for 9-STABLE for some development work we are currently involved in. And I would prefer not to move our current infrastructure for development to CURRENT. A major portion of our development environment is based on XEN for testing and development. Therefor we realize PVHVM is a work in progress, and we have built some VMs from it, they run exceptionally well, However our build environments refuse to build 9-STABLE on CURRENT PVHVM, or 10-CURRENT. Lastly Im sure theres a ton of users who would like to see this in 9.x or 9-STABLE > > > -- > Craig > From owner-freebsd-xen@FreeBSD.ORG Tue May 28 23:09:25 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B9E24DD5; Tue, 28 May 2013 23:09:25 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF55131; Tue, 28 May 2013 23:09:24 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id o10so8366934lbi.36 for ; Tue, 28 May 2013 16:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=88+Z2qJJlPt/wKZY7PhNbLLP4DzErOxq3ntBJgkyH9A=; b=REyETal2QS5ViptyhmBsF9f/xnTNVlbKd7sqVY/MFN52/UBiphG5M6WTcH7O/XD0Vn HZtrc2WZqt12xYI9XHNm4BAuncCBB6unquSx+vwtdgvyUFJ3FUhaQkC7qWH9svC5TQO8 R9G8QMy/+RsaOszOeMQrJMLYuFYBaGUfI+0td9qW3bL8mssOBbV/R9DFDyQKXJrGvfii GQI3RIEFeHnn0pBSP50Em1hLkjOxRovjrMs+DW1uRcF3B1lIMwaUuHzOuOshax0NTXRU xz+K/l6TXhgu2ttAhEYShvSlKa8GPT1ffG2D9+gjCAIrWyJO2CZ2gtH2Oe+Tc/1rk7F6 3MAA== MIME-Version: 1.0 X-Received: by 10.112.202.198 with SMTP id kk6mr332939lbc.4.1369782557857; Tue, 28 May 2013 16:09:17 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.13.135 with HTTP; Tue, 28 May 2013 16:09:17 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> Date: Tue, 28 May 2013 16:09:17 -0700 X-Google-Sender-Auth: F7wslqn-XWHo_QHDbyFwfcICc2Y Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Craig Rodrigues To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 23:09:25 -0000 On Tue, May 28, 2013 at 3:43 PM, Outback Dingo wrote: > > I wrote a blog post specifically for installing 10-CURRENT from a snapshot >> ISO and getting bootstrapped >> from there, to help the Google Summer of Code Student that I am mentoring. >> What specifically do you want to be backported to 9-STABLE? >> > > Yes Ive seen the post, however we have a hard requirement for 9-STABLE for > some development work we are > currently involved in. And I would prefer not to move our current > infrastructure for development to CURRENT. > A major portion of our development environment is based on XEN for testing > and development. > Therefor we realize PVHM is a work in progress, and we have built some > VMs from it, they run exceptionally > well, However our build environments refuse to build 9-STABLE on CURRENT > PVHVM, or 10-CURRENT. > Lastly Im sure theres a ton of users who would like to see this in 9.x or > 9-STABLE > > OK, I misunderstood you since you responded in the thread and quoted some of my post. My blog post has nothing relevant to Xen and PVHM, and is specific to setting up a Google Summer of Code student on a 10-CURRENT environment. The FreeBSD Xen and PVHM developers will need to provide the details about their plans to merge their changes to the 9-STABLE branch..... that's something which I am not familiar with. -- Craig From owner-freebsd-xen@FreeBSD.ORG Tue May 28 23:20:11 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D39CC233; Tue, 28 May 2013 23:20:11 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) by mx1.freebsd.org (Postfix) with ESMTP id 8232D201; Tue, 28 May 2013 23:20:11 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id h2so10837883oag.33 for ; Tue, 28 May 2013 16:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=76aqlEgSLgZKQz61HoiLpwcekGgZsWplRIhP5qzYz7c=; b=EOR2PcCf89fw5QtJZ/Q1+yNOK+uNDfyRYOd1pjvmDvUlz5c/pUZzxnSmaAvrl1iFZf 731aJDo1CnCavBRfkOC/Rm1n2zQ6VCXb+dPAGjrIh0GglhtV373MTyBFvvXTFOVDxO3S 7/ReXbe8cPuId4JhYDs4tDV3UTpGjLg3zdntmG7Z7HGJyx5lsPOEOVJ+oKn9BFFS8N8+ 6EaKfFfzyM9nlLc3ZpUm4mi1Jm2pwZrjAmvPaHSX9yt4o7QPBBPSPz5wjBdgAr9iToon iw2v8utXNEfUPbGNMZ2A6RCGo20Dg9yzGYzVO28hdvs58vbBZOOqv6DaT1AC8wdcriXE NG7A== MIME-Version: 1.0 X-Received: by 10.60.102.145 with SMTP id fo17mr35764oeb.76.1369783210747; Tue, 28 May 2013 16:20:10 -0700 (PDT) Received: by 10.76.152.225 with HTTP; Tue, 28 May 2013 16:20:10 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> Date: Tue, 28 May 2013 19:20:10 -0400 Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Outback Dingo To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 28 May 2013 23:20:11 -0000 On Tue, May 28, 2013 at 7:09 PM, Craig Rodrigues wrote: > > > > On Tue, May 28, 2013 at 3:43 PM, Outback Dingo wrote: > >> >> I wrote a blog post specifically for installing 10-CURRENT from a >>> snapshot ISO and getting bootstrapped >>> from there, to help the Google Summer of Code Student that I am >>> mentoring. >>> What specifically do you want to be backported to 9-STABLE? >>> >> >> Yes Ive seen the post, however we have a hard requirement for 9-STABLE >> for some development work we are >> currently involved in. And I would prefer not to move our current >> infrastructure for development to CURRENT. >> A major portion of our development environment is based on XEN for >> testing and development. >> Therefor we realize PVHM is a work in progress, and we have built some >> VMs from it, they run exceptionally >> well, However our build environments refuse to build 9-STABLE on CURRENT >> PVHVM, or 10-CURRENT. >> Lastly Im sure theres a ton of users who would like to see this in 9.x or >> 9-STABLE >> >> > > OK, I misunderstood you since you responded in the thread and quoted some > of my post. > My blog post has nothing relevant to Xen and PVHM, and is specific to > setting up > a Google Summer of Code student on a 10-CURRENT environment. The FreeBSD > Xen > and PVHM developers will need to provide the details about their plans to > merge their changes to the 9-STABLE branch..... > that's something which I am not familiar with. > If we can get a diff of the work done against the master Id be happy to help backporting and testing > > > -- > Craig > From owner-freebsd-xen@FreeBSD.ORG Wed May 29 17:03:50 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A71A046B; Wed, 29 May 2013 17:03:50 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [46.33.159.39]) by mx1.freebsd.org (Postfix) with ESMTP id EF79F9F8; Wed, 29 May 2013 17:03:49 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,765,1363132800"; d="scan'208";a="5104336" Received: from lonpex01cl01.citrite.net ([10.30.203.101]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA; 29 May 2013 17:03:42 +0000 Received: from [192.168.1.30] (10.30.203.1) by LONPEX01CL01.citrite.net (10.30.203.101) with Microsoft SMTP Server id 14.2.342.3; Wed, 29 May 2013 18:03:41 +0100 Message-ID: <51A634EC.7050805@citrix.com> Date: Wed, 29 May 2013 19:03:40 +0200 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Colin Percival Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing References: <51957D42.9060801@citrix.com> <51959ED9.6040405@freebsd.org> <51974EC9.9030204@citrix.com> <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> In-Reply-To: <51A5229F.80205@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.30.203.1] Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , Matt Wilson , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 17:03:50 -0000 On 28/05/13 23:33, Colin Percival wrote: > On 05/28/13 12:18, Matt Wilson wrote: >> VCPUOP_set_singleshot_timer returns -EINVAL when: >> >> 1) the specified vCPU ID is out of range (<0 or >MAX_VIRT_CPUS) >> 2) the specified vCPU ID doesn't match the running vCPU. >> >> It seems that there is a confusion between the logical vCPU ID and the >> local APIC physical ID. >> [...] >> (XEN) Domain 1 (vcpu#16) VCPUOP_set_singleshot_timer specified vcpuid 1 >> [...] >> APIC: CPU 1 has ACPI ID 16 > > Thanks Matt! Looks like we need to pass our acpi_id to the Xen hypercall > instead of our cpuid. > > Roger, changing the line > int cpu = PCPU_GET(cpuid); > to > int cpu = PCPU_GET(acpi_id); > in xentimer_et_start and xentimer_et_stop fixes this panic and gets me > slightly further; the following lines are now added to the console output > prior to the system appearing to hang: >> ioapic0: routing intpin 1 (ISA IRQ 1) to lapic 1 vector 48 >> ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 2 vector 48 >> ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 3 vector 48 >> ioapic0: routing intpin 12 (ISA IRQ 12) to lapic 4 vector 48 >> ioapic0: routing intpin 14 (ISA IRQ 14) to lapic 5 vector 48 >> ioapic0: routing intpin 15 (ISA IRQ 15) to lapic 6 vector 48 >> ioapic0: routing intpin 28 (PCI IRQ 28) to lapic 7 vector 48 >> TSC timecounter discards lower 1 bit(s) >> Timecounter "TSC-low" frequency 1300024860 Hz quality -100 >> WARNING: WITNESS option enabled, expect reduced performance. Hello, Thanks Matt and Colin for the testing and help! I've pushed yet another version, now it's branch pvhvm_v12, which I *think* should solve the issues with cpuid != acpi_id: http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=shortlog;h=refs/heads/pvhvm_v12 Since I'm not able to reproduce the cpuid != acpi_id case, could you give it a try and report the results? > On a cc2.8xlarge EC2 instance, the lines which come after this are >> GEOM: new disk xbd1 >> GEOM: new disk xbd2 >> GEOM: new disk xbd3 >> GEOM: new disk xbd4 >> Trying to mount root from ufs:/dev/ad0a [rw]... >> start_init: trying /sbin/init > and then the userland boot process; have you made any bug fixes after > your pvhvm_v7 which would explain why tasting disks was hanging? I'm not sure I follow, did you found a regression from previous branches? i.e. it used to work with branch pvhvm_v6 and not pvhvm_v7? From owner-freebsd-xen@FreeBSD.ORG Wed May 29 17:07:48 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 90F4F62D; Wed, 29 May 2013 17:07:48 +0000 (UTC) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (ns1.scsiguy.com [70.89.174.89]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE2BA23; Wed, 29 May 2013 17:07:47 +0000 (UTC) Received: from [192.168.6.146] (207-225-98-3.dia.static.qwest.net [207.225.98.3]) (authenticated bits=0) by aslan.scsiguy.com (8.14.7/8.14.5) with ESMTP id r4TH7INa052503 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 29 May 2013 17:07:20 GMT (envelope-from gibbs@scsiguy.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: FreeBSD PVHVM call for testing From: "Justin T. Gibbs" In-Reply-To: Date: Wed, 29 May 2013 11:07:13 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <519131D8.9010307@citrix.com> <647F6650-AEED-4784-8A45-98324860EE0A@dckd.nl> <519E1A0C.3070609@citrix.com> To: Outback Dingo X-Mailer: Apple Mail (2.1503) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (aslan.scsiguy.com [70.89.174.89]); Wed, 29 May 2013 17:07:22 +0000 (UTC) Cc: Craig Rodrigues , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "freebsd-xen@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 17:07:48 -0000 On May 28, 2013, at 5:20 PM, Outback Dingo = wrote: > On Tue, May 28, 2013 at 7:09 PM, Craig Rodrigues = wrote: >=20 >> On Tue, May 28, 2013 at 3:43 PM, Outback Dingo = wrote: >>=20 >>>=20 >>> I wrote a blog post specifically for installing 10-CURRENT from a >>>> snapshot ISO and getting bootstrapped >>>> from there, to help the Google Summer of Code Student that I am >>>> mentoring. >>>> What specifically do you want to be backported to 9-STABLE? >>>>=20 >>>=20 >>> Yes Ive seen the post, however we have a hard requirement for = 9-STABLE >>> for some development work we are >>> currently involved in. And I would prefer not to move our current >>> infrastructure for development to CURRENT. >>> A major portion of our development environment is based on XEN for >>> testing and development. >>> Therefor we realize PVHM is a work in progress, and we have built = some >>> VMs from it, they run exceptionally >>> well, However our build environments refuse to build 9-STABLE on = CURRENT >>> PVHVM, or 10-CURRENT. >>> Lastly Im sure theres a ton of users who would like to see this in = 9.x or >>> 9-STABLE >>>=20 >>>=20 >>=20 >> OK, I misunderstood you since you responded in the thread and quoted = some >> of my post. >> My blog post has nothing relevant to Xen and PVHM, and is specific to >> setting up >> a Google Summer of Code student on a 10-CURRENT environment. The = FreeBSD >> Xen >> and PVHM developers will need to provide the details about their = plans to >> merge their changes to the 9-STABLE branch..... >> that's something which I am not familiar with. >>=20 >=20 > If we can get a diff of the work done against the master Id be happy = to > help backporting and testing I plan to backport the work once we have it all in -current. -- Justin= From owner-freebsd-xen@FreeBSD.ORG Wed May 29 17:22:30 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F1A5C7C1; Wed, 29 May 2013 17:22:29 +0000 (UTC) (envelope-from prvs=854e4d353=msw@amazon.com) Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7A4ABB; Wed, 29 May 2013 17:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=msw@amazon.com; q=dns/txt; s=amazon201209; t=1369848149; x=1401384149; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=EtD99msgmr/hICSmuSUv9+Q5jjpgnXxuR0eMMuvNfa8=; b=Ukk9jb0Gu5iJC4WQp6QLBsFY+X71oE/QJ1O5SaLjMcFCArciORC8zfQh ImvG5+mfqrH3td7wEQFc4+DjL+Gds1w+53gxFjxjr6IqH/Pe+3QB9/TEl 9VDZta/hbOf1PJQlkDK2zMciHInGiD8DEa/bSmoE3cfonhndL0UQLRQmv w=; X-IronPort-AV: E=Sophos;i="4.87,765,1363132800"; d="scan'208";a="568401090" Received: from smtp-in-1101.vdc.amazon.com ([10.146.54.37]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 May 2013 17:22:27 +0000 Received: from ex10-hub-9003.ant.amazon.com (ex10-hub-9003.ant.amazon.com [10.185.137.132]) by smtp-in-1101.vdc.amazon.com (8.13.8/8.13.8) with ESMTP id r4THMOUl029000 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Wed, 29 May 2013 17:22:27 GMT Received: from u109add4315675089e695.ant.amazon.com (10.184.8.86) by ex10-hub-9003.ant.amazon.com (10.185.137.132) with Microsoft SMTP Server id 14.2.247.3; Wed, 29 May 2013 10:22:03 -0700 Received: by u109add4315675089e695.ant.amazon.com (sSMTP sendmail emulation); Wed, 29 May 2013 10:22:03 -0700 Date: Wed, 29 May 2013 10:22:03 -0700 From: Matt Wilson To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing Message-ID: <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> References: <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> <51A634EC.7050805@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51A634EC.7050805@citrix.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , "freebsd-virtualization@freebsd.org" , xen-devel X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 17:22:30 -0000 On Wed, May 29, 2013 at 07:03:40PM +0200, Roger Pau Monné wrote: > > Hello, > > Thanks Matt and Colin for the testing and help! I've pushed yet another > version, now it's branch pvhvm_v12, which I *think* should solve the > issues with cpuid != acpi_id: > > http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=shortlog;h=refs/heads/pvhvm_v12 > > Since I'm not able to reproduce the cpuid != acpi_id case, could you > give it a try and report the results? Colin, can you build an AMI with this new kernel? [...] > On 28/05/13 23:33, Colin Percival wrote: > > On a cc2.8xlarge EC2 instance, the lines which come after this are > >> GEOM: new disk xbd1 > >> GEOM: new disk xbd2 > >> GEOM: new disk xbd3 > >> GEOM: new disk xbd4 > >> Trying to mount root from ufs:/dev/ad0a [rw]... > >> start_init: trying /sbin/init > > and then the userland boot process; have you made any bug fixes after > > your pvhvm_v7 which would explain why tasting disks was hanging? > > I'm not sure I follow, did you found a regression from previous > branches? i.e. it used to work with branch pvhvm_v6 and not pvhvm_v7? Colin was saying that his local change only moved the boot process a bit farther for cr1.8xlarge. Perhaps some of the other changes you made in the latest pvhvm_v12 branch will get the VM all the way up. --msw From owner-freebsd-xen@FreeBSD.ORG Wed May 29 17:45:34 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F1524E8F; Wed, 29 May 2013 17:45:33 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [46.33.159.39]) by mx1.freebsd.org (Postfix) with ESMTP id 468F8C01; Wed, 29 May 2013 17:45:32 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,765,1363132800"; d="scan'208";a="5105590" Received: from lonpex01cl03.citrite.net ([10.30.203.103]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA; 29 May 2013 17:45:25 +0000 Received: from [192.168.1.30] (10.30.203.1) by LONPEX01CL03.citrite.net (10.30.203.103) with Microsoft SMTP Server id 14.2.342.3; Wed, 29 May 2013 18:45:23 +0100 Message-ID: <51A63EB3.5090007@citrix.com> Date: Wed, 29 May 2013 19:45:23 +0200 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Matt Wilson Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing References: <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> <51A634EC.7050805@citrix.com> <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> In-Reply-To: <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.30.203.1] Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , "freebsd-virtualization@freebsd.org" , xen-devel X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 17:45:34 -0000 On 29/05/13 19:22, Matt Wilson wrote: > On Wed, May 29, 2013 at 07:03:40PM +0200, Roger Pau Monné wrote: >> >> Hello, >> >> Thanks Matt and Colin for the testing and help! I've pushed yet another >> version, now it's branch pvhvm_v12, which I *think* should solve the >> issues with cpuid != acpi_id: >> >> http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=shortlog;h=refs/heads/pvhvm_v12 >> >> Since I'm not able to reproduce the cpuid != acpi_id case, could you >> give it a try and report the results? > > Colin, can you build an AMI with this new kernel? > > [...] > >> On 28/05/13 23:33, Colin Percival wrote: >>> On a cc2.8xlarge EC2 instance, the lines which come after this are >>>> GEOM: new disk xbd1 >>>> GEOM: new disk xbd2 >>>> GEOM: new disk xbd3 >>>> GEOM: new disk xbd4 >>>> Trying to mount root from ufs:/dev/ad0a [rw]... >>>> start_init: trying /sbin/init >>> and then the userland boot process; have you made any bug fixes after >>> your pvhvm_v7 which would explain why tasting disks was hanging? >> >> I'm not sure I follow, did you found a regression from previous >> branches? i.e. it used to work with branch pvhvm_v6 and not pvhvm_v7? > > Colin was saying that his local change only moved the boot process a > bit farther for cr1.8xlarge. Perhaps some of the other changes you > made in the latest pvhvm_v12 branch will get the VM all the way up. Oh, sure, more changes where needed in order to get it to work, like using acpi_id to map the vcpu_info and perform the cpu bindings. From owner-freebsd-xen@FreeBSD.ORG Wed May 29 20:59:44 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2A430C64 for ; Wed, 29 May 2013 20:59:44 +0000 (UTC) (envelope-from bounces+73574-0602-freebsd-xen=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id A44D8917 for ; Wed, 29 May 2013 20:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpapi; bh=CO65JV4e5UB5JIGKX9Y3Ul WcJ/s=; b=sbFIOE3RfM/e4zIzqC47515Yk5hskaEPjX5tcBEGVy+oCRrlqXspGT zlPt2gPTMh69MgwnT6wUX9J27TIPV9HByBbD96BzDTV/66GnV1pHIVyv7GZq/h9H GzypdtMiXmxiuLSv7Ckt0QZVfITNewxMph1T5KeSm+ypTEoROi0eg= Received: by 10.42.80.127 with SMTP id filter-061.31824.51A66C3E3 Wed, 29 May 2013 20:59:42 +0000 (UTC) Received: from mail.tarsnap.com (unknown [10.60.208.17]) by mi23 (SG) with ESMTP id 13ef216d2ca.6914.e5646e for ; Wed, 29 May 2013 15:59:42 -0500 (CST) Received: (qmail 33090 invoked from network); 29 May 2013 20:59:41 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 29 May 2013 20:59:41 -0000 Received: (qmail 82717 invoked from network); 29 May 2013 20:58:59 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 29 May 2013 20:58:59 -0000 Message-ID: <51A66C13.7060203@freebsd.org> Date: Wed, 29 May 2013 13:58:59 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130406 Thunderbird/17.0.5 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= , Matt Wilson Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing References: <5197A1EA.2040404@freebsd.org> <519CAFC7.1070908@citrix.com> <519D24A9.3050407@freebsd.org> <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> <51A634EC.7050805@citrix.com> <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> <51A63EB3.5090007@citrix.com> In-Reply-To: <51A63EB3.5090007@citrix.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 content-transfer-encoding: quoted-printable X-SG-EID: RUbAm5H8PjswBj/QH+sYVehaJogg3iBnZcyVi1bw/IwdY5+U+2g51gTSyrQF+k8ePH73D06/CDGnzI0fzn6UaluWEiq6TyrV4dJrq9xZIkP2YQMN6IpaIDjWRdXmjkRsrFb0w3EnELFL8QyKCZIN9Q== X-SendGrid-Contentd-ID: {"test_id":"1369861182"} Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , "freebsd-virtualization@freebsd.org" , xen-devel X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 20:59:44 -0000 On 05/29/13 10:45, Roger Pau Monn=E9 wrote:=0D > Oh, sure, more changes where needed in order to get it to work, like=0D > using acpi_id to map the vcpu_info and perform the cpu bindings.=0D =0D Ah, that explains it. I looked at timer.c for other places where that=0D change was needed but it didn't occur to me that the same problem would=0D exist in other parts of the tree.=0D =0D > On 29/05/13 19:22, Matt Wilson wrote:=0D >> On Wed, May 29, 2013 at 07:03:40PM +0200, Roger Pau Monn=E9 wrote:=0D >>> http://xenbits.xen.org/gitweb/?p=3Dpeople/royger/freebsd.git;a=3Dshortl= og;h=3Drefs/heads/pvhvm_v12=0D >>=0D >> Colin, can you build an AMI with this new kernel?=0D =0D Done, ami-95177dfc in us-east-1.=0D =0D This is now booting successfully on cr1.8xlarge; are there any other instan= ce=0D types I should test? I don't know which Xen versions you have deployed acr= oss=0D the entire fleet.=0D =0D -- =0D Colin Percival=0D Security Officer Emeritus, FreeBSD | The power to serve=0D Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid= =0D From owner-freebsd-xen@FreeBSD.ORG Wed May 29 22:19:39 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3C3B56F1; Wed, 29 May 2013 22:19:39 +0000 (UTC) (envelope-from prvs=854e4d353=msw@amazon.com) Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id CADB2BF5; Wed, 29 May 2013 22:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=msw@amazon.com; q=dns/txt; s=amazon201209; t=1369865979; x=1401401979; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XGVOenp68XzTGWakqk7DQ0mhpSM/HhxUccS9pC4m3P0=; b=kv7nW3UsC2oNF/cxbnkgqdjtmjSbyUD1sHSke+Eofi1t1iWGAhuEc3FD OpcME5H3ABeR4Oq55jRDSWeQlfWC6mQ+6ZuaeIczP3CF2S5t2dpMx7qmJ G3naK5b4hwZ5KDLmaeZ2y0JHCum3eebV15Z4dB+xoe0uo6Uik8gGkvfAE 0=; X-IronPort-AV: E=Sophos;i="4.87,766,1363132800"; d="scan'208";a="568497162" Received: from smtp-in-6001.iad6.amazon.com ([10.195.76.178]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 May 2013 22:19:32 +0000 Received: from ex10-hub-31005.ant.amazon.com (ex10-hub-31005.sea31.amazon.com [10.185.176.12]) by smtp-in-6001.iad6.amazon.com (8.13.8/8.13.8) with ESMTP id r4TMJVTH021659 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Wed, 29 May 2013 22:19:32 GMT Received: from u109add4315675089e695.ant.amazon.com (10.184.8.82) by ex10-hub-31005.ant.amazon.com (10.185.176.12) with Microsoft SMTP Server id 14.2.247.3; Wed, 29 May 2013 15:19:22 -0700 Received: by u109add4315675089e695.ant.amazon.com (sSMTP sendmail emulation); Wed, 29 May 2013 15:19:22 -0700 Date: Wed, 29 May 2013 15:19:22 -0700 From: Matt Wilson To: Colin Percival Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing Message-ID: <20130529221920.GC20973@u109add4315675089e695.ant.amazon.com> References: <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> <51A634EC.7050805@citrix.com> <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> <51A63EB3.5090007@citrix.com> <51A66C13.7060203@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <51A66C13.7060203@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 29 May 2013 22:19:39 -0000 On Wed, May 29, 2013 at 01:58:59PM -0700, Colin Percival wrote: > On 29/05/13 19:22, Matt Wilson wrote: > > Colin, can you build an AMI with this new kernel? > > Done, ami-95177dfc in us-east-1. > > This is now booting successfully on cr1.8xlarge; are there any other instance > types I should test? I don't know which Xen versions you have deployed across > the entire fleet. Nice! The other interesting instance types for problems like this are cc1.4xlarge, cg1.4xlarge and cc2.8xlarge. --msw From owner-freebsd-xen@FreeBSD.ORG Thu May 30 01:11:27 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DC47B5FD for ; Thu, 30 May 2013 01:11:27 +0000 (UTC) (envelope-from bounces+73574-0602-freebsd-xen=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id 744A695D for ; Thu, 30 May 2013 01:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpapi; bh=ey/PxumD4JidgGLj3YWl3A lHxJU=; b=hJTpqHDEwwNzH1At4M1PM0C4wJB4LUH3/GKnDabKaZ63WquZ28FgqG N/ZaUDb5oAFc8owurMTMO8TTu7wREll7Z9YaXSm9XO3eEbI0MCpTnFT8BdZ6eydA 5ocL/+fUETfGQ4SmaT/0JDh+jJk1dbWCqJGQVoz7PKoxXcN+XM+rk= Received: by 10.4.35.240 with SMTP id mf66.17081.51A6A73E6 Thu, 30 May 2013 01:11:26 +0000 (UTC) Received: from mail.tarsnap.com (unknown [10.60.208.17]) by mi22 (SG) with ESMTP id 13ef2fd4c76.420c.89e002 for ; Wed, 29 May 2013 20:11:26 -0500 (CST) Received: (qmail 40952 invoked from network); 30 May 2013 01:11:25 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 30 May 2013 01:11:25 -0000 Received: (qmail 84449 invoked from network); 30 May 2013 01:10:43 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 30 May 2013 01:10:43 -0000 Message-ID: <51A6A712.6070401@freebsd.org> Date: Wed, 29 May 2013 18:10:42 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130406 Thunderbird/17.0.5 MIME-Version: 1.0 To: Matt Wilson Subject: Re: [Xen-devel] FreeBSD PVHVM call for testing References: <519DDC0A.9000201@citrix.com> <519E6958.6020606@freebsd.org> <519F3CD0.5090405@citrix.com> <51A4D804.9050208@citrix.com> <20130528191855.GA13736@u109add4315675089e695.ant.amazon.com> <51A5229F.80205@freebsd.org> <51A634EC.7050805@citrix.com> <20130529172201.GA20973@u109add4315675089e695.ant.amazon.com> <51A63EB3.5090007@citrix.com> <51A66C13.7060203@freebsd.org> <20130529221920.GC20973@u109add4315675089e695.ant.amazon.com> In-Reply-To: <20130529221920.GC20973@u109add4315675089e695.ant.amazon.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SG-EID: RUbAm5H8PjswBj/QH+sYVehaJogg3iBnZcyVi1bw/Iztm0CKQ/Goz3SWMZC70+VS4mwL/uqzy96CZIh7tARr4YwditFlO1qq4CpZoHCzKcJIIj73hBm1QJyrXREU0vsV Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 01:11:27 -0000 On 05/29/13 15:19, Matt Wilson wrote: > On Wed, May 29, 2013 at 01:58:59PM -0700, Colin Percival wrote: >> On 29/05/13 19:22, Matt Wilson wrote: >>> Colin, can you build an AMI with this new kernel? >> >> Done, ami-95177dfc in us-east-1. >> >> This is now booting successfully on cr1.8xlarge; are there any other instance >> types I should test? I don't know which Xen versions you have deployed across >> the entire fleet. > > Nice! The other interesting instance types for problems like this are > cc1.4xlarge, cg1.4xlarge and cc2.8xlarge. I've tried on all three of those and everything seems good -- but I'm only seeing Xen 3.4 on those instance types, so we're not really testing anything interesting there. I'll resist asking whether there will be Xen 4.x anywhere else in EC2 in the near future since I've had enough of a taste of Amazon NDAs to know that I almost certainly wouldn't get an answer... ;-) -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Thu May 30 08:51:03 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3E83DF2B; Thu, 30 May 2013 08:51:03 +0000 (UTC) (envelope-from jeroen@dckd.nl) Received: from positron.dckd.nl (positron.dckd.nl [94.142.246.99]) by mx1.freebsd.org (Postfix) with ESMTP id 0612CC22; Thu, 30 May 2013 08:51:02 +0000 (UTC) Received: from nb-vdham.science.uva.nl (nb-vdham.science.uva.nl [146.50.52.179]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by positron.dckd.nl (Postfix) with ESMTPSA id DA968F8062; Thu, 30 May 2013 10:50:54 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: FreeBSD PVHVM call for testing From: Jeroen van der Ham In-Reply-To: <519E54DE.5090304@citrix.com> Date: Thu, 30 May 2013 10:50:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> To: =?iso-8859-1?Q?Roger_Pau_Monn=E9?= X-Mailer: Apple Mail (2.1503) Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 08:51:03 -0000 Hi, On 23 May 2013, at 19:41, Roger Pau Monn=E9 = wrote: > Hello, >=20 > I've pushed a new branch, pvhvm_v10 that contains a PV IPI > implementation for both amd64 and i386. I've also updated the wiki to > point to the pvhvm_v10 branch: I've been running a VM with this kernel for about a week now. It ran = fine, until about 3:30 in the morning. The only thing I can see is the = following cryptic messages in /var/log/messages, followed by a reboot of = the system. May 29 23:42:30 image01 sshd[31227]: error: Received disconnect from = 150.165.15.175: 11: Bye Bye [preauth] May 30 03:30:57 image01 kernel: . May 30 03:30:57 image01 ntpd[4436]: ntpd exiting on signal 15 May 30 03:30:57 image01 kernel: . May 30 03:30:58 image01 kernel: . May 30 03:31:00 image01 syslogd: exiting on signal 15 May 30 03:32:52 image01 syslogd: kernel boot file is /boot/kernel/kernel May 30 03:32:52 image01 kernel: Copyright (c) 1992-2013 The FreeBSD = Project. May 30 03:32:52 image01 kernel: Copyright (c) 1979, 1980, 1983, 1986, = 1988, 1989, 1991, 1992, 1993, 1994 May 30 03:32:52 image01 kernel: The Regents of the University of = California. All rights reserved. May 30 03:32:52 image01 kernel: FreeBSD is a registered trademark of The = FreeBSD Foundation. I'm happy to help to gather more information, just tell me what you = need. Jeroen. From owner-freebsd-xen@FreeBSD.ORG Thu May 30 09:04:26 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2A646199; Thu, 30 May 2013 09:04:26 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [46.33.159.39]) by mx1.freebsd.org (Postfix) with ESMTP id 986CFCEA; Thu, 30 May 2013 09:04:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,769,1363132800"; d="scan'208";a="5126445" Received: from lonpex01cl02.citrite.net ([10.30.203.102]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA; 30 May 2013 09:04:23 +0000 Received: from [192.168.1.30] (10.30.203.1) by LONPEX01CL02.citrite.net (10.30.203.102) with Microsoft SMTP Server id 14.2.342.3; Thu, 30 May 2013 10:04:23 +0100 Message-ID: <51A71616.4060508@citrix.com> Date: Thu, 30 May 2013 11:04:22 +0200 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Jeroen van der Ham Subject: Re: FreeBSD PVHVM call for testing References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> In-Reply-To: <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.30.203.1] Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 09:04:26 -0000 On 30/05/13 10:50, Jeroen van der Ham wrote: > Hi, > > On 23 May 2013, at 19:41, Roger Pau Monné wrote: > >> Hello, >> >> I've pushed a new branch, pvhvm_v10 that contains a PV IPI >> implementation for both amd64 and i386. I've also updated the wiki to >> point to the pvhvm_v10 branch: > > I've been running a VM with this kernel for about a week now. It ran fine, until about 3:30 in the morning. The only thing I can see is the following cryptic messages in /var/log/messages, followed by a reboot of the system. > > May 29 23:42:30 image01 sshd[31227]: error: Received disconnect from 150.165.15.175: 11: Bye Bye [preauth] > May 30 03:30:57 image01 kernel: . > May 30 03:30:57 image01 ntpd[4436]: ntpd exiting on signal 15 > May 30 03:30:57 image01 kernel: . > May 30 03:30:58 image01 kernel: . > May 30 03:31:00 image01 syslogd: exiting on signal 15 > May 30 03:32:52 image01 syslogd: kernel boot file is /boot/kernel/kernel > May 30 03:32:52 image01 kernel: Copyright (c) 1992-2013 The FreeBSD Project. > May 30 03:32:52 image01 kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > May 30 03:32:52 image01 kernel: The Regents of the University of California. All rights reserved. > May 30 03:32:52 image01 kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. > > I'm happy to help to gather more information, just tell me what you need. Hello Jeroen, So it looks like the system rebooted (but it was not a crash or a sporadic reboot? the kernel seems to be aware of the reboot request). It would be interesting if you could provide the output of the serial console when this happens, that might be helpful. Did you enable xenconsoled logging? Also, could you provide more info about your system, Xen version, what workload was the DomU running, Dom0 kernel version? From owner-freebsd-xen@FreeBSD.ORG Thu May 30 09:15:47 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2D579428; Thu, 30 May 2013 09:15:47 +0000 (UTC) (envelope-from jeroen@dckd.nl) Received: from positron.dckd.nl (positron.dckd.nl [94.142.246.99]) by mx1.freebsd.org (Postfix) with ESMTP id E80EFD65; Thu, 30 May 2013 09:15:46 +0000 (UTC) Received: from nb-vdham.science.uva.nl (nb-vdham.science.uva.nl [146.50.52.179]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by positron.dckd.nl (Postfix) with ESMTPSA id 26C78F8062; Thu, 30 May 2013 11:15:45 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: FreeBSD PVHVM call for testing From: Jeroen van der Ham In-Reply-To: <51A71616.4060508@citrix.com> Date: Thu, 30 May 2013 11:15:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> <51A71616.4060508@citrix.com> To: =?iso-8859-1?Q?Roger_Pau_Monn=E9?= X-Mailer: Apple Mail (2.1503) Cc: "freebsd-xen@freebsd.org" , xen-devel , "freebsd-virtualization@freebsd.org" , "xen-users@lists.xen.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 09:15:47 -0000 Hi, On 30 May 2013, at 11:04, Roger Pau Monn=E9 = wrote: > So it looks like the system rebooted (but it was not a crash or a > sporadic reboot? the kernel seems to be aware of the reboot request). = It > would be interesting if you could provide the output of the serial > console when this happens, that might be helpful. Did you enable > xenconsoled logging? Unfortunately I did not. > Also, could you provide more info about your system, Xen version, what > workload was the DomU running, Dom0 kernel version? There was no one logged in at the time of the reboot according to the = last log. I did do some sysbench tests during the day, but that was way before it = rebooted. The only thing that could be running during that time was = daily periodic. $ sudo xm info host : soleus01.soleus.nu release : 2.6.32-5-xen-amd64 version : #1 SMP Mon Oct 3 07:53:54 UTC 2011 machine : x86_64 nr_cpus : 8 nr_nodes : 2 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2200 hw_caps : = 178bf3ff:efd3fbff:00000000:00001310:00802001:00000000:000037ff:00000000 virt_caps : hvm total_memory : 65534 free_memory : 6866 node_to_cpu : node0:0-3 node1:4-7 node_to_memory : node0:3128 node1:3737 node_to_dma32_mem : node0:3128 node1:0 max_node_id : 1 xen_major : 4 xen_minor : 0 xen_extra : .1 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=3D0xffff800000000000 xen_changeset : unavailable xen_commandline : placeholder dom0_mem=3D1852M cc_compiler : gcc version 4.4.5 (Debian 4.4.5-10) cc_compile_by : waldi cc_compile_domain : debian.org cc_compile_date : Wed Jan 12 14:04:06 UTC 2011 xend_config_format : 4 $ uname -a Linux soleus01.soleus.nu 2.6.32-5-xen-amd64 #1 SMP Mon Oct 3 07:53:54 = UTC 2011 x86_64 GNU/Linux Jeroen. From owner-freebsd-xen@FreeBSD.ORG Thu May 30 14:56:07 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C5393B11; Thu, 30 May 2013 14:56:07 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 84AB4A49; Thu, 30 May 2013 14:56:07 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id wo10so775781obc.3 for ; Thu, 30 May 2013 07:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=og4uCGSek8Bq04fLhmLhP4wK2egizPR1eG0bUU4G0UY=; b=Q8BX/9n1UGrOybtpkX4l6eCWRtIrdAQybOnNQLdPUNcdHdLxbxQGpRmscOggbIAit4 wwhgWemYJHKCtZH7tUKkOnJKlRCWMFjopkJhF2oMhWS5muLHZ8TAryfMjLww9DdWvmvX GphUWQWFF1fsJjeMhxFCK+hGTslYTnG08EqwvHk/knbMZ6x9aA8h7rr+YLYlSvtfwEzG kj2oeFuUkNEpAZST0RBxp/hcyCFXg7uJDCf+w1MHVZenRzMuC4oATR2M21ISEKXBN0ci 2eGd3cfbO2+gYBZRrC2Du14z9td5y5jw1e/vlGCh7jEzo82+x4iypc/GIrndTrB6U7tQ 3PLQ== MIME-Version: 1.0 X-Received: by 10.60.42.140 with SMTP id o12mr4385416oel.60.1369925767106; Thu, 30 May 2013 07:56:07 -0700 (PDT) Received: by 10.76.152.225 with HTTP; Thu, 30 May 2013 07:56:06 -0700 (PDT) In-Reply-To: References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> <51A71616.4060508@citrix.com> Date: Thu, 30 May 2013 10:56:06 -0400 Message-ID: Subject: Re: FreeBSD PVHVM call for testing From: Outback Dingo To: Jeroen van der Ham Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 14:56:07 -0000 On Thu, May 30, 2013 at 5:15 AM, Jeroen van der Ham wrote: > Hi, > > On 30 May 2013, at 11:04, Roger Pau Monn=E9 wrote: > > So it looks like the system rebooted (but it was not a crash or a > > sporadic reboot? the kernel seems to be aware of the reboot request). I= t > > would be interesting if you could provide the output of the serial > > console when this happens, that might be helpful. Did you enable > > xenconsoled logging? > > Unfortunately I did not. > > > Also, could you provide more info about your system, Xen version, what > > workload was the DomU running, Dom0 kernel version? > > There was no one logged in at the time of the reboot according to the las= t > log. > I did do some sysbench tests during the day, but that was way before it > rebooted. The only thing that could be running during that time was daily > periodic. > > $ sudo xm info > host : soleus01.soleus.nu > release : 2.6.32-5-xen-amd64 > version : #1 SMP Mon Oct 3 07:53:54 UTC 2011 > machine : x86_64 > nr_cpus : 8 > nr_nodes : 2 > cores_per_socket : 4 > threads_per_core : 1 > cpu_mhz : 2200 > hw_caps : > 178bf3ff:efd3fbff:00000000:00001310:00802001:00000000:000037ff:00000000 > virt_caps : hvm > total_memory : 65534 > free_memory : 6866 > node_to_cpu : node0:0-3 > node1:4-7 > node_to_memory : node0:3128 > node1:3737 > node_to_dma32_mem : node0:3128 > node1:0 > max_node_id : 1 > xen_major : 4 > xen_minor : 0 > xen_extra : .1 > 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=3D0xffff800000000000 > xen_changeset : unavailable > xen_commandline : placeholder dom0_mem=3D1852M > cc_compiler : gcc version 4.4.5 (Debian 4.4.5-10) > cc_compile_by : waldi > cc_compile_domain : debian.org > cc_compile_date : Wed Jan 12 14:04:06 UTC 2011 > xend_config_format : 4 > > $ uname -a > Linux soleus01.soleus.nu 2.6.32-5-xen-amd64 #1 SMP Mon Oct 3 07:53:54 UTC > 2011 x86_64 GNU/Linux > > Jeroen. > > first is this a public vm ? and if so who is?? May 29 23:42:30 image01 sshd[31227]: error: Received disconnect from 150.165.15.175: 11: Bye Bye [preauth] because it is after this potential ssh login attempt, so is this you, has there been a breach ? only thing i noticed, but it might be nothing. > _______________________________________________ > 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 Thu May 30 15:11:02 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8ABCAF67; Thu, 30 May 2013 15:11:02 +0000 (UTC) (envelope-from jeroen@dckd.nl) Received: from positron.dckd.nl (positron.dckd.nl [IPv6:2a02:898:62:f6::63]) by mx1.freebsd.org (Postfix) with ESMTP id 5030FB75; Thu, 30 May 2013 15:11:02 +0000 (UTC) Received: from wcw-staff-215-240.wireless.uva.nl (wcw-staff-215-240.wireless.uva.nl [145.18.215.240]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by positron.dckd.nl (Postfix) with ESMTPSA id 7C1E2F8905; Thu, 30 May 2013 17:10:59 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: FreeBSD PVHVM call for testing From: Jeroen van der Ham In-Reply-To: Date: Thu, 30 May 2013 17:10:59 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9BD00E17-0A80-44C6-8B7B-2933265F4664@dckd.nl> References: <519131D8.9010307@citrix.com> <519E54DE.5090304@citrix.com> <6B8B9354-AF52-4081-B67B-04565D1BCE99@dckd.nl> <51A71616.4060508@citrix.com> To: Outback Dingo X-Mailer: Apple Mail (2.1503) Cc: "freebsd-xen@freebsd.org" , "xen-users@lists.xen.org" , xen-devel , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 30 May 2013 15:11:02 -0000 Hi, On 30 May 2013, at 16:56, Outback Dingo wrote: > first is this a public vm ? and if so who is?? > May 29 23:42:30 image01 sshd[31227]: error: Received disconnect from > 150.165.15.175: 11: Bye Bye [preauth] >=20 > because it is after this potential ssh login attempt, so is this you, = has > there been a breach ? only thing i noticed, but it might be nothing. This VM is on a public IP indeed, and SSH connectivity is enabled. As = with any publicly accessible host this then becomes the target of ssh = scans. I included the message just to show that between it and the reboot = nothing had been logged. AFAICT there has not been a breach, and I have not seen any indications = at all that there may be one. Jeroen. From owner-freebsd-xen@FreeBSD.ORG Sat Jun 1 04:22:58 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4D3A381A for ; Sat, 1 Jun 2013 04:22:58 +0000 (UTC) (envelope-from qin6560@gmail.com) Received: from mail-qe0-f48.google.com (mail-qe0-f48.google.com [209.85.128.48]) by mx1.freebsd.org (Postfix) with ESMTP id 171CEDF9 for ; Sat, 1 Jun 2013 04:22:57 +0000 (UTC) Received: by mail-qe0-f48.google.com with SMTP id 9so174966qea.7 for ; Fri, 31 May 2013 21:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=QAppK//Kn5X5EVxv818Uog75BN9C73O5k7Wgd+9DdgM=; b=t1RHdpMIEVw2vhzaU99vwpzE6CO4vRDqxpFJdnjLzULUVYWUGrVesRG4nx7tQIufnO DwKH5fk4vTGKt0fb01R6G7ipNQd7Slt66EUkc7XPurRIjfx+9UQrAiaFAAAd00AQ6OIG 7omqGKj4zo8x4f9zI86fWUkRUyraF1TA78huvvLdG3EUWTNQE9cu3RT8JGxSb9DB/969 cQVrVFAS4DKMoAGXWqUqEmetjwLFDckjU2mb3sO0AnIOf9lwIc9AAp6kzwrPbB02Geiz ci3K5rr8OQQlz8+mQxuEz5hOHXC9wOHKav5E15RazTIABeec3nfYV5iWaYMMeo74ENdl mjTQ== X-Received: by 10.229.144.14 with SMTP id x14mr236131qcu.36.1370060577086; Fri, 31 May 2013 21:22:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.70.168 with HTTP; Fri, 31 May 2013 21:22:36 -0700 (PDT) From: Shaopu Qin Date: Fri, 31 May 2013 23:22:36 -0500 Message-ID: Subject: Page fault when booting FreeBSD 9.1 XENHVM To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.14 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, 01 Jun 2013 04:22:58 -0000 Hi everyone, I have a problem when booting FreeBSD 9.1 XENHVM. After build and install the kernel with KERNCONF=XENHVM, the system cannot boot. Here is the error message: xenbusb_front0: on xenstore0 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xfffffe010255667f fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80b63c08 stack pointer = 0x28:0xffffffff8156a8a0 frame pointer = 0x28:0xffffffff8156a8e0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) trap number = 12 panic: page fault cpuid = 0 KDB: stack backtrace: #0 0xffffffff809219a6 at kdb_backtrace+0x66 #1 0xffffffff808ebc4e at panic+0x1ce #2 0xffffffff80bfa890 at trap_fatal+0x290 #3 0xffffffff80bfabcd at trap_pfault+0x1ed #4 0xffffffff80bfb1ee at trap+0x3ce #5 0xffffffff80be576f at calltrap+0x8 #6 0xffffffff80b65aaa at xs_directory+0x7a #7 0xffffffff80b65d05 at xs_exists+0x15 #8 0xffffffff80b61eac at xenbusb_add_device+0x9c #9 0xffffffff80b6312b at xenbusb_front_enumerate_type+0x5b #10 0xffffffff80b62eee at xenbusb_attach+0xfe #11 0xffffffff8091af02 at device_attach+0x72 #12 0xffffffff8091c95a at bus_generic_attach+0x1a #13 0xffffffff80b63bd1 at xs_attach_deferred+0x21 #14 0xffffffff809167fb at run_interrupt_driven_config_hooks+0xab #15 0xffffffff80916b6c at boot_run_interrupt_driven_config_hooks+0x2c #16 0xffffffff8089d637 at mi_startup+0x77 #17 0xffffffff802b682c at btext+0x2c And here is my xen config file: builder = "hvm" name = "shvm5_freebsd" memory = "1024" vcpus = 1 vif = [ 'ip=192.168.3.15,mac=00:16:3e:05:4a:82,bridge=xenbr0' ] #disk = ['phy:/dev/vg0/vm5,hda,w','file:/root/xenn/FreeBSD-9.1-RELEASE-amd64-disc1.iso,hdc:cdrom,r'] disk = ['phy:/dev/vg0/vm5,hda,w'] boot="dc" gfx_passthru=0 xen_platform_pci=1 serial='pty' Does anyone have the same problem? I found a post online and it seems that there is a bug in the code. http://freebsd.1045724.n5.nabble.com/xenstore-panic-booting-XENHVM-on-NetBSD6-xen41-td5742039.html My xen version is 4.2.2-rc2, FreeBSD is 9.1 amd64, host0 is Ubuntu with kernel 3.4.9 Thanks, Peter