diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-01 13:53:31 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 09:05:39 (GMT) |
commit | 0028425f647b6b78a0de8810d6b782fc3ce6c272 (patch) | |
tree | 8afece215ec531f993c28cc3dee17b0c2c1dd3b1 /drivers/kvm/kvm.h | |
parent | fce0657ff9f14f6b1f147b5fcd6db2f54c06424e (diff) | |
download | linux-0028425f647b6b78a0de8810d6b782fc3ce6c272.tar.xz |
KVM: Update shadow pte on write to guest pte
A typical demand page/copy on write pattern is:
- page fault on vaddr
- kvm propagates fault to guest
- guest handles fault, updates pte
- kvm traps write, clears shadow pte, resumes guest
- guest returns to userspace, re-faults on same vaddr
- kvm installs shadow pte, resumes guest
- guest continues
So, three vmexits for a single guest page fault. But if instead of clearing
the page table entry, we update to correspond to the value that the guest
has just written, we eliminate the third vmexit.
This patch does exactly that, reducing kbuild time by about 10%.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
0 files changed, 0 insertions, 0 deletions