From 0e9d24c5924c8964307f2cb79cd89752cbd41c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 21 Nov 2018 00:00:00 +0000 Subject: [PATCH] kvm: arm stub --- README.adoc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.adoc b/README.adoc index b37ccee..7249100 100644 --- a/README.adoc +++ b/README.adoc @@ -2850,6 +2850,31 @@ We don't enable KVM by default because: One important use case for KVM is to fast forward gem5 execution, often to skip boot, take a <>, and then move on to a more detailed and slow simulation +=== KVM arm + +TODO: we haven't gotten it to work yet, but it should be doable, and this is an outline of how to do it. Just don't expect this to tested very often for now. + +We can test KVM on arm by running this repository inside an Ubuntu arm QEMU VM. + +This produces no speedup of course, since the VM is already slow since it cannot use KVM on the x86 host. + +First, obtain an Ubuntu arm64 virtual machine as explained at: https://askubuntu.com/questions/281763/is-there-any-prebuilt-qemu-ubuntu-image32bit-online/1081171#1081171 + +Then, from inside that image: + +.... +sudo apt-get install git +git clone https://github.com/cirosantilli/linux-kernel-module-cheat +cd linux-kernel-module-cheat +sudo ./setup -y +.... + +and then proceed exactly as in <>. + +We don't want to build the full Buildroot image inside the VM as that would be way too slow, thus the recommendation for the prebuilt setup. + +TODO: do the right thing and cross compile QEMU and gem5. gem5's Python parts might be a pain. QEMU should be easy: https://stackoverflow.com/questions/26514252/cross-compile-qemu-for-arm + == User mode simulation Both QEMU and gem5 have an user mode simulation mode in addition to full system simulation that we consider elsewhere in this project.