[pve-devel] [PATCH] add +lahf_lm flag to kvm64 cpudef

Dietmar Maurer dietmar at proxmox.com
Fri Nov 29 09:20:38 CET 2013


applied, thanks!

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre Derumier
> Sent: Donnerstag, 28. November 2013 16:34
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] add +lahf_lm flag to kvm64 cpudef
> 
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/QemuServer.pm |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index
> 50b774d..e201b4a 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -2451,6 +2451,8 @@ sub config_to_command {
>      my $cpu = $nokvm ? "qemu64" : "kvm64";
>      $cpu = $conf->{cpu} if $conf->{cpu};
> 
> +    push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64';
> +
>      push @$cpuFlags , '+x2apic' if !$nokvm && $conf->{ostype} ne 'solaris';
> 
>      push @$cpuFlags , '-x2apic' if $conf->{ostype} eq 'solaris';
> --
> 1.7.10.4
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list