Enabling CPU features for qemu. 41/33041/2
authorkalyanreddy <reddyx.gundarapu@intel.com>
Thu, 6 Apr 2017 05:49:43 +0000 (11:19 +0530)
committerKalyan reddy Gundarapu <reddyx.gundarapu@intel.com>
Thu, 6 Apr 2017 06:27:30 +0000 (06:27 +0000)
This patch is used to enable cpu features while launching guest vm
using qemu as a part of cyclictest execution through yardstick.

Change-Id: Ib354318c772cfadd707605470463904eca799bb0
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
ci/envs/host-run-qemu.sh

index 389790e..631adfc 100755 (executable)
@@ -31,6 +31,7 @@ qmp_sock="/tmp/qmp-sock"
 #    -nographic -serial /dev/null -parallel /dev/null
 
 ${qemu} -smp ${guest_cpus} -monitor unix:${qmp_sock},server,nowait \
+     -cpu host,migratable=off,+invtsc,+tsc-deadline,pmu=off \
      -drive file=/root/guest1.qcow2 -daemonize \
      -netdev user,id=net0,hostfwd=tcp:$HOST_IP:5555-:22 \
      -realtime mlock=on -mem-prealloc -enable-kvm -m 1G \