We intend to use KVM with libvmi for VM introspection. libvmi provide a patch to get this functionality with KVM.
I downloaded qemu-kvm-0.14.0/ and patch it respectively and them try to compile as following link.
But during make I am facing following errors.
../slirp/misc.o: In function `memset':
/usr/include/x86_64-linux-gnu/bits/string3.h:81: warning: memset used with constant zero length parameter; this could be due to transposed parameters
../qemu-timer.o: In function `dynticks_start_timer':
/home/aserg/qemu-kvm-0.14.0/qemu-timer.c:862: undefined reference to `timer_create'
../qemu-timer.o: In function `dynticks_rearm_timer':
/home/aserg/qemu-kvm-0.14.0/qemu-timer.c:901: undefined reference to `timer_gettime'
/home/aserg/qemu-kvm-0.14.0/qemu-timer.c:914: undefined reference to `timer_settime'
../qemu-timer.o: In function `dynticks_stop_timer':
/home/aserg/qemu-kvm-0.14.0/qemu-timer.c:880: undefined reference to `timer_delete'
ivshmem.o: In function `pci_ivshmem_init':
/home/aserg/qemu-kvm-0.14.0/hw/ivshmem.c:771: undefined reference to `shm_open'
/home/aserg/qemu-kvm-0.14.0/hw/ivshmem.c:778: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
make: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2
I tried to compile it without patch but issue is same qemu-timer.c is creating problems.
What issue can be.