--- /dev/null
+#!/bin/bash
+if [ -z "$1" ]; then
+ KIMG=../build/buildroot/images/bzImage
+else
+ KIMG="$1"
+fi
+echo KIMG="$KIMG"
+
+if [ -z "$2" ]; then
+ RFSIMG=../build/buildroot/images/rootfs.ext2
+else
+ RFSIMG="$2"
+fi
+echo RFSIMG="$RFSIMG"
+
+qemu-system-x86_64 -machine q35 -m 1G -enable-kvm -smp 4 \
+ -cpu kvm64,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+vmx,+x2apic \
+ -kernel "$KIMG" -append "root=/dev/sda memmap=66M$0x3b000000 nohpet" \
+ -drive file="$RFSIMG",format=raw,id=disk,if=none \
+ -device ide-hd,drive=disk -serial stdio -serial vc \
+ -device intel-hda,addr=1b.0 -device hda-duplex
+