* question about mmu.
@ 2010-08-30 6:07 cs-jerry**
2010-08-30 6:51 ` Xiao Guangrong
0 siblings, 1 reply; 2+ messages in thread
From: cs-jerry** @ 2010-08-30 6:07 UTC (permalink / raw)
To: kvm
hi all,
if gpte in guest table was set write protection , the corresponding spte in shadow will set be write protection. so any operation in guest trying to
modify guest page will generate page fault to stop the opetation except on condition that the guest set wp bit in cr0. so my question is, how to make sure the guest is not able to modify specified page,considering the condition that wp bit in cr0 will be set to 0?
thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: question about mmu.
2010-08-30 6:07 question about mmu cs-jerry**
@ 2010-08-30 6:51 ` Xiao Guangrong
0 siblings, 0 replies; 2+ messages in thread
From: Xiao Guangrong @ 2010-08-30 6:51 UTC (permalink / raw)
To: cs-jerry**; +Cc: kvm
On 08/30/2010 02:07 PM, cs-jerry** wrote:
> hi all,
> if gpte in guest table was set write protection , the corresponding spte in shadow will set be write protection. so any operation in guest trying to
> modify guest page will generate page fault to stop the opetation except on condition that the guest set wp bit in cr0. so my question is, how to make sure the guest is not able to modify specified page,considering the condition that wp bit in cr0 will be set to 0?
> thanks.N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¤¾h§¶\x17›¡Ü¨}©ž²Æ zÚ&j:+v‰¨¾\a«‘êçzZ+€Ê+zf£¢·hšˆ§~††Ûiÿûàz¹\x1e®w¥¢¸?™¨èÚ&¢)ߢ^[fl===
See commit: e52d8d2d5dffbaee5176a0460f3e9883fb686ac0
1: if it's write #PF, we set spte.w but remove spte.u, then
2: if user access, if will cause read #PF, it will set spte.w = 0 and spte.u = 1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-30 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 6:07 question about mmu cs-jerry**
2010-08-30 6:51 ` Xiao Guangrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox