]> git.proxmox.com Git - qemu-server.git/commitdiff
cfg2cmd: disable SMM when display=none and SeaBIOS is both used
authorOguz Bektas <o.bektas@proxmox.com>
Thu, 11 Nov 2021 12:05:58 +0000 (13:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 13:16:09 +0000 (14:16 +0100)
issue reported in community forum [0][1], like "serial[n]" display we
also need to set this option for "none", otherwise we get a boot
loop.

[0]: https://forum.proxmox.com/threads/99508
[1]: https://forum.proxmox.com/threads/97310/post-427129

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index fd1f6a74e9e094f392de15e947d15932cfc920ae..8c55dbcf6dcfd003a42f4013075a8f93f7805025 100644 (file)
@@ -3410,7 +3410,7 @@ my sub should_disable_smm {
     my ($conf, $vga) = @_;
 
     return (!defined($conf->{bios}) || $conf->{bios} eq 'seabios') &&
-       $vga->{type} && $vga->{type} =~ m/^serial\d+$/;
+       $vga->{type} && $vga->{type} =~ m/^(serial\d+|none)$/;
 }
 
 sub config_to_command {