On 03/10/2017 17:29, HEBBAL Yacine wrote: > Do you have an idea why the value of an integer field I added at the > end of kvm_run (in kvm/include/linux/kvm.h & qemu/linux-headers/kvm.h) > is zeroed once KVM gives back control to Qemu after a VM exit ? Could it be that your field is placed after the end of the page? Paolo > >> There is no need for synchronization. kvm_run maps to exactly the same >> pages in QEMU and KVM. >> >> See Linux commit 460df4c1fc7c00829050c08d6368dc6e6beef307 for an example >> of adding a field to struct kvm_run. >> >> Paolo