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] Recursion in cpu_physical_memory_rw

To: "Herbert Xu" <herbert@xxxxxxxxxxxxxxxxxxx>, <qemu-devel@xxxxxxxxxx>, "Xen Development Mailing List" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Recursion in cpu_physical_memory_rw
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Wed, 15 Nov 2006 08:50:42 +0800
Delivery-date: Tue, 14 Nov 2006 16:51:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccIT10PKs3oZEsZRR+qQklQPNQzkAAAHoGQ
Thread-topic: [Xen-devel] Recursion in cpu_physical_memory_rw
>
>A number of qemu driver backends (such as rtl8139) call the function
>cpu_physical_memory_rw to read/write guest memory.  The target guest
>memory address is often supplied by the guest.  This opens up the
>possibility of a guest giving an address which happens to be an MMIO
>address which can potentially lead to infinite recursion involving
>cpu_physical_memory_rw.
>
>Since these driver backends really only need to access system memory,
>we could simply provide a new access interface that does not allow
>MMIO addresses.
>
>Any comments on this problem?
>

The interface called paddr_is_ram should help.
-Xin

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