Skip to contentSkip to conversation

kvm: update document of gfns

PATCH In review Lai Jiangshan 2 participants 2 messages May 7, 2010 – May 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: update document of gfns

When don't use ->gfns when role.direct=1, update document for it.

---

Documentation/kvm/mmu.txt +3 -1
index da04671..aec19ae 100644
@@ -178,7 +178,9 @@ Shadow pages contain the following information:
     guest pages as leaves.
   gfns:
     An array of 512 guest frame numbers, one for each present pte.  Used to
-    perform a reverse map from a pte to a gfn.
+    perform a reverse map from a pte to a gfn. When role.direct is set, any
+    element of this array can be calculated from the gfn field when used, in
+    this case, the array of gfns is not allocated. See role.direct and gfn.
   slot_bitmap:
     A bitmap containing one bit per memory slot.  If the page contains a pte
     mapping a page from memory slot n, then bit n of slot_bitmap will be set
#1 lore raw
Quoted 3 lines · Lai Jiangshan

When don't use ->gfns when role.direct=1, update document for it.

Please fold into the patch that does the change.

Signature · 1 line
error compiling committee.c: too many arguments to function