if [ -n "$BUILD_JOBS" -a "$icecream" = 0 ]; then
qemu_args=("${qemu_args[@]}" "-smp" "$BUILD_JOBS")
fi
+ # workaround a bug in qemu-kvm where wrong cpuid can get set
+ KVM64_WORKAROUND=""
+ if [ "$PERSONALITY" != 0 -a "$VM_TYPE" = 'kvm' ]; then
+ KVM64_WORKAROUND="-cpu kvm64"
+ fi
- set -- $qemu_bin -no-reboot -nographic -net none \
+ set -- $qemu_bin -no-reboot -nographic -net none $KVM64_WORKAROUND \
-kernel $vm_kernel \
-initrd $vm_initrd \
-append "root=$qemu_rootdev panic=1 quiet no-kvmclock rw elevator=noop console=ttyS0 init=$vm_init_script" \