diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2013-06-19 05:09:23 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-06-27 07:20:46 -0400 |
commit | 2d49c47f350b939b395cd2d1abaa8c3bb6c54326 (patch) | |
tree | 15619136c7a2c5e80c205590fa829b23cfa238b6 /Documentation/virtual/kvm | |
parent | 67652ed34390b19ede6f847d23d8c68e2c819b50 (diff) |
KVM: MMU: document fast page fault
Document fast page fault to Documentation/virtual/kvm/mmu.txt
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/virtual/kvm')
-rw-r--r-- | Documentation/virtual/kvm/mmu.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/mmu.txt b/Documentation/virtual/kvm/mmu.txt index 0aa8e0e34119..42193f206602 100644 --- a/Documentation/virtual/kvm/mmu.txt +++ b/Documentation/virtual/kvm/mmu.txt | |||
@@ -277,6 +277,9 @@ Handling a page fault is performed as follows: | |||
277 | - walk shadow page table | 277 | - walk shadow page table |
278 | - cache the information to vcpu->arch.mmio_gva, vcpu->arch.access and | 278 | - cache the information to vcpu->arch.mmio_gva, vcpu->arch.access and |
279 | vcpu->arch.mmio_gfn, and call the emulator | 279 | vcpu->arch.mmio_gfn, and call the emulator |
280 | - If both P bit and R/W bit of error code are set, this could possibly | ||
281 | be handled as a "fast page fault" (fixed without taking the MMU lock). See | ||
282 | the description in Documentation/virtual/kvm/locking.txt. | ||
280 | - if needed, walk the guest page tables to determine the guest translation | 283 | - if needed, walk the guest page tables to determine the guest translation |
281 | (gva->gpa or ngpa->gpa) | 284 | (gva->gpa or ngpa->gpa) |
282 | - if permissions are insufficient, reflect the fault back to the guest | 285 | - if permissions are insufficient, reflect the fault back to the guest |