On Mon, Dec 05, 2016 at 21:57:45 -0200, Eduardo Habkost wrote: > On Mon, Dec 05, 2016 at 07:18:47PM +0100, David Hildenbrand wrote: > > Am 02.12.2016 um 22:18 schrieb Eduardo Habkost: > > > The query-cpu-model-expand QMP command needs at least one static > > > model, to allow the "static" expansion mode to be implemented. > > > Instead of defining static versions of every CPU model, define a > > > "base" CPU model that has absolutely no feature flag enabled. > > > > > > > Introducing separate ones makes feature lists presented to the user much > > shorter (and therefore easier to maintain). But I don't know how libvirt > > wants to deal with models on x86 in the future. > > I understand that having a larger set of static models would make > expansions shorter. But I worry that by defining a complete set > of static models on x86 would require extra maintenance work on > the QEMU side with no visible benefit for libvirt. > > I would like to hear from libvirt developers what they think. I > still don't know what they plan to use the type=static expansion > results for. Currently we are mostly interested in the expansion of the "host" CPU model. We're fine with the expansion based on the "basic" static model with no features. Returning some real model instead of "basic" would be OK as long as it would be one of the existing CPU models. Adding special static models, such as Broadwell-base would actually be a complication since we would need to provide some translation to the existing models for backward compatibility. I'd appreciate if we could avoid doing this. Jirka -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list