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-ia64-devel

[Xen-ia64-devel] Re: copying data to guest

To: Jes Sorensen <jes@xxxxxxx>
Subject: [Xen-ia64-devel] Re: copying data to guest
From: tgingold@xxxxxxx
Date: Fri, 02 Mar 2007 18:30:09 +0100
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Mar 2007 09:29:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45E83886.3010204@xxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <45E82D33.1070501@xxxxxxx> <1172845931.45e8356b25ff6@xxxxxxxxxxx> <45E83886.3010204@xxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 3.2.5
Quoting Jes Sorensen <jes@xxxxxxx>:

> tgingold@xxxxxxx wrote:
> > The basic answer is you can't do that reliably.
> >
> > I don't have Xen code under my hand now, but there are a few examples in
> such
> > direct write for some PAL calls and some EFI calls.
> >
> > But they may fail: the TLB may not have the entry and there is currently no
> > way to recover from such a miss.
> >
> > The correct way is to use a xencomm descriptor.  Of course, this requires
> some
> > modification in kernel code but much safer.
>
> Hi Tristan,
>
> I just don't follow this, if this is the case then we have a major
> problem. There are multiple SAL calls that are defined to take a kernel
> virtual address to receive a result or provide input data to the call.
> We need to be able to do this for domU's if we want to provide full
> virtualization so it's not really something we can avoid.
IMHO, the current implementation is slightly broken (ie not reliable).

> Given that Xen uses a 1:1 mapping for all physical memory, we ought to
> be able to simply take the virtual kernel address from the SAL call,
> which we should be able to reliably convert to a metaphysical address
> by walking the page tables,
We can't walk page tables on ia64!

> or in the case of Linux, we know it uses a
> 1:1 mapping, then convert the metaphysical address to a physical address
> and access that via the 1:1 mapping?
*IMHO* Xen shouldn't be aware of linux 1:1 mapping.  Modules are not in the
1:1 mapping area too.

> Or am I missing something here?
Although this should work, it is currently not reliable.  I think this issue
must be fully discussed.

Tristan.

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