From: "zhujun" Subject: Question about Dom0 page table operations Date: Wed, 15 Jul 2009 23:50:02 +0800 Message-ID: <003701ca0563$eb02c950$c1085bf0$@pku.edu.cn> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0710409465==" Return-path: Content-Language: zh-cn List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org UbJGR;7b MIME 8qJ=5D6`2?7VSJ<~!# --===============0710409465== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01CA05A6.F9260950" Content-Language: zh-cn UbJGR;7b MIME 8qJ=5D6`2?7VSJ<~!# ------=_NextPart_000_0038_01CA05A6.F9260950 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am writing a driver for Dom0 to access DomU's memory and encounter a problem to operate dom0's page table. In my implementation, I have a pmd entry, which points to a L1 page table(A). Then this L1 page table(A)'s address is kept, and the same pmd points to another L1 page table(B) using set_pmd. But, when I use the former L1 page table(A) again using set_pmd, my code does not work! Also I know xen puts the former L1 page table'e type when the new L1 page table(B) was set. Any other considerations? How can I operate Dom 0's process page table correctly? zhujun ------=_NextPart_000_0038_01CA05A6.F9260950 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

         I am writing a driver for Dom0 to access DomU’s memory and encounter = a problem to operate dom0’s page table. In my implementation, I have = a pmd entry, which points to a L1 page table(A). Then this L1 page = table(A)’s address is kept, and the same pmd points to another L1 page table(B) = using set_pmd. But, when I use the former L1 page table(A) again using = set_pmd, my code does not work! Also I know xen puts the former L1 page table’e = type when the new L1 page table(B) was set. Any other considerations? How can I = operate Dom 0’s process page table correctly?

 

zhujun

 

------=_NextPart_000_0038_01CA05A6.F9260950-- --===============0710409465== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0710409465==--