Skip to content

Commit 1064483

Browse files
committed
Merge branch 'master' into dev
2 parents e70ddbb + 2273bf1 commit 1064483

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ vmbuild/vmbuild
2626

2727
*.img
2828
*.img.*
29+
30+
*.gz

src/debug/qemu_cmd.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
export QEMU="qemu-system-x86_64 --enable-kvm -smp 1"
2-
#export QEMU="qemu-system-i386 -smp 1"
1+
2+
# Check for hardware-virtualization support
3+
if [ `egrep '^flags.*(vmx|svm)' /proc/cpuinfo` ]
4+
then
5+
echo ">>> KVM: ON "
6+
export QEMU="qemu-system-x86_64 --enable-kvm"
7+
else
8+
echo ">>> KVM: OFF "
9+
export QEMU="qemu-system-i386"
10+
fi
311

412
#DEV_NET="-net nic,model=virtio,macaddr=fa:16:3e:db:40:3a"
513
#OPENSTACK="-netdev tap,fd=29,id=hostnet0 " #Bad file descriptor
@@ -16,12 +24,12 @@ export QEMU="qemu-system-x86_64 --enable-kvm -smp 1"
1624
#export macaddress="08:00:27:9d:86:e8"
1725
export macaddress="c0:01:0a:00:00:2a"
1826
export DEV_NET="-device virtio-net,netdev=net0,mac=$macaddress -netdev tap,id=net0"
19-
27+
export SMP="-smp 1"
2028
#export DEV_GRAPHICS="-vga std"
2129
export DEV_GRAPHICS="--nographic"
2230

2331
export DEV_HDD="-hda $IMAGE"
24-
export QEMU_OPTS="$DEV_HDD $DEV_NET $DEV_GRAPHICS"
32+
export QEMU_OPTS="$DEV_HDD $DEV_NET $DEV_GRAPHICS $SMP"
2533

2634

2735
echo $QEMU $QEMU_OPTS

vmbuild/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CPP=g++
1+
CPP=clang++-3.6
22
CPPOPTS = -std=c++11 -c -Wall -Wextra -O3
33
OBJS = vmbuild.o
44
OUT = vmbuild

0 commit comments

Comments
 (0)