cyring / CoreFreq

CoreFreq : CPU monitoring and tuning software designed for 64-bit processors.
https://www.cyring.fr
GNU General Public License v2.0
1.97k stars 126 forks source link

VM Guest may crash #262

Closed cyring closed 3 years ago

cyring commented 3 years ago

If the Hypervisor does not implement the pseudo counter at MSR register 0x40000010 then corefreqk.ko driver is crashing. https://github.com/cyring/CoreFreq/blob/d5b8ff7c3fe566b94704b9568c39251727ba7ef6/corefreqk.c#L10034

cyring commented 3 years ago

The proper way to initiate the VM is to enable hv-runtime

qemu-system-x86_64 --enable-kvm -m 4096 -smp 8 -cdrom archlinux-corefreq.iso -cpu max,hv-runtime

CoreFreq_hv_runtime

cyring commented 3 years ago

Solution is argument:

-cpu max,hv-runtime