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:
committed by
Dietmar Maurer
parent
f1c8f1d7d4
commit
e8a7e9b44c
@ -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});
|
||||
|
Reference in New Issue
Block a user