package: qemu-kvm
severity: wishlist
tag: patch

qemu's default emulated cpu is pentium2.  This is often enough not
what the user wants and can lead to out of dateness problems like:
http://bugs.debian.org/775235

kvm has a "-cpu host" option that automatically emulates the host cpu,
which could be better default.

Here is an incredibly simple patch to the kvm launcher script that
does just that.  Including another "-cpu x" option on the command-line
overrides the hardcoded "-cpu host" one.

Best wishes,
Mike
diff -Nru qemu-2.1+dfsg/debian/changelog qemu-2.1+dfsg/debian/changelog
--- qemu-2.1+dfsg/debian/changelog	2014-12-09 21:53:52.000000000 +0000
+++ qemu-2.1+dfsg/debian/changelog	2015-04-16 04:11:18.000000000 +0000
@@ -1,3 +1,10 @@
+qemu (1:2.1+dfsg-11.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use host processor as the default cpu model.
+
+ -- Michael Gilbert <mgilb...@debian.org>  Thu, 16 Apr 2015 04:07:20 +0000
+
 qemu (1:2.1+dfsg-11) unstable; urgency=medium
 
   * bump epoch and reupload to cancel 2.2+dfsg-1exp upload
diff -Nru qemu-2.1+dfsg/debian/kvm qemu-2.1+dfsg/debian/kvm
--- qemu-2.1+dfsg/debian/kvm	2014-12-06 12:36:47.000000000 +0000
+++ qemu-2.1+dfsg/debian/kvm	2015-04-16 04:08:44.000000000 +0000
@@ -1,2 +1,2 @@
 #! /bin/sh
-exec qemu-system-x86_64 -enable-kvm "$@"
+exec qemu-system-x86_64 -enable-kvm -cpu host "$@"

Reply via email to