[pve-devel] [PATCH] enforce cpu check
Alexandre Derumier
aderumier at odiso.com
Thu Mar 27 13:47:30 CET 2014
enable check if host support all cpu flags configured for the guests
this avoid some bad setup like Opteron vcpu on a intel host for example,
and avoid some bad live migrations
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 2093990..2a71659 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2504,7 +2504,7 @@ sub config_to_command {
$cpu .= "," . join(',', @$cpuFlags) if scalar(@$cpuFlags);
- push @$cmd, '-cpu', $cpu;
+ push @$cmd, '-cpu', $cpu.",enforce";
push @$cmd, '-S' if $conf->{freeze};
--
1.7.10.4
More information about the pve-devel
mailing list