5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-08-29 17:49:22 +03:00

fix tablet hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-19 12:02:50 +01:00
committed by Dietmar Maurer
parent f1c8f1d7d4
commit e8a7e9b44c

View File

@ -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});