Francesco Romani has uploaded a new change for review.

Change subject: core: enable hyperv optimization on windows
......................................................................

core: enable hyperv optimization on windows

On VDSM side, we are catching-up with HyperV
enligthenment support and recommended settings.

Some of them are grouped under the 'hypervEnable'
toggle and it is required to be explicitely enable
for various reasons, the first one is they may be not
completely transparent to not-windows guests.

This patch automaticcaly enables these optimizations
for windows guests.

Change-Id: I01d50a539347211a6729cfb86922d60a6244d495
Bug-Url: https://bugzilla.redhat.com/1110305
Relates-To: https://bugzilla.redhat.com/1107835
Relates-To: https://bugzilla.redhat.com/1083529
Signed-off-by: Francesco Romani <from...@redhat.com>
---
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
2 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/38/29238/1

diff --git 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
index ceddc2b..5df1593 100644
--- 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
+++ 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
@@ -269,6 +269,7 @@
     public static final String sysprepInf = "sysprepInf"; // for the binary sys
     public static final String spiceFileTransferEnable = "fileTransferEnable";
     public static final String spiceCopyPasteEnable = "copyPasteEnable";
+    public static final String hypervEnable = "hypervEnable";
                                                           // prep
     public static final String Boot = "boot"; // Optional
     public static final String BootOrder = "bootOrder";
diff --git 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
index 7ec210d..3629bac 100644
--- 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
+++ 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilderBase.java
@@ -156,6 +156,10 @@
             createInfo.put(VdsProperties.spiceCopyPasteEnable,
                 Boolean.toString(vm.isSpiceCopyPasteEnabled()));
         }
+
+        if (osRepository.isWindows(vm.getVmOsId())) {
+            createInfo.put(VdsProperties.hypervEnable, "true");
+        }
     }
 
     private void addCpuPinning(final String compatibilityVersion) {


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

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

Reply via email to