socsvn commit: r288087 - in soc2015/mihai/bhyve-on-arm-head/sys/arm: conf include vmm
Andrew Turner
andrew at fubar.geek.nz
Wed Jul 8 13:48:42 UTC 2015
On Wed, 8 Jul 2015 16:31:16 +0300
Mihai Carabas <mihai.carabas at gmail.com> 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 at 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
More information about the svn-soc-all
mailing list