mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 14:01:16 +00:00
shorten and subjectively improve code comment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
227a298f7f
commit
876b24f228
@ -2979,8 +2979,7 @@ __PACKAGE__->register_method({
|
|||||||
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']);
|
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']);
|
||||||
my $conf = PVE::QemuConfig->load_config($vmid);
|
my $conf = PVE::QemuConfig->load_config($vmid);
|
||||||
|
|
||||||
# check for hostpci devices (suspend will maybe work, resume won't),
|
# cannot save the state of a non-virtualized PCIe device, so resume cannot really work
|
||||||
# so prevent users from suspending in the first place
|
|
||||||
for my $key (keys %$conf) {
|
for my $key (keys %$conf) {
|
||||||
next if $key !~ /^hostpci\d+/;
|
next if $key !~ /^hostpci\d+/;
|
||||||
die "Cannot suspend VM to disk with assigned PCI devices\n";
|
die "Cannot suspend VM to disk with assigned PCI devices\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user