#782682 qemu-kvm: set "-cpu host" by default

Package:
qemu-system-x86
Source:
qemu
Description:
QEMU full system emulation binaries (x86)
Submitter:
Michael Gilbert
Date:
2015-04-16 05:57:09 UTC
Severity:
wishlist
#782682#5
Date:
2015-04-16 04:38:28 UTC
From:
To:
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

#782682#10
Date:
2015-04-16 05:25:53 UTC
From:
To:
16.04.2015 07:38, Michael Gilbert wrote:

qemu's default cpu is qemu64 (for qemu-system-x86_64 anyway), which is
a non-existing common subset of features of more or less modern CPUs
from several vendors.  Its very important property is that it supports
migration from one host to another without worrying about cpu types.

I don't want to change this aspect of qemu, and especially don't want
this to divirge from upstream, so that debian qemu will be incompatible
with all documentation available on the 'net.  If you want this to be
changed, please address this upstream.

Thanks,

/mjt

#782682#19
Date:
2015-04-16 05:55:20 UTC
From:
To:
Well, the point was more about making the kvm convenience launcher
more convienient, rather than touching the backends, but ok I see your
point.

Best wishes,
Mike