Closed andrelcmoreira closed 4 years ago
@carvalhudo this is an issue for https://github.com/libvmi/python repo. @tklengyel can you transfer it ?
You can try to enable Libvmi debug output:
cmake .. -DVMI_DEBUG=__VMI_DEBUG_ALL -DENV_DEBUG=ON
make
sudo make install
export LIBVMI_DEBUG=1
./my_python_script.py
Keep in mind that the new KVM driver is still experimental at this point.
Also, I just checked and there is no debug output in kvm_set_mem_access
function.
You will have to add some dbprint(VMI_DEBUG_KVM, 'xxx')
there to see whats' going on.
I hope this helps.
this commit fixed the problem, thanks for the help @Wenzel, closing the issue...
Hi guys, I've being done some work with libvmi to monitor userspace processes. I'm catching events properly, but I want to address the scenario where the monitored process terminates their execution. For that, in my callback I'm checking if the process exist and if it doesn't, I clear the event in order to stop to receive events. Here is the code of my callback:
I clear the event but I still receiving page fault events ad infinitum when the process is terminated. What I'm doing wrong?