From owner-freebsd-virtualization@freebsd.org Sat Jul 2 07:29:47 2016 Return-Path: Delivered-To: freebsd-virtualization@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 1F71EB8FE88 for ; Sat, 2 Jul 2016 07:29:47 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id C4F5F2AE8 for ; Sat, 2 Jul 2016 07:29:46 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 0224E20A40C7 for ; Sat, 2 Jul 2016 17:29:34 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id EF310280F66 for ; Sat, 2 Jul 2016 17:29:33 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QqlJob07_oxn for ; Sat, 2 Jul 2016 17:29:33 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id A11BE2804DA; Sat, 2 Jul 2016 17:29:31 +1000 (AEST) Subject: Re: VirtIO Ethernet driver in DragonFlyBSD under FreeBSD bhyve To: Jan Beich References: <9893747.yFCcEWVR7f@gizmo.my.domain> <56ABFE12.4060805@freebsd.org> <60sv-b0so-wny@vfemail.net> Cc: "freebsd-virtualization@freebsd.org" From: Peter Grehan Message-ID: Date: Sat, 2 Jul 2016 00:29:33 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=PozRVEE3 c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=5eVCmCvhg37cu/pjidAGzw==:17 a=N659UExz7-8A:10 a=cAmyUtKerLwA:10 a=1ayNFcg3gT5IWzX6UYoA:9 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 02 Jul 2016 07:29:47 -0000 Hi Jan, > I've used a daily snapshot where the installer still doesn't support > GPT/EFI yet. Tested as > > $ bhyve -l com1,stdio -l bootrom,BHYVE_UEFI.fd -m 4G -s 0,hostbridge \ > -s 31,lpc -s 4,virtio-blk,/dev/md0 -s 5,virtio-net,tap0 vm0 Thanks for the info. There's definitely an interrupt issue with virtio on bhyve and DFly. The MSI capability confuses DFly, but when I took that out, interrupt storms resulted in hanging the VM. Using ahci-hd instead of virtio-blk will give you a working boot, though without networking until the interrupt situation is debugged :( On this: > Does it crash with less than 4G of RAM for you as well? > > $ bhyve -m 1G ... > Unhandled memory access to 0x100000000 > Failed to emulate instruction [0x81 0x3c 0x8f 0x5f 0x4d 0x50 0x5f 0x75 0x0e 0xeb 0x05 0xb9 0x00 0x00 0x00] at 0xffffffff80a2e0a7 From DFly kgdb, the RIP is (kgdb) x/i 0xffffffff80a2e217 0xffffffff80a2e217 : cmpl $0x5f504d5f,(%rdi,%rcx,4) .. so it's the MPTable scan that is failing. I'll look into this one as well. later, Peter.