Skip to content

Commit

Permalink
build-vm-kvm: on power8 with qemu-5.0 add cap-ccf-assist=off
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfinder committed Jul 29, 2020
1 parent ab6f002 commit f3fb055
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-vm-kvm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ vm_verify_options_kvm() {
kvm_bin="/usr/bin/qemu-system-ppc64"
kvm_console=hvc0
kvm_options="-enable-kvm -M pseries"
if grep -q POWER8 /proc/cpuinfo ; then
# This option only exists with QEMU 5.0 or newer
if $kvm_bin -machine 'pseries,?' 2>&1 | grep -q cap-ccf-assist ; then
kvm_options="-enable-kvm -M pseries,cap-ccf-assist=off"
fi
fi
grep -q PPC970MP /proc/cpuinfo && kvm_check_ppc970
vm_kernel=/boot/vmlinux
vm_initrd=/boot/initrd
Expand Down

0 comments on commit f3fb055

Please sign in to comment.