Skip to contentSkip to conversation

confusion about kvm_mmu_pte_write

DISCUSSION cs-jerry** 2 participants 2 messages Aug 24, 2010 KVM

lore
Share & tools
lore

cs-jerry**

author
#0 lore raw

hello all,
i am reading kvm code and confused about the mmu_pte_write process,
when update a gpte, function kvm_mmu_pte_write is called , and walk the shadow page for it.why condition is :
if (sp->gfn != gfn || sp->role.direct || sp->role.invalid)
continue;
and not update those sp->gfn == gfn && sp->role.direct,what does it mean when role.direct is clear? thanks.

#1 lore raw
Quoted 7 lines · cs-jerry**

hello all,
i am reading kvm code and confused about the mmu_pte_write process,
when update a gpte, function kvm_mmu_pte_write is called , and walk the shadow page for it.why condition is :
if (sp->gfn != gfn || sp->role.direct || sp->role.invalid)

    continue;

and not update those sp->gfn == gfn&& sp->role.direct,what does it mean when role.direct is clear? thanks.N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¤¾h§¶›¡Ü¨}©ž²Æ zÚ&j:+v‰¨¾«‘êçzZ+€Ê+zf£¢·hšˆ§~†­†Ûiÿûàz¹®w¥¢¸?™¨è­Ú&¢)ߢfl===

Please fix you mail client not to send corrupted emails. Also, read Documentation/kvm/mmu.txt.

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