]> git.proxmox.com Git - qemu-server.git/commitdiff
Add dot character to CPU commandline regular expression
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 11 Aug 2020 10:47:03 +0000 (12:47 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 11 Aug 2020 10:58:43 +0000 (12:58 +0200)
to be able to parse CPU features like "+sse4.2" correctly.

Reported here: https://forum.proxmox.com/threads/zsf-snapshot-unable-to-parse-value-of-runningcpu-got-undefined-value.74094/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer/CPUConfig.pm

index 8ed898c2001ab4ef3f655dc028e3899a6b45dfd9..4351cfd3b4e81c9b05fc6c30a853c276bdaed052 100644 (file)
@@ -107,7 +107,7 @@ my @supported_cpu_flags = (
 my $cpu_flag_supported_re = qr/([+-])(@{[join('|', @supported_cpu_flags)]})/;
 my $cpu_flag_any_re = qr/([+-])([a-zA-Z0-9\-_\.]+)/;
 
-our $qemu_cmdline_cpu_re = qr/^((?>[+-]?[\w\-_=]+,?)+)$/;
+our $qemu_cmdline_cpu_re = qr/^((?>[+-]?[\w\-\._=]+,?)+)$/;
 
 my $cpu_fmt = {
     cputype => {