[pve-devel] [PATCH manager] Add USB3 support for Spice USB redirection

Aaron Lauterer a.lauterer at proxmox.com
Fri Aug 30 09:40:11 CEST 2019


Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 www/manager6/qemu/USBEdit.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/www/manager6/qemu/USBEdit.js b/www/manager6/qemu/USBEdit.js
index 8fc95c99..20c30fe6 100644
--- a/www/manager6/qemu/USBEdit.js
+++ b/www/manager6/qemu/USBEdit.js
@@ -18,8 +18,6 @@ Ext.define('PVE.qemu.USBInputPanel', {
 			hwidfield.setDisabled(!newValue);
 		    } else if(field.inputValue === 'port') {
 			portfield.setDisabled(!newValue);
-		    } else if(field.inputValue === 'spice') {
-			usb3field.setDisabled(newValue);
 		    }
 		}
 	    },
@@ -62,7 +60,11 @@ Ext.define('PVE.qemu.USBInputPanel', {
 	var type = me.down('radiofield').getGroupValue();
 	switch (type) {
 	    case 'spice':
-		val = 'spice'; break;
+		val = 'spice';
+		if (!/usb3/.test(val) && me.down('field[name=usb3]').getValue() === true) {
+		    val += ',usb3=1';
+		}
+		break;
 	    case 'hostdevice':
 	    case 'port':
 		val = me.down('pveUSBSelector[name=' + type + ']').getUSBValue();
-- 
2.20.1




More information about the pve-devel mailing list