Re: [Qemu-devel] [QEMU 1.1 PATCH v2] Expose CPUID leaf 7 only for -cpu host

2012-05-21 Thread Eduardo Habkost
On Thu, May 17, 2012 at 01:26:55PM -0300, Eduardo Habkost wrote: [...] > @@ -521,6 +523,12 @@ static int cpu_x86_fill_host(x86_def_t *x86_cpu_def) > x86_cpu_def->ext_features = ecx; > x86_cpu_def->features = edx; > > +if (x86_cpu_def->level >= 7) { > +x86_cpu_def->cpuid_7_0_

Re: [Qemu-devel] [QEMU 1.1 PATCH v2] Expose CPUID leaf 7 only for -cpu host

2012-05-17 Thread Eduardo Habkost
On Thu, May 17, 2012 at 10:56:36AM -0600, Eric Blake wrote: > On 05/17/2012 10:26 AM, Eduardo Habkost wrote: > > > The problem is that this makes the resulting CPU feature flags > > unpredictable and dependent on the host CPU and kernel version. This > > breaks live-migration badly if migrating fr

Re: [Qemu-devel] [QEMU 1.1 PATCH v2] Expose CPUID leaf 7 only for -cpu host

2012-05-17 Thread Eric Blake
On 05/17/2012 10:26 AM, Eduardo Habkost wrote: > The problem is that this makes the resulting CPU feature flags > unpredictable and dependent on the host CPU and kernel version. This > breaks live-migration badly if migrating from a host CPU that supports > some features on that CPUID leaf (runnin