]> rtime.felk.cvut.cz Git - jailhouse-test.git/blob - qemu-launch-scripts/start-qemu-intel.sh
launch scripts: add the usb keyboard emulation for intel launching too.
[jailhouse-test.git] / qemu-launch-scripts / start-qemu-intel.sh
1 #!/bin/bash
2 if [ -z "$1" ]; then
3         KIMG=../build/buildroot/images/bzImage
4 else
5         KIMG="$1"
6 fi
7 echo KIMG="$KIMG"
8
9 if [ -z "$2" ]; then
10         RFSIMG=../build/buildroot/images/rootfs.ext2
11 else 
12         RFSIMG="$2"
13 fi
14 echo RFSIMG="$RFSIMG"
15
16 qemu-system-x86_64 -machine q35 -m 1G -enable-kvm -smp 4 \
17         -usbdevice keyboard \
18         -cpu kvm64,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+vmx,+x2apic \
19         -kernel "$KIMG" -append "root=/dev/sda memmap=66M$0x3b000000 nohpet" \
20         -drive file="$RFSIMG",format=raw,id=disk,if=none \
21         -device ide-hd,drive=disk -serial stdio -serial vc \
22         -device intel-hda,addr=1b.0 -device hda-duplex
23