mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-19 01:22:39 +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']);
|
||||
my $conf = PVE::QemuConfig->load_config($vmid);
|
||||
|
||||
# check for hostpci devices (suspend will maybe work, resume won't),
|
||||
# so prevent users from suspending in the first place
|
||||
# cannot save the state of a non-virtualized PCIe device, so resume cannot really work
|
||||
for my $key (keys %$conf) {
|
||||
next if $key !~ /^hostpci\d+/;
|
||||
die "Cannot suspend VM to disk with assigned PCI devices\n";
|
||||
|
Loading…
Reference in New Issue
Block a user