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] Trouble using update_va_mapping

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Trouble using update_va_mapping
From: Mathieu Ropert <mro@xxxxxxxxxx>
Date: Tue, 14 Feb 2006 14:28:14 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 14 Feb 2006 16:32:57 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <98973538f8321c2ea43f52a5231916ee@xxxxxxxxxxxx>
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>
References: <43F0AE97.7070302@xxxxxxxxxx> <98973538f8321c2ea43f52a5231916ee@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
Keir Fraser wrote:


On 13 Feb 2006, at 16:06, Mathieu Ropert wrote:

i'm trying to run a very simple domU kernel on Xen/x86_64, and i'm getting some trouble with update_va_mapping(): when trying to remap some page table entry, i find the virtual address still pointing to the same machine address after the return of the hypercall.


What machine page does 'cons' point at before update_va_mapping()? Is it definitely a different page?

 -- Keir

Done some more checks and found the bug: the virtual address i used was mis-aligned (missing a 0x in .align directive :)). How does update_va_mapping() should normally behave when given a non paged-aligned virtual address? From the code, i guess it just remap the page containing the given address (discarding the lower 12 bits). Is this intended?

Mathieu


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

<Prev in Thread] Current Thread [Next in Thread>