Commit bab7edde authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

add numa option to processor form

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 868dd7a4
......@@ -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
}
......
......@@ -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,
},
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment