From: Maxim Baryshnikov Date: Tue, 23 Feb 2016 20:13:15 +0000 (+0100) Subject: intel_launch: Added the script for to start project on Intel CPUs. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/jailhouse-test.git/commitdiff_plain/2d31636c7622173f0b410d36823e4a147d1da2c1 intel_launch: Added the script for to start project on Intel CPUs. --- diff --git a/qemu-launch-scripts/start-qemu-intel.sh b/qemu-launch-scripts/start-qemu-intel.sh new file mode 100755 index 0000000..750ce92 --- /dev/null +++ b/qemu-launch-scripts/start-qemu-intel.sh @@ -0,0 +1,22 @@ +#!/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 +