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] how to tell if a DomU (HVM) touches a specific address

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] how to tell if a DomU (HVM) touches a specific address
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sun, 21 Jun 2009 12:19:01 +0100
Cc:
Delivery-date: Sun, 21 Jun 2009 04:19:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DD874@trantor>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acnxoi/436h/xiRTRvOpbmxuVtQm+QApQkOaAAOQmUAAAyYa5A==
Thread-topic: [Xen-devel] how to tell if a DomU (HVM) touches a specific address
User-agent: Microsoft-Entourage/12.19.0.090515
On 21/06/2009 10:49, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

>> Is the physical address RAM? If there is no physical page at that
> address
>> then accesses in that range will trap to qemu and you could pick them
> up
>> there.
>> 
> 
> What's the best place to do that? I've had a little look and can't find
> where the trap would 'come in'.

cpu_physical_memory_rw() is qemu's main interface to readign and writing
physical memory regions. Everything (RAM accesses, MMIO accesses, and also
accesses which go to nowhere) go through that, so hooking there would be
sensible.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel