[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian, Qemu, KVM and Raspberry Pi



On 08/11/16 15:30, Lennart Sorensen wrote:
On Tue, Nov 08, 2016 at 03:01:09PM +0000, Mark Morgan Lloyd wrote:
I prefer to run pukka Debian rather than Raspbian, approximately as
described at http://sjoerd.luon.net/posts/2015/02/debian-jessie-on-rpi2/

http://blog.flexvdi.com/2015/03/17/enabling-kvm-virtualization-on-the-raspberry-pi-2/
and related pages describes getting Qemu+KVM running on an RPi2.

Wow I did not know it used a non standard interrupt controller.  Ouch that
would make it painful.

That actually makes me feel quite a lot better :-)

There's no way I consider myself a kernel guru (although I've done quite a lot of embedded systems work) and, perhaps more importantly, I'm no guru when it comes to "the Debian Way".

Looking at my notes, the loader and kernel supplied by Raspbian appears to start in HYP mode. I think standard Qemu is adequately up to date. I didn't get anywhere useful with sources from Debian or kernel.org but if I started off with kernel sources and the VGIC patch from Raspbian's Git I think I was able to get KVM running on an RPi2, but for various reasons didn't get as far as running the KVM unit tests and a guest didn't try to use it. At that point something else dragged me off it.

For general info the SoC in an Odroid C2 is described as an Amlogic S905, in it's boot.ini I find

# Meson Timer
# 1 - Meson Timer
# 0 - Arch Timer
# Using meson_timer improves the video playback however it breaks KVM (virtualization). # Using arch timer allows KVM/Virtualization to work however you'll experience poor video
setenv mesontimer "1"

which suggests that there might be compatibility issues there as well.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]


Reply to: