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] Page table updates

To: Lakshitha Harshan <harshan.dll@xxxxxxxxx>
Subject: Re: [Xen-devel] Page table updates
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Tue, 31 May 2011 10:47:29 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 31 May 2011 07:30:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTikj3gYKtjnvtZmUmyhddNwNr4Fhnw@xxxxxxxxxxxxxx>
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: <BANLkTikj3gYKtjnvtZmUmyhddNwNr4Fhnw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
Hi, 

At 13:22 +0530 on 30 May (1306761721), Lakshitha Harshan wrote:
> Is there a way to update the guest memory segment which points to
> kernel code segment of a guest from dom0?

You can change the guest's segment register contents using the
get/set_vcpucontext calls, but I suspect that's not what you want. 

> For example if i am running two Squeeze VMs (1,2) and if I want to
> change the mappings which points kernel_ code segment of second VM to
> kernel code segment of first VM, is there a way to alter memory
> addresses from dom0?

I don't think so - segmentation only turns virtual adresses into linear
addresses, and all the linear addresses in a given process are the same
regardless of what segment you accessed them through.  So to cause CS:
accesses to see different memory from DS: accesses I think you'd need to
emulate every instruction.

Cheers,

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>