summaryrefslogtreecommitdiffstats
path: root/hw/i386/pc_piix.c
diff options
context:
space:
mode:
authorStefano Garzarella2019-01-22 13:10:48 +0100
committerPaolo Bonzini2019-02-05 16:50:17 +0100
commitfda672b50e3e5613d0110e0e7c1f773bfaa1fb3d (patch)
tree20a96c2143d65d1b5969f7c5b50b3576ccbdce89 /hw/i386/pc_piix.c
parentoptionrom/pvh: load initrd from fw_cfg (diff)
downloadqemu-fda672b50e3e5613d0110e0e7c1f773bfaa1fb3d.tar.gz
qemu-fda672b50e3e5613d0110e0e7c1f773bfaa1fb3d.tar.xz
qemu-fda672b50e3e5613d0110e0e7c1f773bfaa1fb3d.zip
hw/i386/pc: enable PVH only for machine type >= 4.0
In order to avoid migration issues, we enable PVH only for machine type >= 4.0 Suggested-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r--hw/i386/pc_piix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 63c84e3827..fd0f2c268f 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -440,9 +440,12 @@ DEFINE_I440FX_MACHINE(v4_0, "pc-i440fx-4.0", NULL,
static void pc_i440fx_3_1_machine_options(MachineClass *m)
{
+ PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
+
pc_i440fx_4_0_machine_options(m);
m->is_default = 0;
m->alias = NULL;
+ pcmc->pvh_enabled = false;
compat_props_add(m->compat_props, hw_compat_3_1, hw_compat_3_1_len);
compat_props_add(m->compat_props, pc_compat_3_1, pc_compat_3_1_len);
}