WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] read-only pagetable entries

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] read-only pagetable entries
From: Srujan Kotikela <ksrujandas@xxxxxxxxx>
Date: Mon, 20 Jun 2011 07:33:02 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 20 Jun 2011 05:34:14 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hF5OHQ3zfa5y2aiMtOeRRzSSg/eNC002n9GkaKDwd8k=; b=tf4wX2QNeSf5wOp09g3Jes6xM/UT7FNsFEBYBWn4gVhQQYn0mJZXXy65jMu/YzkAPG WB15o1OATiezWi5kYFQyFzDWTcCPvGB3EQEe038Nx2F2Qw8g6Uw8Nl5hqAbgZJZblDtT 780pCz3XiJQJ/eOFQJ8A6EwIDioZgzynWYAKM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Fi2ZJIuGPHh199np9tJVJ/H2nIwI9jsSqY2Audf1tv35m6zxZZ7hQ3Pu7KiTfpDwce 3hIjXF1FeH7KlML3f5hVKzvBaqMhoqbEcogLqpix/t2650s29JepWQJUT2Ct3f6PQaOu EXNIVkBgEEed5fQ1n98V59iTzxBmZIuMzAir0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110620121034.GA9784@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTimY71LDc-fyeBjN+q=UFxeXR4Xmpg@xxxxxxxxxxxxxx> <20110620082737.GM17634@xxxxxxxxxxxxxxxxxxxxxxx> <BANLkTikEknW=eo9Wt0i41Bb-omTzv6jCBw@xxxxxxxxxxxxxx> <20110620121034.GA9784@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Sorry,

Clicked reply instead of reply-to-all.

--
Srujan D. Kotikela


On Mon, Jun 20, 2011 at 7:10 AM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
Hi,

Please don't take discussions off-list.  Cc'ing xen-devel again.

At 12:58 +0100 on 20 Jun (1308574721), Srujan Kotikela wrote:
> Hi,
>
> Thanks for the prompt reply. Can you tell me how to achieve the same
> in PV guests?

In PV guests you could try turning on shadow paging and enforcing the same
read-only idea (but PV guests don't have a p2m table so that will be
messy; you might be able to hook gmfn_to_mfn?).  Or you could update the
PV pagetable interface to require the guest to make the PTE read-only
(by hooking adjust_guest_l1e or similar).  That would have much better
performance but might need changes to the guest kernel to cope with its
PTEs being read-only.

> Also is there any standard/official documentation for
> Xen's memory management?

Not really, no.  The basic ideas are laid out in the original Xen papers
and in some of the Xen books that have been published but there's no
technical documentation for the code except what's in comments and HG
log entries.

Tim.

--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>