Received: from eggs.gnu.org ([2001:4830:134:3::10]:46227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wl2BO-000490-QX for qemu-devel@nongnu.org; Thu, 15 May 2014 16:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wl2BC-0000hA-0t for qemu-devel@nongnu.org; Thu, 15 May 2014 16:23:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wl2BB-0000go-PE for qemu-devel@nongnu.org; Thu, 15 May 2014 16:23:01 -0400 Date: Thu, 15 May 2014 17:22:51 -0300 From: Eduardo Habkost Message-ID: <20140515202251.GW3302@otherpad.lan.raisama.net> References: <1398876525-28831-1-git-send-email-ehabkost@redhat.com> <1398876525-28831-16-git-send-email-ehabkost@redhat.com> <53751E70.2030803@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <53751E70.2030803@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 15/18] target-i386: Set migratable=yes by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: "Michael S. Tsirkin" , Marcelo Tosatti , qemu-devel@nongnu.org, Alexander Graf , Igor Mammedov , Paolo Bonzini , Aurelien Jarno , Richard Henderson On Thu, May 15, 2014 at 10:07:12PM +0200, Andreas F=E4rber wrote: > Am 30.04.2014 18:48, schrieb Eduardo Habkost: > > Having only migratable flags reported by default on the "host" CPU mo= del > > is safer for the following reasons: > >=20 > > * Existing users may expect "-cpu host" to be migration-safe, if the= y > > take care of always using compatible host CPUs, host kernels, and > > QEMU versions. > > * Users who don't care aboug migration and want to enable all featur= es >=20 > "about" Oops. >=20 > > supported by the host kernel can simply change their setup to use > > migratable=3Dno. > >=20 > > Signed-off-by: Eduardo Habkost >=20 > I see no Reviewed-by or Acked-by for this change... Paolo? Marcelo? Can you help here? >=20 > Shouldn't we at least add .compat_props if we change this behavior? I don't believe we need it. Machine-types are about ABI stability, and "-cpu host" has no ABI stability unless you have exactly the same host CPU, same QEMU version and the same kernel version. >=20 > (NB at this point there are no unmigratable flags yet, but in 18/18.) Actually, there are unmigratable flags, already: the ones supported by the KVM kernel module but are still unknown to QEMU. >=20 > Regards, > Andreas >=20 > > --- > > target-i386/cpu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > > index 9c30957..9ef27fc 100644 > > --- a/target-i386/cpu.c > > +++ b/target-i386/cpu.c > > @@ -1232,7 +1232,7 @@ static int cpu_x86_fill_model_id(char *str) > > static X86CPUDefinition host_cpudef; > > =20 > > static Property x86_host_cpu_properties[] =3D { > > - DEFINE_PROP_BOOL("migratable", X86CPU, migratable, false), > > + DEFINE_PROP_BOOL("migratable", X86CPU, migratable, true), > > DEFINE_PROP_END_OF_LIST() > > }; > > =20 >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg --=20 Eduardo