Memory management notifiers
Posted Jan 25, 2008 20:11 UTC (Fri) by giraffedata
In reply to: Memory management notifiers
Parent article: Memory management notifiers
This would only benefit guest kernels that have been modified to take avantage of it, right?
I think that's obvious in, "The interested code then registers its notifier with:"
But what the article doesn't say is why a guest kernel would be interested. It says that because the guest kernel can't know when the host has invalidated a page, the host must never invalidate a page (i.e. keep the memory pinned). I guess I don't know how KVM works, but I've worked with virtual machines that don't have this issue.
That swapped out page should still be virtually resident. The guest's page table says so, and, consistent with that, when the guest does a load from its virtual address, the instruction completes without the guest seeing any page fault (because the host takes a page fault, reads the data in, and updates the real page table).
to post comments)