From b49ea621a08c19ac89fba0640f5abcd5b56e2a2d Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 8 Jun 2015 17:07:53 +0200 Subject: [PATCH] add iothread option 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 --- debian/changelog.Debian | 2 ++ www/manager/qemu/HDEdit.js | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/debian/changelog.Debian b/debian/changelog.Debian index 89831240..06dd5496 100644 --- a/debian/changelog.Debian +++ b/debian/changelog.Debian @@ -2,6 +2,8 @@ pve-manager (4.0-12) unstable; urgency=medium * change pve-manager service type to oneshot + * add iothread option + -- Proxmox Support Team Wed, 10 Jun 2015 09:05:29 +0200 pve-manager (4.0-11) unstable; urgency=medium diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js index b2785b1f..e26cbe41 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(); } });