The Page describes how to try out KVM on Huawei D01 board.

  • Note: this is just one example of launching KVM on D01. When you have other types of test cases to run on D01, appreciate to share with us.

Steps to build kernel for OS

Patches required for KVM support has been integrated into HiSilicon Landing Team's kernel git tree. Branch name: integration-hilt-d01.

Please refer here for details on LT kernel git tree, how to build, and pre-built binaries.

Steps to build Guest OS

  1. Clone the Torvalds kernel

       # git clone git://
  2. Checkout to v3.12 branch

       # git checkout -b linux-3.12 v3.12
  3. Cross compile the kernel

       # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- vexpress_defconfig
       # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j2
  4. Grab Pawel's DTS tree: git://

       # git clone git://
       # git chechout -b v3_12 v3.12
  5. From your kernel tree, run:

       # ./script/dtc/dtc -O dtb -o rtsm_ve-cortex_a15x4.dtb  wherever_your_arm-dts_tree_is/fast_models/rtsm_ve-cortex_a15x4.dts

Ready to Go

  • Launch QEMU on D01:

       # qemu-system-arm -enable-kvm -kernel zImage -dtb rtsm_ve-cortex_a15x4.dtb -initrd initrd.cpio.gz -append "console=ttyAMA0 earlyprintk rdinit=/linuxrc" -nographic -machine vexpress-a15,kernel_irqchip=on -m 128 -smp 4 -cpu cortex-a15 -rtc base=localtime

Boards/D01/KVM (last modified 2014-05-10 07:46:15)