[pve-devel] [PATCH 2/2] add numa option to processor form

Alexandre Derumier aderumier at odiso.com
Tue Jan 20 16:43:41 CET 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager/qemu/HardwareView.js  |    9 +++++++++
 www/manager/qemu/ProcessorEdit.js |    9 ++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/www/manager/qemu/HardwareView.js b/www/manager/qemu/HardwareView.js
index b0680cc..16b6a9d 100644
--- a/www/manager/qemu/HardwareView.js
+++ b/www/manager/qemu/HardwareView.js
@@ -69,12 +69,18 @@ Ext.define('PVE.qemu.HardwareView', {
 		    var sockets = me.getObjectValue('sockets', 1, pending);
 		    var model = me.getObjectValue('cpu', undefined, pending);
 		    var cores = me.getObjectValue('cores', 1, pending);
+		    var numa = me.getObjectValue('numa', undefined, pending);
 
 		    var res = (sockets*cores) + ' (' + sockets + ' sockets, ' + cores + ' cores)';
 		    
 		    if (model) {
 			res += ' [' + model + ']';
 		    }
+
+		    if (numa) {
+			res += ' [numa=' + numa +']';
+		    }
+
 		    return res;
 		}
 	    },
@@ -100,6 +106,9 @@ Ext.define('PVE.qemu.HardwareView', {
 	    cpu: {
 		visible: false
 	    },
+	    numa: {
+		visible: false
+	    },
 	    balloon: {
 		visible: false
 	    }
diff --git a/www/manager/qemu/ProcessorEdit.js b/www/manager/qemu/ProcessorEdit.js
index de19f6f..4bb3d92 100644
--- a/www/manager/qemu/ProcessorEdit.js
+++ b/www/manager/qemu/ProcessorEdit.js
@@ -37,7 +37,14 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
 			me.down('field[name=totalcores]').setValue(sockets*cores);
 		    }
 		}
-	    }
+	    },
+	    {
+		xtype: 'pvecheckbox',
+		fieldLabel: gettext('Enable numa'),
+		name: 'numa',
+		uncheckedValue: 0,
+	    },
+
 	];
 
 
-- 
1.7.10.4



More information about the pve-devel mailing list