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-users

Re: [Xen-users] "Bad type" when setting PML4 on x86_64

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] "Bad type" when setting PML4 on x86_64
From: Trammell Hudson <hudson@xxxxxxxxxxxxxx>
Date: Sun, 10 Jun 2007 15:27:24 -0400
Delivery-date: Sun, 10 Jun 2007 12:25:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200706062027.11702.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20070606114920.GD16548@xxxxxxxxxxxxxx> <200706062027.11702.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.10i
> > [...]  According to the interface
> > guide "a guest OS may always create readable mappings of its own
> > memory regardless of its current type", so it would seem that this
> > should be an acceptable situation for Xen.
> 
> Make sure that the page is not mapped writable in *any* validated pagetable.  
> I.e. on any pagetable you've pinned, even if it's not active, on the 
> pagetable you're switching to and possibly on the pagetable you're 
> switching /from/ too.

Ah, that seems to have been the secret!  I made an explicit call
to update_va_mapping() for the PML4 virtual address before setting
the CR3 and it now complains about the next page.

Thanks, Mark!

-- Trammell

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

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