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] set_gdt failing in translated mode

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] set_gdt failing in translated mode
From: "Tim Wood" <twwood@xxxxxxxxx>
Date: Mon, 11 Dec 2006 15:12:35 -0500
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Dec 2006 12:12:29 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UISKZ+6q2nkLS0GSpPUnpS6+r1CUzDBEXcIfaQPbzQNjIrRjwQYDpHkxkO84hs57ogNHkqBKerS8MjVoM9FH6DF34QnCEI4WBPxBZL3UOlVb0XJVG/fVz1Y5LWssj12u5o7WsGG3MxJDhJMkKsnUGprm4hsr4CVOBtqMJGt3g5c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1A2D86A.5D33%keir@xxxxxxxxxxxxx>
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: <9c92ada10612101703i3ef9ec6eg3dd7609538654934@xxxxxxxxxxxxxx> <C1A2D86A.5D33%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 12/11/06, Keir Fraser <keir@xxxxxxxxxxxxx> wrote:
On 11/12/06 01:03, "Tim Wood" <twwood@xxxxxxxxx> wrote:

> I'm working on save/restore for domains using translated shadow page
> tables.  I've added support so that page tables are not
> (un)canonicalized during save/restore, but when the new context is
> being loaded, the set_gdt call is failing.  Specifically, the
> get_page_and_type() call fails.

What's the error (try adding guest_loglvl=all as a Xen boot parameter)? Most
likely Xen thinks the GDT pages are already mapped writable. Or there could
be a PFN vs. MFN mixup.


In get_page_type, I am getting this error message:
Error while validating mfn 53be (pfn 1091) for type a0000000:
caf=80000002 taf=00000000

Digging down as deep as I can, the root error is in check_descriptor()
because [b & _SEGMENT_TYPE) != 0xc00] is true, so the call fails.  I'm
not 100% sure on the significance of that yet.

I see that alloc_segdesc_page is calling check_descriptor() multiple
times and that the first 30 iterations succeed.

any advice? --thanks in advance,
Tim

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