From owner-freebsd-xen@freebsd.org Fri Jul 31 15:10:50 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77F0C9AFA62 for ; Fri, 31 Jul 2015 15:10:50 +0000 (UTC) (envelope-from prvs=6471f8e05=roger.pau@citrix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6268E11D3 for ; Fri, 31 Jul 2015 15:10:50 +0000 (UTC) (envelope-from prvs=6471f8e05=roger.pau@citrix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 610BA9AFA60; Fri, 31 Jul 2015 15:10:50 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 60A569AFA5E for ; Fri, 31 Jul 2015 15:10:50 +0000 (UTC) (envelope-from prvs=6471f8e05=roger.pau@citrix.com) 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 "Verizon Public SureServer CA G14-SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1976611D0 for ; Fri, 31 Jul 2015 15:10:49 +0000 (UTC) (envelope-from prvs=6471f8e05=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.15,585,1432598400"; d="scan'208";a="286601885" Message-ID: <55BB8F9B.2040301@citrix.com> Date: Fri, 31 Jul 2015 17:09:15 +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.7.0 MIME-Version: 1.0 To: Karl Pielorz , Subject: Re: Boot FreeBSD 10 in HVM mode under Xen? References: <55BB8392.4050000@citrix.com> <32FBD53695D759928A181828@[10.12.30.106]> In-Reply-To: <32FBD53695D759928A181828@[10.12.30.106]> 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.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2015 15:10:50 -0000 El 31/07/15 a les 16.59, Karl Pielorz ha escrit: > > > --On 31 July 2015 16:17 +0200 Roger Pau Monné wrote: > >> This is a bug then. You should be able to boot without XENHVM/xenpci, >> and get a pure HVM guest with no PV devices at all. > > After removing XENHVM and xenpci - booting a FreeBSD 10.1-p8 AMD64 > kernel under XenServer 6.5 gets the output below (first few lines scroll > off the console in XenServer). > > " > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xffffffff80d96af9 > stack pointer = 0x28:0xffffffff8191bbe0 > frame pointer = 0x28:0xffffffff8191bbf0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, IOPL = 0 > current process = 0 (swapper) > trap number = 9 > panic: general protection fault > cpuid = 0 > KDB: strack backtrace: > #0 0xffffffff80946ae0 at kdb_backtrace+0x60 > #1 0xffffffff8090bc05 at panic+0x155 > #2 0xffffffff80d02aef at trap_fatal+0x38f > #3 0xffffffff80d0274c at trap+0x75c > #4 0xffffffff80ce8432 at calltrap+0x8 > #5 0xffffffff80918e1f at tc_init+0x23f > #6 0xffffffff80d967a1 at hv_vmbus_init+0x191 > #7 0xffffffff80d9735e at vmbus_bus_init+0x1e > #8 0xffffffff808bad38 at mi_startup+0x108 > #9 0xffffffff802d9f0c at btext+0x2c > " Ouch, I guess this is the Xen HyperV support badly interacting with FreeBSD again. XenServer enables the "viridian" extensions by default, which really messes up with FreeBSD. You should be able to disable the extensions by hand, as reported in: https://lists.freebsd.org/pipermail/freebsd-xen/2013-October/001756.html But we need a proper way to sort this out anyway. Roger.