This submission is a follow-up of the discussion (RFC) that was happening at:
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/ADJ4AVPTU3YB7BEXJ6TWTCYGDLOPGGBK/
On x86, libvirt makes use of the API exposed by the msr kernel module to read
the MSR (Model Specific Registers) values. On some Linux distros, this module
is not loaded by default so libvirt might fail to read the MSR values and falls
back to /dev/kvm to obtain these values. KVM might be behind in term of exposing
all the values of the MSRs so using /dev/kvm is not ideal.
This submission tries to make libvirt deploy the modules-load.d configuration
so that linux loads the msr module at next boot.
One caveat, libvirt installs only the file and does not trigger the load that
is only done at next reboot, it is up to each distro to trigger immediately
the load of the module without a reboot.
Hector Cao (1):
x86: install modules-load.d file to load msr module
meson_options.txt | 1 +
src/util/meson.build | 17 +++++++++++++++++
src/util/modules-load.d/msr.conf | 1 +
tools/virt-host-validate-qemu.c | 7 +++++++
4 files changed, 26 insertions(+)
create mode 100644 src/util/modules-load.d/msr.conf
--
2.45.2