From: "Tim Wood" Subject: Re: set_gdt failing in translated mode Date: Mon, 11 Dec 2006 15:12:35 -0500 Message-ID: <9c92ada10612111212p19e8115drffe0fdcc03666f66@mail.gmail.com> References: <9c92ada10612101703i3ef9ec6eg3dd7609538654934@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xen Devel List-Id: xen-devel@lists.xenproject.org On 12/11/06, Keir Fraser wrote: > On 11/12/06 01:03, "Tim Wood" 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