Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2015 14:48:40 +0100
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        Mihai Carabas <mihai.carabas@gmail.com>
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: <CANg1yUvA=3HW0U0w90_-taEOZbMC0E8GtywvqguJQABEPOSjgQ@mail.gmail.com>
References:  <201507081242.t68Cg5kl067497@socsvn.freebsd.org> <20150708141212.06e26358@bender> <CANg1yUvA=3HW0U0w90_-taEOZbMC0E8GtywvqguJQABEPOSjgQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 8 Jul 2015 16:31:16 +0300
Mihai Carabas <mihai.carabas@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150708144840.15a5865d>