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.