only for virtio disk (virtio-scsi qemu 2.3 is not thread-safe currently) improve me: grey-out/hidden the option if !virtio
Signed-off-by: Alexandre Derumier <aderum...@odiso.com> --- www/manager/qemu/HDEdit.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js index b2785b1..e26cbe4 100644 --- a/www/manager/qemu/HDEdit.js +++ b/www/manager/qemu/HDEdit.js @@ -39,6 +39,12 @@ Ext.define('PVE.qemu.HDInputPanel', { delete me.drive.discard; } + if (values.iothread && me.confid.match(/^virtio\d+$/)) { + me.drive.iothread = 'on'; + } else { + delete me.drive.iothread; + } + if (values.cache) { me.drive.cache = values.cache; } else { @@ -88,6 +94,7 @@ Ext.define('PVE.qemu.HDInputPanel', { values.diskformat = drive.format || 'raw'; values.cache = drive.cache || ''; values.discard = (drive.discard === 'on'); + values.iothread = (drive.iothread === 'on'); me.setValues(values); }, @@ -227,6 +234,12 @@ Ext.define('PVE.qemu.HDInputPanel', { name: 'discard' }); + me.column2.push({ + xtype: 'pvecheckbox', + fieldLabel: gettext('Iothread'), + name: 'iothread' + }); + me.callParent(); } }); -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel