13.06.2021 01:49, stsp пишет:
I've found that the one needs to check KVM_CAP_SYNC_MMU to safely write to the guest memory, but it doesn't seem to be documented well.
In fact, I wonder if its description in the kernel doc is even correct: --- When the KVM_CAP_SYNC_MMU capability is available, changes in the backing of the memory region are automatically reflected into the guest. --- But, after looking into the patches that introduce that capability, I've got an impression that it is only needed if you mmap() something else to the guest-shared region.