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] Setting page type for GDT page

To: Trammell Hudson <hudson@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Setting page type for GDT page
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 31 Aug 2007 17:21:25 +0100
Delivery-date: Fri, 31 Aug 2007 09:22:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070831161538.GA25713@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/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: Acfr6vnZOGhmilfeEdySawAX8io7RQ==
Thread-topic: [Xen-devel] Setting page type for GDT page
User-agent: Microsoft-Entourage/11.3.6.070618
The type code disagrees with you. There's still a writable mapping lurking
somewhere. Perhaps not in the page tables you are running on, though. What
do you do with the page tables that the domain builder provides you?

 -- Keir

On 31/8/07 17:15, "Trammell Hudson" <hudson@xxxxxxxxxxxxxx> wrote:

> I'm trying to install my own GDT in a lightweight kernel domU
> and am receiving an error from HYPERVISOR_set_gdt() that my page
> does not have the expected type.  I've made sure that the page is
> mapped read-only and walked the active page tables to check for
> any writable mappings.  There are two mappings of page 0x2abcd,
> both with only the present and user bits set:
> 
> load_gdt_xen:313: Setting GDT page 0000006000524000 read-only
> Mappings of 0000006000524000 (page 000000002abcd000):
> PML1 0x6000024000[124] = 001000002abcd005 (va=0000000000524000 000 000 002
> 124)
> PML1 0x6000024000[124] = 001000002abcd005 (va=0000006000524000 000 180 002
> 124)
> load_gdt_xen:318: Setting GDT 0x6000524000 => 000000000002abcd (12 entries)
> (XEN) mm.c:1664:d10 Bad type (saw 00000000e8000001 != exp 00000000a0000000)
> for mfn 2abcd (pfn 524)
> load_gdt_xen:322: Unable to set GDT!  rc=-22



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

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