From owner-freebsd-virtualization@FreeBSD.ORG Sun Nov 25 23:46:36 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 53F069C4; Sun, 25 Nov 2012 23:46:36 +0000 (UTC) (envelope-from sree.openwrk@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id ECB998FC08; Sun, 25 Nov 2012 23:46:35 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so13299903obc.13 for ; Sun, 25 Nov 2012 15:46:29 -0800 (PST) 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=ilSZSikZVjAXjIJ/FHZw0Pk/4rphIMt+DlKhe3pxPPY=; b=FOvEi6HE8BBBqlIq289ohE7slgEqFxugoAvDHQBnnotFjfpd+Ap+kVh2Wfv6+IKK0P jzqwUvzlCRARBHTr/GhLMbhctuEfSLwtLkbzvG3CDtSx4zMpL99fQY/7U0J80JEjdz3l SgqwMBDDRu0NccBPM1T2JrB+qE1DZOxRm9BIJ3O6MsHffSFnkVX0owu+XIo6TgaT7+Cg tjrCZz3e84584gWMf/oMggZrpXH2EZG/1Yqy+QM0xXW9ltQ8DYKVwcLKeMts3kSYpBnr pp5UNbh09tIRNjW6WZ+QzoB5Fltvw7NztYE3zdxmjy7CuWpnV+lIDav+Tcra/Wx3OoW5 4tMw== MIME-Version: 1.0 Received: by 10.182.21.175 with SMTP id w15mr8015425obe.28.1353887188914; Sun, 25 Nov 2012 15:46:28 -0800 (PST) Received: by 10.60.140.136 with HTTP; Sun, 25 Nov 2012 15:46:28 -0800 (PST) In-Reply-To: References: Date: Sun, 25 Nov 2012 15:46:28 -0800 Message-ID: Subject: Re: Bhyve: panic: "Unregistered use of FPU in kernel" when starting guest From: "sree.openwrk" To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 23:46:36 -0000 Hey Neel I tried to see if the problem is reproducible after the fix went in. Looks like I have landed in to another issue. Now when I start the guest vm, the host hangs and could only be rebooted. Since its not a crash I am not able to get a crash dump. Is this a known issue? Also is there a way I can config and get to kick off a trace using something lie a hw-watchdog or something? Reproduction steps- 1. I have 8gb memory and I have limited the host to see only 4gb. svas-fbsd# sysctl -a | grep hw.physmem hw.physmem: 3116384256 output from dmesg- real memory = 8589934592 (8192 MB) avail memory = 2999402496 (2860 MB) 2. I checkedout the latest code from svn:// svn.freebsd.org/base/projects/bhyve. The revision number is 243326. The host has this image built out of this. 3. These are the steps I followed, before starting the guest. Then it hangs. a) kldload vmm b) kldload if_tap c) ifconfig tap0 create 4. I use the prebuilt tarball given at http://people.freebsd.org/~neel/bhyve/vm1.tar.gz. 5. I start the vm as ./vmrun.sh vm1 and it hangs after displaying the message "Launching virtual machine "vm1" with 768MB memory below 4GB and 2048MB memory above 4GB ..." Thanks On Thu, Oct 25, 2012 at 8:16 PM, Neel Natu wrote: > Hi svas, > > I just submitted a fix for this: > http://svnweb.freebsd.org/base?view=revision&revision=242122 > > Please let me know if this fixes the panic you reported. > > best > Neel > > On Sun, Oct 7, 2012 at 11:12 AM, sree.openwrk > wrote: > > Hey Neel > > Sure. I will reproduce the issue and try to narrow down the problem. > > Will update you, if I am able to narrow down the problem. > > > > Thanks > > > > > > On Thu, Oct 4, 2012 at 9:07 PM, Neel Natu wrote: > >> > >> Hi svas, > >> > >> On Thu, Oct 4, 2012 at 5:58 PM, sree.openwrk > >> wrote: > >> > Hi > >> > I am seeing frequent kernel panic when I try to run the guest OS. I > have > >> > the > >> > latest Freebsd (I compiled the latest code from > >> > svn://svn.freebsd.org/base/projects/bhyve and installed it in my > >> > machine). > >> > While trying to run the pre-built guest provided at > >> > http://people.freebsd.org/~neel/bhyve/vm1.tar.gz I get the kernel > panic > >> > (panic: Unregistered use of FPU in kernel) > >> > I am attaching the core.txt. > >> > I also want to mention that I was successfully able to boot in to the > >> > guest > >> > OS couple of times. But around 7/10 times I get thsi host kernel > panic. > >> > > >> > stack trace: > >> > vm_run() at vm_run+0xec > >> > vmmdev_ioctl() at vmmdev_ioctl+0x4ea > >> > devfs_ioctl_f() at devfs_ioctl_f+0x7a > >> > kern_ioctl() at kern_ioctl+0xcd > >> > sys_ioctl() at sys_ioctl+0xfd > >> > amd64_syscall() at amd64_syscall+0x304 > >> > Xfast_syscall() at Xfast_syscall+0xf7 > >> > > >> > >> I am seeing this too but nowhere as frequently as you are. I hit this > >> last night for the first time and not since. > >> > >> There hasn't been any change in this part of the code for quite some > time > >> now. > >> > >> Since you can trigger this much more frequently that me, would it be > >> possible for you to narrow down which change caused this? It would be > >> hugely helpful. > >> > >> best > >> Neel > >> > >> > > >> > regards > >> > svas > >> > > >> > > > > > >