]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Add "migratable" property to "host" CPU model
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 30 Apr 2014 16:48:41 +0000 (13:48 -0300)
committerAndreas Färber <afaerber@suse.de>
Wed, 25 Jun 2014 21:54:57 +0000 (23:54 +0200)
commit84f1b92f974fbb19967c5f10ac6c3f4a04fb86dd
treeca1c3421f747c4c6b6af2c3d5a9bd4b7ff87cfac
parentfefb41bf3485a1c9a44c15e382d28035c6fb5f4b
target-i386: Add "migratable" property to "host" CPU model

This flag will allow the user to choose between two modes:
 * All flags that can be enabled on the host, even if unmigratable
   (migratable=no);
 * All flags that can be enabled on the host, are known to QEMU
   and migratable (migratable=yes).

The default is still migratable=false, to keep current behavior, but
this will be changed to migratable=true by another patch.

My plan was to support the "migratable" flag on all CPU classes, but
have the default to "false" on all CPU models except "host". However,
DeviceClass has no mechanism to allow a child class to have a different
property default from the parent class yet, so by now only the "host"
CPU model will support the "migratable" flag.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu-qom.h
target-i386/cpu.c