vishesh92 commented on code in PR #11213:
URL: https://github.com/apache/cloudstack/pull/11213#discussion_r2224377680


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java:
##########
@@ -2547,11 +2547,23 @@ protected void setQuotaAndPeriod(VirtualMachineTO vmTO, 
CpuTuneDef ctd) {
     protected void enlightenWindowsVm(VirtualMachineTO vmTO, FeaturesDef 
features) {
         if (vmTO.getOs().contains("Windows PV")) {
             // If OS is Windows PV, then enable the features. Features 
supported on Windows 2008 and later
+            // 
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/configuring_and_managing_windows_virtual_machines/optimizing-windows-virtual-machines#enabling-hyper-v-enlightenments
             LibvirtVMDef.HyperVEnlightenmentFeatureDef hyv = new 
LibvirtVMDef.HyperVEnlightenmentFeatureDef();
             hyv.setFeature("relaxed", true);
             hyv.setFeature("vapic", true);
             hyv.setFeature("spinlocks", true);
-            hyv.setRetries(8096);
+            hyv.setRetries(8191);
+            hyv.setFeature("vendor_id", true);
+            hyv.setFeature("vpindex", true);
+            hyv.setFeature("runtime", true);
+            hyv.setFeature("synic", true);
+            hyv.setFeature("frequencies", true);
+            hyv.setFeature("reset", true);
+            hyv.setFeature("tlbflush", true);
+            hyv.setFeature("reenlightenment", true);
+            hyv.setFeature("stimer", true);
+            hyv.setFeature("ipi", true);
+            hyv.setFeature("evmcs", true);

Review Comment:
   As per the docs "This feature is exclusive to Intel processors.". So, this 
could potentially cause issues with non-intel processors.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to