Roy Golan has uploaded a new change for review.

Change subject: core: VM should be PINNED+TO_HOST when using host cpu flags
......................................................................

core: VM should be PINNED+TO_HOST when using host cpu flags

according to the bug a VM using pass-through host cpu (host cpu flags)
might bump into issues when migrating to cpu lower than the SRC hardware
and this is, apparently not supported

Change-Id: I781891e91680bbe8095097a2a1e4c426e318c720
Bug-Url: https://bugzilla.redhat.com/1052168
Signed-off-by: Roy Golan <rgo...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/28/34828/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
index 408fbb7..5551952 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
@@ -593,7 +593,7 @@
         }
 
         if (vmFromParams.isUseHostCpuFlags()
-                && vmFromParams.getMigrationSupport() == 
MigrationSupport.MIGRATABLE) {
+                && vmFromParams.getMigrationSupport() != 
MigrationSupport.PINNED_TO_HOST) {
             return 
failCanDoAction(VdcBllMessages.VM_HOSTCPU_MUST_BE_PINNED_TO_HOST);
         }
 


-- 
To view, visit http://gerrit.ovirt.org/34828
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I781891e91680bbe8095097a2a1e4c426e318c720
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to