diff -Nru qemu-2.6.1+dfsg/debian/changelog qemu-2.6.1+dfsg/debian/changelog --- qemu-2.6.1+dfsg/debian/changelog 2016-11-23 12:28:08.000000000 +0100 +++ qemu-2.6.1+dfsg/debian/changelog 2016-12-01 14:12:00.000000000 +0100 @@ -1,3 +1,10 @@ +qemu (1:2.6.1+dfsg-0ubuntu8~ppa1) zesty; urgency=medium + + [ Breno Leitao ] + * d/qemu-kvm-init, d/kvm.powerpc: Adding a check SMT on ppc64el + + -- Christian Ehrhardt Thu, 01 Dec 2016 13:44:33 +0100 + qemu (1:2.6.1+dfsg-0ubuntu7) zesty; urgency=medium [ Rafael David Tinoco ] diff -Nru qemu-2.6.1+dfsg/debian/control qemu-2.6.1+dfsg/debian/control --- qemu-2.6.1+dfsg/debian/control 2016-06-15 23:52:09.000000000 +0200 +++ qemu-2.6.1+dfsg/debian/control 2016-12-01 14:14:09.000000000 +0100 @@ -182,7 +182,8 @@ Depends: ${misc:Depends}, ${shlibs:Depends}, qemu-block-extra (= ${binary:Version}), # to fix wrong acl for newly created device node on ubuntu: - acl + acl, + powerpc-utils [ppc64el] Breaks: qemu-common, # qemu-system before qemu-system-split @@ -519,7 +520,8 @@ qemu-system-x86 (= ${binary:Version}) [i386 amd64 x32], qemu-system-arm (= ${binary:Version}) [armhf armel arm64], qemu-system-ppc (= ${binary:Version}) [powerpc ppc64 ppc64el], - qemu-system-s390x (= ${binary:Version}) [s390x] + qemu-system-s390x (= ${binary:Version}) [s390x], + powerpc-utils [ppc64el] Provides: kvm, qemu-kvm-spice Conflicts: kvm, diff -Nru qemu-2.6.1+dfsg/debian/kvm.powerpc qemu-2.6.1+dfsg/debian/kvm.powerpc --- qemu-2.6.1+dfsg/debian/kvm.powerpc 2016-06-15 23:41:02.000000000 +0200 +++ qemu-2.6.1+dfsg/debian/kvm.powerpc 2016-12-01 14:18:09.000000000 +0100 @@ -20,6 +20,12 @@ *) case "$(uname -m)" in ppc64*) + SMT=$(/usr/sbin/ppc64_cpu --smt | grep "SMT=[248]") + if [ -n "$SMT" ] + then + logger -t qemu-kvm "Error: You must disable SMT if you want to run QEMU/KVM on ppc64le archtecture" + logger -t qemu-kvm "In order to disable SMT, run: # ppc64_cpu --smt=off" + fi qemu=qemu-system-ppc64 ;; *) diff -Nru qemu-2.6.1+dfsg/debian/qemu-kvm-init qemu-2.6.1+dfsg/debian/qemu-kvm-init --- qemu-2.6.1+dfsg/debian/qemu-kvm-init 2016-06-15 23:41:02.000000000 +0200 +++ qemu-2.6.1+dfsg/debian/qemu-kvm-init 2016-12-01 14:17:33.000000000 +0100 @@ -14,6 +14,12 @@ fi ;; ppc*) + SMT=$(/usr/sbin/ppc64_cpu --smt | grep "SMT=[248]") + if [ -n "$SMT" ] + then + logger -t qemu-kvm "Error: You must disable SMT if you want to run QEMU/KVM on ppc64le archtecture" + logger -t qemu-kvm "In order to disable SMT, run: # ppc64_cpu --smt=off" + fi kvm=/usr/bin/qemu-system-ppc64 if [ `uname -m` != "ppc64le" ]; then exit 0