I have two kernels installed: linux-6.2.2-artix1-1 and linux-zen-6.2.2-zen1-1-zen along with headers. Same problem with both.
The error message I'm getting is :
$ sudo modprobe kvm
modprobe: ERROR: could not insert 'kvm': Unknown symbol in module, or unknown parameter (see dmesg)
$ dmesg | grep kvm
[ 3.074471] kvm: Unknown symbol irq_bypass_unregister_consumer (err -2)
[ 3.074539] kvm: Unknown symbol irq_bypass_register_consumer (err -2)
[ 3.090590] kvm: Unknown symbol irq_bypass_unregister_consumer (err -2)
[ 3.090654] kvm: Unknown symbol irq_bypass_register_consumer (err -2)
[ 61.445858] kvm: Unknown symbol irq_bypass_unregister_consumer (err -2)
[ 61.445915] kvm: Unknown symbol irq_bypass_register_consumer (err -2)
[ 108.491023] kvm: Unknown symbol irq_bypass_unregister_consumer (err -2)
[ 108.491082] kvm: Unknown symbol irq_bypass_register_consumer (err -2)
[ 1039.584121] kvm: Unknown symbol irq_bypass_unregister_consumer (err -2)
[ 1039.584179] kvm: Unknown symbol irq_bypass_register_consumer (err -2)
No problems loading any other need module:
$ lsmod
Module Size Used by
qrtr 57344 4
nct6775 28672 0
nct6775_core 86016 1 nct6775
hwmon_vid 16384 1 nct6775
vboxnetflt 40960 0
vboxnetadp 28672 0
vboxdrv 692224 2 vboxnetadp,vboxnetflt
snd_seq_dummy 16384 0
snd_seq_oss 73728 0
snd_seq_midi_event 16384 1 snd_seq_oss
snd_seq 114688 5 snd_seq_oss,snd_seq_midi_event,snd_seq_dummy
snd_seq_device 16384 2 snd_seq,snd_seq_oss
cuse 16384 0
fuse 217088 3 cuse
nvidia_drm 86016 9
nvidia_uvm 3100672 0
nvidia_modeset 1548288 15 nvidia_drm
pktcdvd 65536 0
nvidia 62230528 711 nvidia_uvm,nvidia_modeset
snd_hda_codec_realtek 212992 1
intel_rapl_msr 20480 0
intel_rapl_common 40960 1 intel_rapl_msr
edac_mce_amd 57344 0
snd_hda_codec_generic 122880 2 snd_hda_codec_realtek
snd_hda_intel 65536 6
eeepc_wmi 16384 0
crct10dif_pclmul 16384 1
snd_intel_dspcfg 36864 1 snd_hda_intel
asus_wmi 94208 1 eeepc_wmi
crc32_pclmul 16384 0
snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
polyval_clmulni 16384 0
ledtrig_audio 16384 2 snd_hda_codec_generic,asus_wmi
polyval_generic 16384 1 polyval_clmulni
snd_hda_codec 225280 3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
gf128mul 20480 1 polyval_generic
sparse_keymap 16384 1 asus_wmi
ghash_clmulni_intel 16384 0
platform_profile 16384 1 asus_wmi
snd_hda_core 143360 4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
sha512_ssse3 57344 0
rfkill 40960 1 asus_wmi
wmi_bmof 16384 0
mousedev 24576 0
r8169 135168 0
snd_hwdep 20480 1 snd_hda_codec
aesni_intel 405504 0
sg 53248 0
realtek 40960 1
snd_pcm 212992 4 snd_hda_intel,snd_hda_codec,snd_hda_core
crypto_simd 16384 1 aesni_intel
crypto_user 20480 0
cryptd 28672 2 crypto_simd,ghash_clmulni_intel
snd_timer 57344 3 snd_seq,snd_pcm
mdio_devres 16384 1 r8169
rapl 20480 0
sp5100_tco 20480 0
snd 159744 20 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_seq_oss,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
libphy 204800 3 r8169,mdio_devres,realtek
i2c_piix4 36864 0
zenpower 16384 0
video 73728 2 asus_wmi,nvidia_modeset
soundcore 16384 1 snd
mac_hid 16384 0
wmi 45056 4 video,nct6775,asus_wmi,wmi_bmof
acpi_cpufreq 32768 0
ext4 1200128 1
crc32c_generic 16384 0
crc16 16384 1 ext4
mbcache 16384 1 ext4
jbd2 221184 1 ext4
hid_logitech_hidpp 73728 0
hid_logitech_dj 40960 0
usbhid 90112 2 hid_logitech_dj,hid_logitech_hidpp
nvme 73728 1
nvme_core 245760 2 nvme
crc32c_intel 24576 2
sr_mod 28672 0
xhci_pci 24576 0
cdrom 86016 2 pktcdvd,sr_mod
nvme_common 24576 1 nvme_core
xhci_pci_renesas 24576 1 xhci_pci
Exact same result when trying to modprobe kvm_amd.
I also have VirtualBox installed and it works just fine but the all of the modules for it are built via DKMS. (Including Nvidia)
Just can't figure this one out. If anyone has a clue on how to fix this I'd be very thankful. If you need any more info please let me know.
My system is a Ryzen 3800x, Asus tuf gaming x570, 64gigs of ram, Nvidia 1070 with 8megs of ram.
***ANSWER***
Finally figured it out. Some time in the past I had added an entry to "/etc/modprobe.d" blocking "irqbypass" which is needed by kvm. After removing it the module loaded just fine.
Thanks to all that help.