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