From owner-svn-soc-all@freebsd.org Wed Jul 8 13:48:42 2015 Return-Path: Delivered-To: svn-soc-all@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 3D505995B8B for ; Wed, 8 Jul 2015 13:48:42 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3BE14D3; Wed, 8 Jul 2015 13:48:41 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from bender (bender.sec.cl.cam.ac.uk [IPv6:2001:630:212:2a8:4e72:b9ff:fe93:61bf]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id 627D5D7907; Wed, 8 Jul 2015 13:48:41 +0000 (UTC) Date: Wed, 8 Jul 2015 14:48:40 +0100 From: Andrew Turner To: Mihai Carabas Cc: mihai@freebsd.org, svn-soc-all@freebsd.org Subject: Re: socsvn commit: r288087 - in soc2015/mihai/bhyve-on-arm-head/sys/arm: conf include vmm Message-ID: <20150708144840.15a5865d@bender> In-Reply-To: References: <201507081242.t68Cg5kl067497@socsvn.freebsd.org> <20150708141212.06e26358@bender> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2015 13:48:42 -0000 On Wed, 8 Jul 2015 16:31:16 +0300 Mihai Carabas wrote: > Hi Andrew, > > > > Why not use virtio? On arm64 I added the following to the model > > parameters in DS-5: > > -C cluster.dcache-state_modelled=0 -C > > cluster.icache-state_modelled=0 -C > > motherboard.virtioblockdevice.image_path="/path/to/image.raw" > > > > Disabling the d-cache is important for virtio as it appears the > > virtio "hardware" is not cache-coherent. > > > > Thank you for the advice. I didn't have any reason not using the > > virtio. > We prefered from the begining to have as few external dependencies as > possible (bootstrapping FreeBSD on Armv7-CortexA15 was a lengthy > process). > > How did you specify the virtio device in the DTB file? I'm using a modified version of the ARM supplied device DTS (mostly to remove the interrupt mapping). My copy has the following under the iofpga device, see [1] for the complete file. virtio_block@0130000 { compatible = "virtio,mmio"; reg = <0x130000 0x200>; interrupts = <0 42 4>; }; You will also need to add the following to your kernel config: device virtio device virtio_mmio device virtio_blk Andrew [1] https://github.com/ARM-software/arm-trusted-firmware/blob/master/fdts/rtsm_ve-motherboard.dtsi