How to check default kvm mmu on a linux kernel?

454 Views Asked by At

I have found that kvm changed tdp_mmu to enabled by default https://lore.kernel.org/lkml/[email protected]/

How can I check if my kernel has this parameter enabled?

Can I reconfigure that on a running centos or ubuntu ?

1

There are 1 best solutions below

0
mounir boukhalfa On BEST ANSWER

Check:

cat /sys/module/kvm/parameters/tdp_mmu
Y : enabled
N : disabled

Reconfig:

sudo modprobe -r kvm_intel
sudo modprobe -r kvm
sudo modprobe kvm tdp_mmu=[Value] # 1 to enable or 0 to disable
sudo modprobe  kvm
sudo modprobe kvm_intel