[pve-devel] [PATCH] fix tablet hotplug

Dietmar Maurer dietmar at proxmox.com
Tue Feb 19 13:01:33 CET 2013


applied

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre Derumier
> Sent: Dienstag, 19. Februar 2013 12:03
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] fix tablet hotplug
> 
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/API2/Qemu.pm |    8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index
> daada76..ee02467 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -656,9 +656,11 @@ my $vmconfig_delete_option = sub {
>  	$unplugwarning = "<br>verify that your guest support acpi hotplug";
>      }
> 
> -    die "error hot-unplug $opt $unplugwarning" if
> !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
> -
> -    PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt) if $opt eq
> 'tablet';
> +    if($opt eq 'tablet'){
> +	PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt);
> +    }else{
> +        die "error hot-unplug $opt $unplugwarning" if
> !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
> +    }
> 
>      if ($isDisk) {
>  	my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt});
> --
> 1.7.10.4
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list