Skip to content

Commit fdaca56

Browse files
mzhang3579sean-jc
authored andcommitted
KVM: Documentation: Update the field name gfns and its description in kvm_mmu_page
Update the field 'gfns' in kvm_mmu_page to 'shadowed_translation' to be consistent with the code. Also update the corresponding 'gfns' in the comments. The more detailed description of 'shadowed_translation' is already inlined in the data structure definition, so no need to duplicate the text but simply just update the names. Signed-off-by: Mingwei Zhang <[email protected]> Reviewed-by: Kai Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent b207cfb commit fdaca56

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Documentation/virt/kvm/x86/mmu.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,14 @@ Shadow pages contain the following information:
221221
at __pa(sp2->spt). sp2 will point back at sp1 through parent_pte.
222222
The spt array forms a DAG structure with the shadow page as a node, and
223223
guest pages as leaves.
224-
gfns:
225-
An array of 512 guest frame numbers, one for each present pte. Used to
226-
perform a reverse map from a pte to a gfn. When role.direct is set, any
227-
element of this array can be calculated from the gfn field when used, in
228-
this case, the array of gfns is not allocated. See role.direct and gfn.
224+
shadowed_translation:
225+
An array of 512 shadow translation entries, one for each present pte. Used
226+
to perform a reverse map from a pte to a gfn as well as its access
227+
permission. When role.direct is set, the shadow_translation array is not
228+
allocated. This is because the gfn contained in any element of this array
229+
can be calculated from the gfn field when used. In addition, when
230+
role.direct is set, KVM does not track access permission for each of the
231+
gfn. See role.direct and gfn.
229232
root_count:
230233
A counter keeping track of how many hardware registers (guest cr3 or
231234
pdptrs) are now pointing at the page. While this counter is nonzero, the

0 commit comments

Comments
 (0)