public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* about memory protection.
@ 2010-07-25 15:07 吴忠远
  2010-07-25 19:43 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: 吴忠远 @ 2010-07-25 15:07 UTC (permalink / raw)
  To: kvm

i want to set some page of guest wrie protection so that the guest can
not write to this page any more . so i  set the corresponding page
write protection. but if guest modify cr0 to clear wp bit. what could
i do to avoid this ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: about memory protection.
  2010-07-25 15:07 about memory protection 吴忠远
@ 2010-07-25 19:43 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-07-25 19:43 UTC (permalink / raw)
  To: 吴忠远; +Cc: kvm

  On 07/25/2010 06:07 PM, 吴忠远 wrote:
> i want to set some page of guest wrie protection so that the guest can
> not write to this page any more . so i  set the corresponding page
> write protection. but if guest modify cr0 to clear wp bit. what could
> i do to avoid this ?

The host keeps cr0.wp=1 even if the guest clears it, so write protection 
from the host works.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-25 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-25 15:07 about memory protection 吴忠远
2010-07-25 19:43 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox