[pve-devel] applied: [PATCH qemu-server] Add dot character to CPU commandline regular expression

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Aug 11 12:59:12 CEST 2020


On August 11, 2020 12:47 pm, Fabian Ebner wrote:
> 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 at proxmox.com>
> ---
>  PVE/QemuServer/CPUConfig.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/QemuServer/CPUConfig.pm b/PVE/QemuServer/CPUConfig.pm
> index 8ed898c..4351cfd 100644
> --- a/PVE/QemuServer/CPUConfig.pm
> +++ b/PVE/QemuServer/CPUConfig.pm
> @@ -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 => {
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 




More information about the pve-devel mailing list