[Kimchi-devel] [PATCH v3] [Kimchi 2/2] Disable hotplugging buttons of multi-function devices
Jose Ricardo Ziviani
joserz at linux.vnet.ibm.com
Fri Dec 11 12:49:36 UTC 2015
- Libvirt does not support multi-function devices currently. This
commit disables + and - button while the VM is running if the PCI
device is multi-function.
Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_edit_main.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index c9a4c94..b358f59 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -486,6 +486,9 @@ kimchi.guest_edit_main = function() {
$('.body', '#form-guest-edit-pci').append(itemNode);
pciEnabled || $('button', itemNode).remove();
$('button i', itemNode).addClass(iconClass);
+ if (kimchi.thisVMState === "running" && arrPCIDevices[i].multifunction) {
+ $('button', itemNode).prop("disabled", true);
+ }
$('button', itemNode).on('click', function(event) {
event.preventDefault();
var obj = $(this);
--
1.9.1
More information about the Kimchi-devel
mailing list