From owner-freebsd-xen@FreeBSD.ORG Sun Apr 5 08:32:28 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 543D4CC9 for ; Sun, 5 Apr 2015 08:32:28 +0000 (UTC) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12477DCA for ; Sun, 5 Apr 2015 08:32:28 +0000 (UTC) Received: by obbfy7 with SMTP id fy7so8399780obb.2 for ; Sun, 05 Apr 2015 01:32:27 -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:message-id:subject :from:to:cc:content-type; bh=0mDdqxSBdl002EjmgVzCK0vV1BE6TlT6syqUD542W6Q=; b=OTVwF0wOm4jfKnjvLpGUNpu+43YM9pgweuUgASFFlM6ghQprw9uhBxyASaYkVfzX0c BgDc4/2d3IWFvkt6jvyOAWIu4/pxz6DqsGVa1e/eLHEZquvJPEZyH11hyPdESBT6xsV3 LEkdhgfisuRRFKZ+fmS1th2lsxrOkk0GwgzXTlYXNyl5ahJwnOyc2JxRA5/5shZ0E7uB ZV4o6QRJi52PIS6jpgz66y+EO6onq+QHBXwUr5hbQNpxdWPEZtIbhj8dk/clSO/ayw4J GyCwKmNYCf3bWwzwn8GT0wfNDStW1rlp34d1tY99JLqPdncz6jUrYcRtYmSl2qJVsFc9 1h+Q== MIME-Version: 1.0 X-Received: by 10.182.130.166 with SMTP id of6mr12221922obb.53.1428222747379; Sun, 05 Apr 2015 01:32:27 -0700 (PDT) Sender: royger@gmail.com Received: by 10.60.22.199 with HTTP; Sun, 5 Apr 2015 01:32:27 -0700 (PDT) Received: by 10.60.22.199 with HTTP; Sun, 5 Apr 2015 01:32:27 -0700 (PDT) In-Reply-To: <551EFA82.9070007@entel.upc.edu> References: <551EFA82.9070007@entel.upc.edu> Date: Sun, 5 Apr 2015 10:32:27 +0200 X-Google-Sender-Auth: aO1kHlHckAhpWNPyEHGcgZQaI8g Message-ID: Subject: Re: Unable to boot with the dom0 xen kernel From: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= To: =?UTF-8?Q?Gustau_P=C3=A9rez?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 05 Apr 2015 08:32:28 -0000 Hello, I'm replying from my phone, sorry for the format\brevity. El dia 03/04/2015 23:37, "Gustau P=C3=A9rez" va escr= iure: > > > Hi, > > I'm trying to test xen but after following the instructions here: > > http://wiki.xen.org/wiki/FreeBSD_Dom0 > > the machine is unable to boot. I see the FreeBSD loader, giving me > the traditional options, after the timeout I see it loads the kernel and > modules (basically opensolaris.ko and zfs.ko) and then, instead of > showing the me boot info as usual, the machine shows me a cursor for a > while and then reboots. Could you update your boot loader to r280954 (or any later version) and try again? I've recently committed some small bug fixes for it. Thanks, Roger. From owner-freebsd-xen@FreeBSD.ORG Sun Apr 5 13:33:30 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71B812FF; Sun, 5 Apr 2015 13:33:30 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E18A6D3A; Sun, 5 Apr 2015 13:33:25 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t35CmtP5018382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Sun, 5 Apr 2015 14:48:56 +0200 Received: from [10.214.141.124] (141.Red-176-83-20.dynamicIP.rima-tde.net [176.83.20.141]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t35CmseH012932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 5 Apr 2015 14:48:55 +0200 Mime-Version: 1.0 (1.0) Subject: Re: Unable to boot with the dom0 xen kernel From: =?utf-8?Q?Gustau_P=C3=A9rez?= X-Mailer: iPhone Mail (12D508) In-Reply-To: Date: Sun, 5 Apr 2015 14:48:54 +0200 Message-Id: <26E21DDE-5CAF-40FD-B36B-672BF9B9B0A9@entel.upc.edu> References: <551EFA82.9070007@entel.upc.edu> To: =?utf-8?Q?Roger_Pau_Monn=C3=A9?= X-Greylist: ACL matched, not delayed by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Sun, 05 Apr 2015 14:48:56 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Sun, 05 Apr 2015 14:48:55 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-xen@FreeBSD.org" X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 05 Apr 2015 13:33:30 -0000 , > I'm replying from my phone, sorry for the format\brevity. >=20 > El dia 03/04/2015 23:37, "Gustau P=C3=A9rez" < >=20 > Could you update your boot loader to r280954 (or any later version) and tr= y >=20 > again? I've recently committed some small bug fixes for it. >=20 > Thanks, Roger. >=20 Hi, I'll try building and installing the new bootloader and report back. Thank to you, Gus= From owner-freebsd-xen@FreeBSD.ORG Mon Apr 6 08:00:15 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4CC73D5; Mon, 6 Apr 2015 08:00:15 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5733C24E; Mon, 6 Apr 2015 08:00:14 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t3680A69025363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Mon, 6 Apr 2015 10:00:10 +0200 Received: from [192.168.2.134] (193.Red-81-35-2.dynamicIP.rima-tde.net [81.35.2.193]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t36808Nv013494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 6 Apr 2015 10:00:09 +0200 Message-ID: <55223D08.4040007@entel.upc.edu> Date: Mon, 06 Apr 2015 10:00:08 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Delayed for 19:11:14 by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Mon, 06 Apr 2015 10:00:11 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Mon, 06 Apr 2015 10:00:10 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 06 Apr 2015 08:00:15 -0000 > Could you update your boot loader to r280954 (or any later version) > and try again? I've recently committed some small bug fixes for it. Hi, this morning I updated my sources to r281106, recompiled just the bootloader, installed it under /boot, installed the bootloader with: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 but the results were the same. When the bootloader starts, I see it loading both the kernel and the xen_kernel and some modules, then it shows me the menu and when it starts booting I see a blinking cursor and then the machine reboots. Does the xen kernel show some debug when booting? Can I send that debug to the console (how?) instead to ttyu1? Thanks, Gustau -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 02:11:35 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBFEAF94 for ; Tue, 7 Apr 2015 02:11:35 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C34F29D6 for ; Tue, 7 Apr 2015 02:11:35 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t372BZjF085051 for ; Tue, 7 Apr 2015 02:11:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 195978] Add vlan support to xen netfront Date: Tue, 07 Apr 2015 02:11:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: araujo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 02:11:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195978 --- Comment #3 from Marcelo Araujo --- I took a look at pfsense's patch, it seems not right for me. First it needs to check if the real NIC has support to hardware VLAN and then enable it on xen interface. I have no idea yet how we can pass this information when we attache a bridge interface to Xen, I do believe the changes must be in netback and netfront. I'm still investigating it and it will cost some time. Best, -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 07:28:56 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4A99765 for ; Tue, 7 Apr 2015 07:28:56 +0000 (UTC) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59690EA4 for ; Tue, 7 Apr 2015 07:28:56 +0000 (UTC) Received: by wiun10 with SMTP id n10so7271727wiu.1 for ; Tue, 07 Apr 2015 00:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PV9V/hq+pELtAstw2nXc1+KJjX4hyHMl+EzQXwGgI08=; b=ckvd5Pn6hQOwPJn7uaOWg5POyK+ggVlQFLIR7l+yk3NzNBRt/l4Tc+qNumQ+fcC2Ql xs0hiAFuAdx9yYyrSHxGKnXfWwSDRJ/Evwrm4nj5abXN9L7e1LFYh68lK8h4UOzGMXGL CgYMCw3jttpK5v4nWHaWPlNqKImKyI0ckThuWh+RAL9twzUw9s4CeD9MKSo4d6zUV19y DNbw/EYsR9Azsdk4DD8/XTxYPKThOn2J+K2BLx7XB2NASWlQXfRbCUBvVEJfz0Zcpq6l dmqK4tXCdVcGeYnezTEJmPjQI2EjnlyJrfuCeK4Jk0AgFbXxn/8IGIzk2bwW1F5w+Fp1 nmbQ== X-Received: by 10.194.80.40 with SMTP id o8mr36248269wjx.34.1428391734229; Tue, 07 Apr 2015 00:28:54 -0700 (PDT) Received: from [172.16.1.30] (53.Red-88-9-170.dynamicIP.rima-tde.net. [88.9.170.53]) by mx.google.com with ESMTPSA id hi6sm9639303wjc.34.2015.04.07.00.28.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 00:28:53 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <5523872E.5030700@FreeBSD.org> Date: Tue, 07 Apr 2015 09:28:46 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> <55223D08.4040007@entel.upc.edu> In-Reply-To: <55223D08.4040007@entel.upc.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 07:28:56 -0000 Hello, El 06/04/15 a les 10.00, Gustau Pérez ha escrit: > >> Could you update your boot loader to r280954 (or any later version) >> and try again? I've recently committed some small bug fixes for it. > > Hi, > > this morning I updated my sources to r281106, recompiled just the > bootloader, installed it under /boot, installed the bootloader with: > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 In order to update the loader you should do: cd /usr/src/sys/boot && make clean && make -j4 && make install > > but the results were the same. > > When the bootloader starts, I see it loading both the kernel and the > xen_kernel and some modules, then it shows me the menu and when it > starts booting I see a blinking cursor and then the machine reboots. Can you paste your xen_cmdline? If you don't have a serial console you should use console=vga in your xen_cmdline. Additionally if you have a usb debug port you could use that as console with console=dbgp [1]. > Does the xen kernel show some debug when booting? Can I send that debug > to the console (how?) instead to ttyu1? Yes, Xen will print debug info while booting to the console specified in the "console" option, which can be the serial, VGA or USB debug port. They are not exclusive, you can send output to several different destinations at once. Roger. [1] http://xenbits.xenproject.org/docs/unstable/misc/xen-command-line.html From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 08:25:12 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA77C420; Tue, 7 Apr 2015 08:25:12 +0000 (UTC) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 40FFE7D4; Tue, 7 Apr 2015 08:25:11 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id t378P2ZN013961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 7 Apr 2015 10:25:02 +0200 Received: from [10.0.2.151] ([147.83.40.10]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t378P2oE030892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Apr 2015 10:25:02 +0200 Message-ID: <5523945E.2050405@entel.upc.edu> Date: Tue, 07 Apr 2015 10:25:02 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> <55223D08.4040007@entel.upc.edu> <5523872E.5030700@FreeBSD.org> In-Reply-To: <5523872E.5030700@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Delayed for 43:36:06 by milter-greylist-4.4.3 (violet.upc.es [147.83.2.51]); Tue, 07 Apr 2015 10:25:03 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Tue, 07 Apr 2015 10:25:02 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 08:25:12 -0000 Hi, On 07/04/2015 09:28, Roger Pau Monné wrote: > this morning I updated my sources to r281106, recompiled just the > bootloader, installed it under /boot, installed the bootloader with: > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > In order to update the loader you should do: > > cd /usr/src/sys/boot && make clean && make -j4 && make install Thanks, this is basically what I did. Just to clarify, I'd say (please someone correct me if I'm wrong) that at the end the bootloader has to be installed in the disk (the make install phase just copies the bootcode under /boot) with gpart. One example is when you upgrade your sources and new zfs attributes appear; if any of those new attributes are enabled in the boot disk, the loader has to be installed with gpart bootcode or the boot process would fail. >> but the results were the same. >> >> When the bootloader starts, I see it loading both the kernel and the >> xen_kernel and some modules, then it shows me the menu and when it >> starts booting I see a blinking cursor and then the machine reboots. > Can you paste your xen_cmdline? I'm using the cmdline in the xen wiki. No special tweaking yet. > If you don't have a serial console you > should use console=vga in your xen_cmdline. Additionally if you have a > usb debug port you could use that as console with console=dbgp [1]. Thank you. I did not have a console at $home (the laptop has no physical serial port) but at $work my laptop dockstation provides me with a physical serial port. I'll try to use it. > >> Does the xen kernel show some debug when booting? Can I send that debug >> to the console (how?) instead to ttyu1? > Yes, Xen will print debug info while booting to the console specified in > the "console" option, which can be the serial, VGA or USB debug port. > They are not exclusive, you can send output to several different > destinations at once. I'll try with an non-vital (it is used for package building) Xen EPT-enabled server I have around and also with my laptop. I'll try sending the debug to vga console and the com1, if it fails I'll try to capture the output with the com1 console. I'll check the options for the xen_commandline Thanks for your help, Gustau -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 09:55:25 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 987A1F87 for ; Tue, 7 Apr 2015 09:55:25 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 255715EA for ; Tue, 7 Apr 2015 09:55:25 +0000 (UTC) Received: by widjs5 with SMTP id js5so6831765wid.1 for ; Tue, 07 Apr 2015 02:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=nOQZlvHWL+xL4ovyttbbFfGm3lhXg3yEgp/X8TZE2bo=; b=UEIeY1KZrsCVmRlU4fWb1woqcmBDb1tRGRPlL91c8KCC3fNrvoreqlU4khgf/DH4dy 9kis8XzDr4U3P3uL076GfXzuPfmJfciefOFMgs+qvDBCSq0pdVYFVVxbvR9UMxYJrCOj iNb4lm5e9iljTya9rBhD+qZGjQDzN6/jW/P9hbAed362lSqCEDSbINkof0U5gXVB/ax7 uXQT6/7zhqDpV8IHHMRMmZ5ak2AV7JkhR8a7bwZV34x8MS6t/ynaSLUuYdyafLr354BM amfbb5/QbPXLjxkXZ/FZNnPpybD16F1XHZO2x/FeCEdRFqwkLZn9K7wsSvfq+JtcwBaI 5/eg== X-Received: by 10.194.93.2 with SMTP id cq2mr39105471wjb.69.1428400523704; Tue, 07 Apr 2015 02:55:23 -0700 (PDT) Received: from [172.16.1.30] (53.Red-88-9-170.dynamicIP.rima-tde.net. [88.9.170.53]) by mx.google.com with ESMTPSA id fo7sm7006102wic.1.2015.04.07.02.55.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 02:55:22 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <5523A989.4010608@FreeBSD.org> Date: Tue, 07 Apr 2015 11:55:21 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> <55223D08.4040007@entel.upc.edu> <5523872E.5030700@FreeBSD.org> <5523945E.2050405@entel.upc.edu> In-Reply-To: <5523945E.2050405@entel.upc.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 09:55:25 -0000 Hello, El 07/04/15 a les 10.25, Gustau Pérez ha escrit: > I'm using the cmdline in the xen wiki. No special tweaking yet. I've just realized the xen_cmdline on the wiki page has the output set to serial only, I've now updated it to send output to both com1 and VGA. > >> If you don't have a serial console you >> should use console=vga in your xen_cmdline. Additionally if you have a >> usb debug port you could use that as console with console=dbgp [1]. > > Thank you. I did not have a console at $home (the laptop has no > physical serial port) but at $work my laptop dockstation provides me > with a physical serial port. I'll try to use it. I didn't know there were dock stations that provided serial ports even when the laptop didn't have them, that's something worth a try. If not just setting console=vga ought to provide some output. If that also fails please write back and I will provide a patch for the bootloader in order to try to figure out what's going on. Roger. From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 11:11:29 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5D34EEB; Tue, 7 Apr 2015 11:11:29 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478DBE58; Tue, 7 Apr 2015 11:11:28 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t37BBJFe012901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 7 Apr 2015 13:11:20 +0200 Received: from [10.0.2.151] ([147.83.40.10]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t37BBJr8010799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Apr 2015 13:11:19 +0200 Message-ID: <5523BB57.1010607@entel.upc.edu> Date: Tue, 07 Apr 2015 13:11:19 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> <55223D08.4040007@entel.upc.edu> <5523872E.5030700@FreeBSD.org> <5523945E.2050405@entel.upc.edu> <5523A989.4010608@FreeBSD.org> In-Reply-To: <5523A989.4010608@FreeBSD.org> X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Tue, 07 Apr 2015 13:11:20 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Tue, 07 Apr 2015 13:11:19 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 11:11:30 -0000 Hi Roger, >>> If you don't have a serial console you >>> should use console=vga in your xen_cmdline. Additionally if you have a >>> usb debug port you could use that as console with console=dbgp [1]. >> Thank you. I did not have a console at $home (the laptop has no >> physical serial port) but at $work my laptop dockstation provides me >> with a physical serial port. I'll try to use it. Well, my current laptop (Dell latitude E6430) and the previous one (Fujitsu Lifebook) have that. I'd say that even an old D630 laptop had that option. It is quite useful. > I didn't know there were dock stations that provided serial ports even > when the laptop didn't have them, that's something worth a try. If not > just setting console=vga ought to provide some output. If that also > fails please write back and I will provide a patch for the bootloader in > order to try to figure out what's going on. > > Roger. I added a new test machine. I'll show my results with this one (I'll report my laptop results later). The new machine is Intel(R) Xeon(R) CPU L5520 @ 2.27GHz EPT and IOMMU are there: [root@hast16 ~/xen]# dmesg|grep EPT VT-x: PAT,HLT,MTF,PAUSE,EPT,VPID [root@hast16 ~/xen]# acpidump -t | grep DMAR DMAR: Length=432, Revision=1, Checksum=213, First I tried xen and xen-tools from ports (version 4.5, hoping those were enought). The boot failed, he error says iommu is not enabled. The complete log is here: http://dpaste.com/0KCGGW7 so I switched to git version instead. The error was the same. I suspect this is the reason: (XEN) [VT-D]Disabling IOMMU due to Intel 5500/5520/X58 Chipset errata #47, #53 According to the article [1] it is possible to prevent interruption remapping. I added iommu=no-intremap (it is listed in [2]), it appears the xen kernel is happy with that, but then the domain0 FreeBSD kernel panics: http://dpaste.com/3TJYYDQ Gustau [1] http://support.citrix.com/article/CTX136517 [2] http://xenbits.xenproject.org/docs/unstable/misc/xen-command-line.html PS: I'd like to talk about the behavior of the xen_cmdline reboot option. Setting it "no" causes the machine to stop (which is fine) but the machine remains there. Perhaps it'd be good to allow to reboot the machine by pressing a key when in panic. Otherwise you have physically reboot the machine. -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 12:01:02 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF42BAFB for ; Tue, 7 Apr 2015 12:01:02 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 597213D1 for ; Tue, 7 Apr 2015 12:01:02 +0000 (UTC) Received: by wiaa2 with SMTP id a2so15624234wia.0 for ; Tue, 07 Apr 2015 05:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=5kNHemPefXe34uaMCXvFXormqVWOwMGeqj/+9VpdTDc=; b=fRhuyn83Aixko1rRaEBwjWpMr7dotEvV/74mCG3regrb95QjEngeka5SZt6ty4keKs hriDdmSZXivI4l6EYP4lMOCAfSOCA0Mga8ODfLonYpuckO/0lx/uvtTPw5tBBGP38hFP lyZjKFUD1rJUOinfxhCv0WXPy12UDoWY4IOy3n3vjq2OPR+ql9aXqoIWRofmpP5c6Ms4 PzLgYHRzNymVWe02+K20nvSaGj5iBYUyyP23tPuw2tgC3QEoQ6D/3/Bh7tY+zqQIiF3J 0tS7yPkTgMGHuYZZWr1odxD7Oqnjdw2dQDtS51sJMcAYdL8sxj3scldT4UhSh7LFK2XI +xQQ== X-Received: by 10.180.90.106 with SMTP id bv10mr3953845wib.4.1428408059996; Tue, 07 Apr 2015 05:00:59 -0700 (PDT) Received: from [172.16.1.30] (53.Red-88-9-170.dynamicIP.rima-tde.net. [88.9.170.53]) by mx.google.com with ESMTPSA id lb6sm10657787wjb.22.2015.04.07.05.00.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 05:00:58 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <5523C6F9.4000608@FreeBSD.org> Date: Tue, 07 Apr 2015 14:00:57 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= Subject: Re: Unable to boot with the dom0 xen kernel References: <551EFA82.9070007@entel.upc.edu> <55223D08.4040007@entel.upc.edu> <5523872E.5030700@FreeBSD.org> <5523945E.2050405@entel.upc.edu> <5523A989.4010608@FreeBSD.org> <5523BB57.1010607@entel.upc.edu> In-Reply-To: <5523BB57.1010607@entel.upc.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 12:01:02 -0000 Hello, El 07/04/15 a les 13.11, Gustau Pérez ha escrit: > > Hi Roger, >>>> If you don't have a serial console you >>>> should use console=vga in your xen_cmdline. Additionally if you have a >>>> usb debug port you could use that as console with console=dbgp [1]. >>> Thank you. I did not have a console at $home (the laptop has no >>> physical serial port) but at $work my laptop dockstation provides me >>> with a physical serial port. I'll try to use it. > > Well, my current laptop (Dell latitude E6430) and the previous one > (Fujitsu Lifebook) have that. I'd say that even an old D630 laptop had > that option. It is quite useful. >> I didn't know there were dock stations that provided serial ports even >> when the laptop didn't have them, that's something worth a try. If not >> just setting console=vga ought to provide some output. If that also >> fails please write back and I will provide a patch for the bootloader in >> order to try to figure out what's going on. >> >> Roger. > > I added a new test machine. I'll show my results with this one (I'll > report my laptop results later). > > The new machine is > > Intel(R) Xeon(R) CPU L5520 @ 2.27GHz > > EPT and IOMMU are there: > > [root@hast16 ~/xen]# dmesg|grep EPT > VT-x: PAT,HLT,MTF,PAUSE,EPT,VPID > [root@hast16 ~/xen]# acpidump -t | grep DMAR > DMAR: Length=432, Revision=1, Checksum=213, > > First I tried xen and xen-tools from ports (version 4.5, hoping those > were enought). The boot failed, he error says iommu is not enabled. The > complete log is here: > > http://dpaste.com/0KCGGW7 Yup, there's an errata with that specific chipset :(. > > so I switched to git version instead. The error was the same. I > suspect this is the reason: > > (XEN) [VT-D]Disabling IOMMU due to Intel 5500/5520/X58 Chipset > errata #47, #53 > > According to the article [1] it is possible to prevent interruption > remapping. I added iommu=no-intremap (it is listed in [2]), it appears > the xen kernel is happy with that, but then the domain0 FreeBSD kernel > panics: > > http://dpaste.com/3TJYYDQ Could you add iommu=no-intremap,debug? That will make the IOMMU code a little bit more verbose. Also the full boot log and a backtrace of FreeBSD might be helpful. I think I have an idea of what might cause this GP, can you apply the following patch to the Xen source tree and recompile the Xen kernel, (there's no need to recompile the tools): diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index e1c55ce..fc3c45b 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3102,8 +3102,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) if ( exit_qualification & 0x10 ) { /* INS, OUTS */ - if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || - !handle_mmio() ) + if ( !handle_mmio() ) hvm_inject_hw_exception(TRAP_gp_fault, 0); } else > > Gustau > > [1] http://support.citrix.com/article/CTX136517 > [2] > http://xenbits.xenproject.org/docs/unstable/misc/xen-command-line.html > > PS: I'd like to talk about the behavior of the xen_cmdline reboot > option. Setting it "no" causes the machine to stop (which is fine) but > the machine remains there. Perhaps it'd be good to allow to reboot the > machine by pressing a key when in panic. Otherwise you have physically > reboot the machine. Yes, this is possible from the serial console. Press Ctrl-A tree times (to switch to the Xen console), and then 'R' (note the caps). Roger. From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 13:03:39 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ED59843D; Tue, 7 Apr 2015 13:03:39 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 705DCE10; Tue, 7 Apr 2015 13:03:39 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t37D3arm011823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 7 Apr 2015 15:03:36 +0200 Received: from [10.0.2.151] ([147.83.40.10]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t37D3ZAk029224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Apr 2015 15:03:36 +0200 Message-ID: <5523D5A7.5040809@entel.upc.edu> Date: Tue, 07 Apr 2015 15:03:35 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Fwd: Re: Unable to boot with the dom0 xen kernel References: <5523D56B.9040706@entel.upc.edu> In-Reply-To: <5523D56B.9040706@entel.upc.edu> X-Forwarded-Message-Id: <5523D56B.9040706@entel.upc.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Delayed for 88:24:04 by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Tue, 07 Apr 2015 15:03:36 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Tue, 07 Apr 2015 15:03:36 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 13:03:40 -0000 Resending it to the mailing list, just in case. Hi there, > can you apply the > following patch to the Xen source tree and recompile the Xen kernel, > (there's no need to recompile the tools): > > diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > index e1c55ce..fc3c45b 100644 > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -3102,8 +3102,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) > if ( exit_qualification & 0x10 ) > { > /* INS, OUTS */ > - if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || > - !handle_mmio() ) > + if ( !handle_mmio() ) > hvm_inject_hw_exception(TRAP_gp_fault, 0); > } > else > Sure. I applied the patch, recompiled the xen kernel, and copied it to /boot (as usual). I also raised the iommu debug level. Now the crash is different: http://dpaste.com/1H4XBY5 I don't if it has to do with the dom0_max_vcpus xen_cmdline option. I lowered it to 2 (the machine has 1 package(s) x 4 core(s) x 2 SMT threads) just in case. Any other thing you'd like me to check, let me know. Best, Gustau > . > > Yes, this is possible from the serial console. Press Ctrl-A tree times > (to switch to the Xen console), and then 'R' (note the caps). > PS: Thanks. I'm unable to bring in the xen console, perhaps because I'm using the serial console, I don't know. I'll try the physical console, just in case. -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 13:15:32 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5C54714 for ; Tue, 7 Apr 2015 13:15:32 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC140F6A for ; Tue, 7 Apr 2015 13:15:32 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t37DFWPV001243 for ; Tue, 7 Apr 2015 13:15:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 175822] [xen] FreeBSD 9.1 does not work with Xen 4.0 Date: Tue, 07 Apr 2015 13:15:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@dckd.nl X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 13:15:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=175822 Jeroen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd@dckd.nl --- Comment #2 from Jeroen --- I propose to close this bug. It's over 2 years old and probably not a relevant problem anymore. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 14:30:03 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A2F7CE3C for ; Tue, 7 Apr 2015 14:30:03 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 895A5C0C for ; Tue, 7 Apr 2015 14:30:03 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t37EU3ma098560 for ; Tue, 7 Apr 2015 14:30:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 175822] [xen] FreeBSD 9.1 does not work with Xen 4.0 Date: Tue, 07 Apr 2015 14:30:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 14:30:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D175822 Roger Pau Monn=C3=83=C2=A9 changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Unable to Reproduce CC| |royger@freebsd.org Status|In Progress |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 14:46:26 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B927F462 for ; Tue, 7 Apr 2015 14:46:26 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477B1DAE for ; Tue, 7 Apr 2015 14:46:26 +0000 (UTC) Received: by wgbdm7 with SMTP id dm7so58688068wgb.1 for ; Tue, 07 Apr 2015 07:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kU0UwG4EVgdIB9yiYAoCErkEzxeNDeSVssak9R0gv/U=; b=hR81CtIwVm6x6Pe16Ls40ETWAz8tWjeSNLNsFolpkXanZ/+V+7qoUyl9+2dY58GQYi ZE5YStOOaAMlv/fG5ieHWVAWB5iqRu0q28CUnxIqJodtNA3IEgJURzILAwnGX6dCFPtx oMrrRM7cB8EhYAtj5J+KrKN1r528ovVI+FzkmBy2fGU0IVwDxlo1QdD+6RpQjuuYiLNL BqHYGv8zx9UfiwQ4wI8hyExPpkSeG07+G7ly+MDdyj1LFUZfVftz9NF11H5jp/iRbVn4 z5ckIWBLtI/YlZlygsJOF1w5le39NwCwAs2QWZwY9lGXzG8Q9Ki0N6+lgBoY598eIPZ9 Vs5A== X-Received: by 10.194.85.233 with SMTP id k9mr39333122wjz.31.1428417984640; Tue, 07 Apr 2015 07:46:24 -0700 (PDT) Received: from [172.16.1.30] (53.Red-88-9-170.dynamicIP.rima-tde.net. [88.9.170.53]) by mx.google.com with ESMTPSA id e2sm11328213wij.5.2015.04.07.07.46.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 07:46:23 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <5523EDBE.70709@FreeBSD.org> Date: Tue, 07 Apr 2015 16:46:22 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= Subject: Re: Fwd: Re: Unable to boot with the dom0 xen kernel References: <5523D56B.9040706@entel.upc.edu> <5523D5A7.5040809@entel.upc.edu> In-Reply-To: <5523D5A7.5040809@entel.upc.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 14:46:26 -0000 Hello, El 07/04/15 a les 15.03, Gustau Pérez ha escrit: > Hi there, >> can you apply the >> following patch to the Xen source tree and recompile the Xen kernel, >> (there's no need to recompile the tools): >> >> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c >> index e1c55ce..fc3c45b 100644 >> --- a/xen/arch/x86/hvm/vmx/vmx.c >> +++ b/xen/arch/x86/hvm/vmx/vmx.c >> @@ -3102,8 +3102,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) >> if ( exit_qualification & 0x10 ) >> { >> /* INS, OUTS */ >> - if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || >> - !handle_mmio() ) >> + if ( !handle_mmio() ) >> hvm_inject_hw_exception(TRAP_gp_fault, 0); >> } >> else >> > > Sure. I applied the patch, recompiled the xen kernel, and copied it > to /boot (as usual). I also raised the iommu debug level. Now the crash > is different: > > http://dpaste.com/1H4XBY5 Ah, I've forgot about the ASSERT in handle_mmio. It looks like at least one of the drivers for your hardware uses the INS or OUTS instruction which is not yet correctly handled by PVH guests. You can try the following patch, which removes the assert you hit before (again this is for the Xen source tree): diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c index 68fb890..b2f1ce4 100644 --- a/xen/arch/x86/hvm/io.c +++ b/xen/arch/x86/hvm/io.c @@ -84,8 +84,6 @@ int handle_mmio(void) struct hvm_vcpu_io *vio = &curr->arch.hvm_vcpu.hvm_io; int rc; - ASSERT(!is_pvh_vcpu(curr)); - hvm_emulate_prepare(&ctxt, guest_cpu_user_regs()); rc = hvm_emulate_one(&ctxt); diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index e1c55ce..fc3c45b 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3102,8 +3102,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) if ( exit_qualification & 0x10 ) { /* INS, OUTS */ - if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || - !handle_mmio() ) + if ( !handle_mmio() ) hvm_inject_hw_exception(TRAP_gp_fault, 0); } else > > I don't if it has to do with the dom0_max_vcpus xen_cmdline option. > I lowered it to 2 (the machine has 1 package(s) x 4 core(s) x 2 SMT > threads) just in case. No, I don't think it's related to the dom0_max_vcpus option. >> . >> >> Yes, this is possible from the serial console. Press Ctrl-A tree times >> (to switch to the Xen console), and then 'R' (note the caps). >> > PS: Thanks. I'm unable to bring in the xen console, perhaps because > I'm using the serial console, I don't know. I'll try the physical > console, just in case. The Xen console is only available over the serial, pressing Ctrl-A tree times should bring it up (the keystroke sequence is the same that's used to change windows on screen). Roger. From owner-freebsd-xen@FreeBSD.ORG Tue Apr 7 15:51:40 2015 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8A4298F; Tue, 7 Apr 2015 15:51:40 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 108A99BE; Tue, 7 Apr 2015 15:51:39 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t37FpaXO032296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 7 Apr 2015 17:51:36 +0200 Received: from [10.0.2.151] ([147.83.40.10]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t37FpZWW005417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Apr 2015 17:51:36 +0200 Message-ID: <5523FD07.1000707@entel.upc.edu> Date: Tue, 07 Apr 2015 17:51:35 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: Fwd: Re: Unable to boot with the dom0 xen kernel References: <5523D56B.9040706@entel.upc.edu> <5523D5A7.5040809@entel.upc.edu> <5523EDBE.70709@FreeBSD.org> In-Reply-To: <5523EDBE.70709@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Tue, 07 Apr 2015 17:51:36 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Tue, 07 Apr 2015 17:51:36 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Cc: freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 07 Apr 2015 15:51:40 -0000 On 07/04/2015 16:46, Roger Pau Monné wrote: > > Ah, I've forgot about the ASSERT in handle_mmio. It looks like at least > one of the drivers for your hardware uses the INS or OUTS instruction > which is not yet correctly handled by PVH guests. You can try the > following patch, which removes the assert you hit before (again > this is for the Xen source tree): > > diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c > index 68fb890..b2f1ce4 100644 > --- a/xen/arch/x86/hvm/io.c > +++ b/xen/arch/x86/hvm/io.c > @@ -84,8 +84,6 @@ int handle_mmio(void) > struct hvm_vcpu_io *vio = &curr->arch.hvm_vcpu.hvm_io; > int rc; > > - ASSERT(!is_pvh_vcpu(curr)); > - > hvm_emulate_prepare(&ctxt, guest_cpu_user_regs()); > > rc = hvm_emulate_one(&ctxt); > diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > index e1c55ce..fc3c45b 100644 > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -3102,8 +3102,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) > if ( exit_qualification & 0x10 ) > { > /* INS, OUTS */ > - if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || > - !handle_mmio() ) > + if ( !handle_mmio() ) > hvm_inject_hw_exception(TRAP_gp_fault, 0); > } > else > Removing the assert prevents the panic and thus the machine boots. However I believe the assert was there for a reason, wouldn't it break somewhere else? OTOH, I see the machine has problems handling the interruption from all devices. I see watchdog timeouts from the mpt controller, usb, and network. Even shutting down the machine via ACPI fails (I had to unplug the two PS to shut it down). Probably related with the iommu=no-intremap in the xen_cmdline, isn't it? Btw, the laptop dom0 domain now boots just fine with xen. It was a pekbac (sorry for the noise on that). > The Xen console is only available over the serial, pressing Ctrl-A > tree times should bring it up (the keystroke sequence is the same > that's used to change windows on screen). Oh, the problem was minicom in the middle. With cu it does work. Thank you. Gustau -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Wed Apr 8 13:08:32 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7642BB84 for ; Wed, 8 Apr 2015 13:08:32 +0000 (UTC) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EDE6370 for ; Wed, 8 Apr 2015 13:08:31 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.11,544,1422921600"; d="scan'208";a="253062703" Message-ID: <5525282D.8060808@citrix.com> Date: Wed, 8 Apr 2015 15:07:57 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= Subject: Re: Fwd: Re: Unable to boot with the dom0 xen kernel References: <5523D56B.9040706@entel.upc.edu> <5523D5A7.5040809@entel.upc.edu> <5523EDBE.70709@FreeBSD.org> <5523FD07.1000707@entel.upc.edu> In-Reply-To: <5523FD07.1000707@entel.upc.edu> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 08 Apr 2015 13:08:32 -0000 Hello, El 07/04/15 a les 17.51, Gustau Pérez ha escrit: > Removing the assert prevents the panic and thus the machine boots. > However I believe the assert was there for a reason, wouldn't it break > somewhere else? > > OTOH, I see the machine has problems handling the interruption from > all devices. I see watchdog timeouts from the mpt controller, usb, and > network. Even shutting down the machine via ACPI fails (I had to unplug > the two PS to shut it down). Probably related with the iommu=no-intremap > in the xen_cmdline, isn't it? The interrupt timeouts are probably related to the IOMMU errata, the ACPI poweroff problem is because we need to negotiate the shutdown with the hypervisor, which we currently don't do. I have a very hacky patch for FreeBSD that should fix it, but I haven't found time to properly integrate it: http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=patch;h=612509976d5d2af7633547e0279aae08a6508d7c Leaving this aside, I have a patch for Xen I would like you to try on this box, it *should* fix the INS/OUTS problem (not the poweroff). I've pushed it to a branch on my git repo, you can find it at: http://xenbits.xen.org/gitweb/?p=people/royger/xen.git;a=shortlog;h=refs/heads/pvh_io_ports.v1 or git://xenbits.xen.org/people/royger/xen.git branch pvh_io_ports.v1 If you still get the timeouts please post the full boot log and we can try to figure out if there's any workaround. Thanks, Roger. From owner-freebsd-xen@FreeBSD.ORG Wed Apr 8 19:13:18 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA266ED9 for ; Wed, 8 Apr 2015 19:13:18 +0000 (UTC) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57E2FAD7 for ; Wed, 8 Apr 2015 19:13:17 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id t38JD3hh029200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Wed, 8 Apr 2015 21:13:04 +0200 Received: from [192.168.2.134] (154.Red-79-158-155.staticIP.rima-tde.net [79.158.155.154]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t38JD1Ri026741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 8 Apr 2015 21:13:03 +0200 Message-ID: <55257DBD.6090705@entel.upc.edu> Date: Wed, 08 Apr 2015 21:13:01 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: Fwd: Re: Unable to boot with the dom0 xen kernel References: <5523D56B.9040706@entel.upc.edu> <5523D5A7.5040809@entel.upc.edu> <5523EDBE.70709@FreeBSD.org> <5523FD07.1000707@entel.upc.edu> <5525282D.8060808@citrix.com> In-Reply-To: <5525282D.8060808@citrix.com> X-Greylist: Delayed for 118:33:32 by milter-greylist-4.4.3 (violet.upc.es [147.83.2.51]); Wed, 08 Apr 2015 21:13:05 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Wed, 08 Apr 2015 21:13:03 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 08 Apr 2015 19:13:18 -0000 > The interrupt timeouts are probably related to the IOMMU errata, the > ACPI poweroff problem is because we need to negotiate the shutdown with > the hypervisor, which we currently don't do. I have a very hacky patch > for FreeBSD that should fix it, but I haven't found time to properly > integrate it: > > http://xenbits.xen.org/gitweb/?p=people/royger/freebsd.git;a=patch;h=612509976d5d2af7633547e0279aae08a6508d7c > > Leaving this aside, I have a patch for Xen I would like you to try on > this box, it *should* fix the INS/OUTS problem (not the poweroff). I've > pushed it to a branch on my git repo, you can find it at: > > http://xenbits.xen.org/gitweb/?p=people/royger/xen.git;a=shortlog;h=refs/heads/pvh_io_ports.v1 > > or > > git://xenbits.xen.org/people/royger/xen.git branch pvh_io_ports.v1 > > If you still get the timeouts please post the full boot log and we can > try to figure out if there's any workaround. > Hi Roger, tomorrow I'll try to give them a try with that box, I have it busy building packages. If not then friday I'll let you know. Thank you, G. -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-xen@FreeBSD.ORG Thu Apr 9 15:42:04 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 794753C9 for ; Thu, 9 Apr 2015 15:42:04 +0000 (UTC) Received: from nk11p04mm-asmtp001.mac.com (nk11p04mm-asmtpout001.mac.com [17.158.236.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F34EBFC for ; Thu, 9 Apr 2015 15:42:04 +0000 (UTC) Received: from [172.16.103.112] (206.194-244-81.adsl-dyn.isp.belgacom.be [81.244.194.206]) by nk11p04mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NMJ00D23NHLI750@nk11p04mm-asmtp001.mac.com> for freebsd-xen@freebsd.org; Thu, 09 Apr 2015 14:41:48 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-09_03:2015-04-09,2015-04-09,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=6 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1504090126 From: Vincent Blondel Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Subject: FreeBSD Dom0 Date: Thu, 09 Apr 2015 16:41:45 +0200 Message-id: <4A2C2F4F-3E6E-4B4D-AE99-91CD161BE0E0@icloud.com> To: freebsd-xen@freebsd.org MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Apr 2015 15:42:04 -0000 Hello all, I just tried the wiki page http://wiki.xen.org/wiki/FreeBSD_Dom0 on my = brand new FreeBSD 10.1 amd64 OVH machine but I encounter some errors I = cannot explain =E2=80=A6 here the spec of the machine =E2=80=A6 Copyright (c) 1992-2014 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 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz (3392.36-MHz K8-class = CPU) Origin =3D "GenuineIntel" Id =3D 0x306a9 Family =3D 0x6 Model =3D = 0x3a Stepping =3D 9 = Features=3D0xbfebfbff = Features2=3D0x7fbae3ff AMD Features=3D0x28100800 AMD Features2=3D0x1 Structured Extended Features=3D0x281 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory =3D 34359738368 (32768 MB) avail memory =3D 33200738304 (31662 MB) # xl create -l freebsd.cfg xc: error: Could not obtain handle on privileged command interface = /dev/xen/privcmd (2 =3D No such file or directory): Internal error libxl: error: libxl.c:109:libxl_ctx_alloc: cannot open libxc handle: No = such file or directory cannot init xl context thanks for your help. Vincent= From owner-freebsd-xen@FreeBSD.ORG Thu Apr 9 15:56:38 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 114EEAEA for ; Thu, 9 Apr 2015 15:56:38 +0000 (UTC) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B6FE6D4C for ; Thu, 9 Apr 2015 15:56:37 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.11,550,1422921600"; d="scan'208";a="251740815" Message-ID: <5526A12A.7010001@citrix.com> Date: Thu, 9 Apr 2015 17:56:26 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Vincent Blondel , Subject: Re: FreeBSD Dom0 References: <4A2C2F4F-3E6E-4B4D-AE99-91CD161BE0E0@icloud.com> In-Reply-To: <4A2C2F4F-3E6E-4B4D-AE99-91CD161BE0E0@icloud.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Apr 2015 15:56:38 -0000 Hello, El 09/04/15 a les 16.41, Vincent Blondel ha escrit: > Hello all, > > I just tried the wiki page http://wiki.xen.org/wiki/FreeBSD_Dom0 on my brand new FreeBSD 10.1 amd64 OVH machine but I encounter some errors I cannot explain … > > here the spec of the machine … > > Copyright (c) 1992-2014 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 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > CPU: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz (3392.36-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x306a9 Family = 0x6 Model = 0x3a Stepping = 9 > Features=0xbfebfbff > Features2=0x7fbae3ff > AMD Features=0x28100800 > AMD Features2=0x1 > Structured Extended Features=0x281 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > real memory = 34359738368 (32768 MB) > avail memory = 33200738304 (31662 MB) The wiki clearly states that you should be using FreeBSD HEAD revision r280954 or any later version, while you are using FreeBSD 10.1. Roger. From owner-freebsd-xen@FreeBSD.ORG Thu Apr 9 18:53:22 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C16ABC8 for ; Thu, 9 Apr 2015 18:53:22 +0000 (UTC) Received: from nk11p04mm-asmtp001.mac.com (nk11p04mm-asmtpout001.mac.com [17.158.236.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C9F06D4 for ; Thu, 9 Apr 2015 18:53:21 +0000 (UTC) Received: from [172.16.103.112] (206.194-244-81.adsl-dyn.isp.belgacom.be [81.244.194.206]) by nk11p04mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NMJ009OKZ46BK20@nk11p04mm-asmtp001.mac.com> for freebsd-xen@freebsd.org; Thu, 09 Apr 2015 18:52:58 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-09_05:2015-04-09,2015-04-09,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1504090151 MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: FreeBSD Dom0 From: Vincent Blondel In-reply-to: <5526A12A.7010001@citrix.com> Date: Thu, 09 Apr 2015 20:52:54 +0200 Message-id: <1EDD9BDA-C1C6-4B81-A057-EAD04C1CDD87@icloud.com> References: <4A2C2F4F-3E6E-4B4D-AE99-91CD161BE0E0@icloud.com> <5526A12A.7010001@citrix.com> To: =?utf-8?Q?Roger_Pau_Monn=C3=A9?= X-Mailer: Apple Mail (2.2070.6) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Apr 2015 18:53:22 -0000 Yes indeed =E2=80=A6 trying now to compile a new kernel but no success = so far :-( thanks for your help Vincent > On 09 Apr 2015, at 17:56, Roger Pau Monn=C3=A9 = wrote: >=20 > Hello, >=20 > El 09/04/15 a les 16.41, Vincent Blondel ha escrit: >> Hello all, >>=20 >> I just tried the wiki page http://wiki.xen.org/wiki/FreeBSD_Dom0 on = my brand new FreeBSD 10.1 amd64 OVH machine but I encounter some errors = I cannot explain =E2=80=A6 >>=20 >> here the spec of the machine =E2=80=A6 >>=20 >> Copyright (c) 1992-2014 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 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 >> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >> FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) = 20140512 >> CPU: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz (3392.36-MHz K8-class = CPU) >> Origin =3D "GenuineIntel" Id =3D 0x306a9 Family =3D 0x6 Model =3D = 0x3a Stepping =3D 9 >> = Features=3D0xbfebfbff >> = Features2=3D0x7fbae3ff >> AMD Features=3D0x28100800 >> AMD Features2=3D0x1 >> Structured Extended Features=3D0x281 >> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID >> TSC: P-state invariant, performance statistics >> real memory =3D 34359738368 (32768 MB) >> avail memory =3D 33200738304 (31662 MB) >=20 > The wiki clearly states that you should be using FreeBSD HEAD revision > r280954 or any later version, while you are using FreeBSD 10.1. >=20 > Roger. From owner-freebsd-xen@FreeBSD.ORG Sat Apr 11 10:20:53 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6AE16A2 for ; Sat, 11 Apr 2015 10:20:53 +0000 (UTC) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 40029E85 for ; Sat, 11 Apr 2015 10:20:52 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id t3BAKgTj008387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Sat, 11 Apr 2015 12:20:43 +0200 Received: from [192.168.2.134] (219.Red-79-153-15.dynamicIP.rima-tde.net [79.153.15.219]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t3BAKfHQ006101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 11 Apr 2015 12:20:42 +0200 Message-ID: <5528F578.2030908@entel.upc.edu> Date: Sat, 11 Apr 2015 12:20:40 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-xen@freebsd.org Subject: Two issues with xen Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: ACL matched, not delayed by milter-greylist-4.4.3 (dash.upc.es [147.83.2.50]); Sat, 11 Apr 2015 12:20:43 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Sat, 11 Apr 2015 12:20:42 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 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, 11 Apr 2015 10:20:53 -0000 Hi there, testing xen with an i7-third gen/16GB/256SSD laptop I'm suffering two issues: - Distorted sound in the privileged domain when the xen kernel is loaded (using pulseaudio or oss, it doesn't matter). When the xen_kernel is not used (removing xen_kernel and unloading the xen kernel in the bootloader) the sound comes just fine. I haven't used other audio outputs than dsp0 (headphones/speakers built in the laptop). - Running a PV domU guest causes the machine to reboot. I tried running the domU guest in the text console (I booted them machine wout X) to see if xen was able to throw me some debug, but nothing came out. Fully HVM domains do work fine (I have tried WindowsXP and FreeBSD 10.1 just fine). This is the machine dmesg: http://dpaste.com/0GED11W I carried my $work dockstation, which has a serial port on it. I also have another machine here, so I could debug the laptop via the serial port. A bit offtopic, but I'd like to ask if the xl toolstack has support for iscsi target disks. It would appear it is supported, according to this: http://wiki.xen.org/wiki/Tuning_Xen_for_Performance#Storage_options but I've been unable to find anything else about iscsi. Best, Gustau -- --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona