From: weiming Subject: Is it possible to change a guest domain's page table in Dom0's user space? Date: Thu, 20 Mar 2008 14:58:47 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1959980077==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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 --===============1959980077== Content-Type: multipart/alternative; boundary="----=_Part_4147_6592336.1206039528014" ------=_Part_4147_6592336.1206039528014 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm doing some experiments under x86_64 PV domains. I want to change a page table of some process in a guest domain. And for easier programming, I want to do this in dom0 via libxc. Now I can get the guest's kernel structs (like init_task, init_mm) via xc_map_foreign_range with R/W permissions. However, when I try to map the page table directory, I can only use "PROT_READ", otherwise, it gives a "Bad address" error. Why? any suggestions? Thanks, Weiming ------=_Part_4147_6592336.1206039528014 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I'm doing some experiments under x86_64 PV domains.

I want to change a page table of some process in a guest domain.
And for easier programming, I want to do this in dom0 via libxc.

Now I can get the guest's kernel structs (like init_task, init_mm) via xc_map_foreign_range with R/W permissions. However, when I try to map the page table directory, I can only use "PROT_READ", otherwise, it gives a "Bad address" error. Why?

any suggestions?

Thanks,
Weiming
------=_Part_4147_6592336.1206039528014-- --===============1959980077== 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 --===============1959980077==--