i386: Make unversioned CPU models be aliases
commit0788a56bd1ae3ea4e118beb4aeb071a181791184
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 28 Jun 2019 00:28:42 +0000 (27 21:28 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:04 +0000 (5 17:08 -0300)
treecc2face02302fe220177e146ae94de6efc120f7d
parent53db89d93bebe70a3e7f4c45933deffcf3e7cb62
i386: Make unversioned CPU models be aliases

This will make unversioned CPU models behavior depend on the
machine type:

* "pc-*-4.0" and older will not report them as aliases.
  This is done to keep compatibility with older QEMU versions
  after management software starts translating aliases.

* "pc-*-4.1" will translate unversioned CPU models to -v1.
  This is done to keep compatibility with existing management
  software, that still relies on CPU model runnability promises.

* "none" will translate unversioned CPU models to their latest
  version.  This is planned become the default in future machine
  types (probably in pc-*-4.3).

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190628002844.24894-8-ehabkost@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h
target/i386/cpu.c
target/i386/cpu.h
tests/acceptance/x86_cpu_model_versions.py