qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] change x86 default machine type to Q35?


From: Eduardo Habkost
Subject: Re: [Qemu-devel] change x86 default machine type to Q35?
Date: Fri, 7 Jul 2017 10:49:40 -0300
User-agent: Mutt/1.8.0 (2017-02-23)

On Thu, Jul 06, 2017 at 11:49:40AM +0100, Daniel P. Berrange wrote:
> On Wed, Jul 05, 2017 at 08:22:00PM +0800, Fam Zheng wrote:
> > On Wed, 07/05 13:58, Thomas Huth wrote:
> > > On 05.07.2017 13:44, Fam Zheng wrote:
> > > > On Wed, 07/05 12:04, Daniel P. Berrange wrote:
> > > >> While you can say people should just add '-M pc' that isn't a nice
> > > >> user experiance, because it makes the assumption that people actually
> > > >> understand what caused their breakage. When the incompatibilities
> > > >> arise the error messages are unlikely to give any hint to users that
> > > >> the problems are caused by the machine type change. So unless someone
> > > >> is very familiar with debugging QEMU, they're not going to realize
> > > >> that '-M pc' will fix their problem.
> > > > 
> > > > While we change the default, can we start to print a message like 
> > > > 'machine type
> > > > ("-M" option) not specified, default to Q35. If you find compatibility 
> > > > issues,
> > > > try "-M pc"'?
> > > 
> > > Or we could simply remove the default machine type completely for a
> > > couple of releases? That would force people to update their script with
> > > "-M pc" ... and once this has been established, we can finally make q35
> > > the default?
> > 
> > I wouldn't do that.. Defaults are for those who don't care about setting 
> > it, or
> > want something that just works, by default. It's fine not to provide a 
> > default
> > machine type if we decide there isn't a clear win, just like arm, but IMHO
> > removing it just to restore it later in order to educate people makes a very
> > poor experience.
> 
> Since the idea of removing the default machine type was brought up, we should
> perhaps consider that as a distinct solution. Going from using 'pc' by defailt
> to having no default machine type, has significantly better user experiance
> than changing the default machine to 'q35' IMHO.
> 
> eg if we killed the default, currently QEMU would say something like
> 
>    qemu-system-x86_64: No machine specified, and there is no default
>    Use -machine help to list supported machines
> 
> We could augment that with further details:
> 
>    qemu-system-x86_64: No machine specified, and there is no default
>    Use -machine help to list supported machines
> 
>    For compatibility with previous releases of QEMU, pick the 'pc'
>    machine type. New deployments are suggested to use the 'q35'
>    machine type.
> 
> This avoids the user having problems with guest ABI silently changing
> behind their back, or migration suddenly failing to load vm state,
> and gives them clear immediate guidance on how to resolve the problem
> they're facing, as well as encouraging usage of 'q35' going forward,
> without having to actually make it the default.

Won't this make things more fragile for libvirt, as it would
fallback to the first machine-type on the list?  If we
inadvertently change the order of the list in QEMU, it could
break users' setups.

Or it would be feasible for libvirt to also stop choosing a
default if there's no clear winner?

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]