From: Keir Fraser Subject: Re: Problem setting up a custom GDT Date: Fri, 9 Jun 2006 12:10:31 +0100 Message-ID: References: <8764jalhgb.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8764jalhgb.wl%simon.kagstrom@bth.se> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Kagstrom Cc: xen-devel list List-Id: xen-devel@lists.xenproject.org On 9 Jun 2006, at 12:03, Simon Kagstrom wrote: > (The GDT Is just copied from Linux' right now). When doing this, I > always get -EINVAL from set_gdt, which I suspect is because > HYPERVISOR_update_va_mapping for some reason does not succeed in > setting the page read-only. > > I've checked the Linux implementation, and it does basically the same > thing (pte_wrprotect() on the machine-address before calling > update_va_mapping). Does anyone see what is wrong here? Is your GDT page-aligned and -padded. -- Keir