CA-203428: Check the CPU feature compatibility on migration only if the VM is on a Dundee or higher host

Signed-off-by: Mihaela Stoica <Mihaela.Stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-03-10 14:07:12 +00:00
parent e3f7ef61a4
commit 379de1f414

View File

@ -186,7 +186,7 @@ namespace XenAdmin.Commands
public static bool VmCpuFeaturesIncompatibleWithHost(Host targetHost, VM vm)
{
// check the CPU feature compatibility for Dundee and higher hosts
if (!Helpers.DundeeOrGreater(targetHost))
if (!Helpers.DundeeOrGreater(targetHost) || !Helpers.DundeeOrGreater(vm.Connection))
return false;
// only for running or suspended VMs