public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
To: cs-jerry** <jerry.wzy@qq.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: question about mmu.
Date: Mon, 30 Aug 2010 14:51:27 +0800	[thread overview]
Message-ID: <4C7B54EF.2040209@cn.fujitsu.com> (raw)
In-Reply-To: <tencent_1EE51FB412123519432A5833@qq.com>

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

      reply	other threads:[~2010-08-30  6:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30  6:07 question about mmu cs-jerry**
2010-08-30  6:51 ` Xiao Guangrong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C7B54EF.2040209@cn.fujitsu.com \
    --to=xiaoguangrong@cn.fujitsu.com \
    --cc=jerry.wzy@qq.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox