mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-05 00:40:09 +00:00
fix tablet hotplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
f1c8f1d7d4
commit
e8a7e9b44c
@ -656,9 +656,11 @@ my $vmconfig_delete_option = sub {
|
|||||||
$unplugwarning = "<br>verify that your guest support acpi hotplug";
|
$unplugwarning = "<br>verify that your guest support acpi hotplug";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
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 ($isDisk) {
|
if ($isDisk) {
|
||||||
my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt});
|
my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt});
|
||||||
|
Loading…
Reference in New Issue
Block a user