Not able to compile KVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am using kernel version 4.14; and trying to compile KVM as kernel
modules, yet I saw following errors:

[kvm1 linux-4.14]$ make modules
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  Building modules, stage 2.
  MODPOST 24 modules
ERROR: "preempt_notifier_unregister" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "preempt_notifier_dec" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "user_return_notifier_register" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "preempt_notifier_register" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "preempt_notifier_inc" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "user_return_notifier_unregister" [arch/x86/kvm/kvm.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

It looks like these preempt_notifier related functions are used in
kvm_main.c, but the header files are not included in kvm_main.c, so I
manually included <linux/preempt.h> (the file in which declared these
functions), but still it doesn't work. Anyone seen this same problem
or any suggestions? Thanks!

Btw, CONFIG_PREEMPT_NOTIFIER is by default enabled:

[kvm1 linux-4.14]$ cat .config | grep PREEMPT_NOTIFIER
CONFIG_PREEMPT_NOTIFIERS=y

-Jidong



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux