[Kimchi-devel] [PATCH] [Kimchi 2/3] Disable hotplug of graphic card devices in the frontend

Aline Manera alinefm at linux.vnet.ibm.com
Tue Feb 23 18:35:29 UTC 2016


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 02/22/2016 04:38 PM, Jose Ricardo Ziviani wrote:
>   - Such devices are still being listed but the action + button is grayed
>     out and disabled. However it's enabled again if the system is
>     powered off.
>
> Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.guest_edit_main.js | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
> index 94b521e..8c26f55 100644
> --- a/ui/js/src/kimchi.guest_edit_main.js
> +++ b/ui/js/src/kimchi.guest_edit_main.js
> @@ -487,7 +487,7 @@ 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) {
> +            if (kimchi.thisVMState === "running" && (arrPCIDevices[i].multifunction || arrPCIDevices[i].vga3d)) {
>                   $('button', itemNode).prop("disabled", true);
>               }
>               $('button', itemNode).on('click', function(event) {




More information about the Kimchi-devel mailing list