From: "Stephen C. Tweedie" Subject: Re: [Patch] Fix for x86_64 boot failures due to bad segment setup for protected mode. Date: Thu, 09 Nov 2006 17:31:06 +0000 Message-ID: <1163093466.6555.61.camel@sisko.scot.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Wilfred Yu , Xiaohui Xin , "xen-devel@lists.xensource.com" , Herbert Xu , Susie Li , Steven Rostedt , "Li, Xin B" List-Id: xen-devel@lists.xenproject.org Hi, On Thu, 2006-11-09 at 14:08 +0000, Keir Fraser wrote: > A smaller patch might have been to implement those VMENTER sanity checks > inside load_seg(). I'm sure they're quite simple. I checked, as that was going to be my first approach. Turns out that they are not actually all that simple, with all sorts of different rules for base, size, access rights, type, flags and so on, dependent on which segment it is, whether it's 16 or 32-bit, etc. They aren't _too_ tricky, but after looking at it some, there are enough rules there that I was actually more worried about introducing a regression going down that route than in the patch I ended up with. Cheers, Stephen