cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject [1/2] git commit: updated refs/heads/4.3.0-forward to f0a98ba
Date Wed, 28 May 2014 04:12:08 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.3.0-forward [created] f0a98baa0


CLOUDSTACK-5891.[VMware] If a template has been registered and "cpu.corespersocket=X" template
details have been added for it,
then any instance deployed from that template should have X cores per socket


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d7c6e798
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d7c6e798
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d7c6e798

Branch: refs/heads/4.3.0-forward
Commit: d7c6e798278b1dab372f6b9800fc4b4cc724bf11
Parents: c0cf817
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Tue Nov 26 15:22:58 2013 +0530
Committer: root <root@devhost1.minigiant.apple.com>
Committed: Thu Apr 3 03:55:16 2014 +0000

----------------------------------------------------------------------
 .../com/cloud/hypervisor/vmware/resource/VmwareResource.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d7c6e798/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
index 9f5cf04..be87f12 100755
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -2765,6 +2765,12 @@ public class VmwareResource implements StoragePoolResource, ServerResource,
Vmwa
             vmConfigSpec.setCpuHotAddEnabled(vmMo.isCpuHotAddSupported(guestOsId));
             configNestedHVSupport(vmMo, vmSpec, vmConfigSpec);
 
+             // Check for multi-cores per socket settings
+            String coresPerSocket = vmSpec.getDetails().get("cpu.corespersocket");
+            if (coresPerSocket != null) {
+                vmConfigSpec.setNumCoresPerSocket(NumbersUtil.parseInt(coresPerSocket, 1));
+            }
+
             VirtualDeviceConfigSpec[] deviceConfigSpecArray = new VirtualDeviceConfigSpec[totalChangeDevices];
             int i = 0;
             int ideUnitNumber = 0;


Mime
View raw message