remove not available intel cpu flags on amd cpu

efeu

Renowned Member
Nov 6, 2015
91
10
73
There seems to be an "older" bug in pve - when I enable kvm_amd avic, proxmox would add x2apic flag to and EPIC cpu (which is and intel cpu flag, so no wonder it cannot work)
More information:
https://bugzilla.redhat.com/show_bug.cgi?id=1675030

I could fix this by my own, so please link me to the corresponding script, where pve sets the flags, so I will manualy edit this for my needs until you will patch this behaviour.
 
OK, I found it
add:
push @$cpuFlags , '-x2apic' if $cpu eq 'EPYC';
in sub get_cpu_options
in
/usr/share/perl5/PVE/QemuServer/CPUConfig.pm

Sould be disabled by detecting AMD CPU
 
Last edited: