5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

snapshot rollback: use pc-i440fx-1.4 as default

This commit is contained in:
Dietmar Maurer 2013-06-06 06:38:12 +02:00
parent 6dbe8b459b
commit d8b916fdb0

View File

@ -4340,7 +4340,9 @@ sub snapshot_rollback {
$conf = &$snapshot_apply_config($conf, $snap);
$conf->{parent} = $snapname;
$forcemachine = $conf->{machine};
# Note: old code did not store 'machine', so we try to be smart
# and guess the snapshot was generated with kvm 1.4 (pc-i440fx-1.4).
$forcemachine = $conf->{machine} || 'pc-i440fx-1.4';
# we remove the 'machine' configuration if not explicitly specified
# in the original config.
delete $conf->{machine} if $snap->{vmstate} && !$has_machine_config;