From: "Jan Beulich" Subject: Re: [RFC][PATCH] Emulate instructions in vm86 mode Date: Mon, 11 Sep 2006 08:08:03 +0100 Message-ID: <45052773.76E4.0078.0@novell.com> References: <4501AFB90200007800021565@emea1-mh.id2.novell.com> <20060908193338.GA29097@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060908193338.GA29097@wavehammer.waldi.eu.org> 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: Bastian Blank Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Bastian Blank 08.09.06 21:33 >>> >On Fri, Sep 08, 2006 at 06:00:25PM +0100, Jan Beulich wrote: >> If the vm86 code isn't running with an i/o bitmap permitting access (which >> supposedly libint10 doesn't do), all i/o related faults should alread be >> reflected back to the guest, shouldn't they? If otoh there was permission >> granted from the kernel, then we shouldn't assume that code is prepared >> to deal with gp faults from respective port accesses. > >Yes, but it does weird things, so I think there is something broken. It would probably be good to first exactly understand what exactly is happening... >> However, the original patch would, if to be integrated, in my opinion need >> quite a bit of additional work - it should honor non-zero segment bases >> generally, and it should do proper limit checking for non-flat segments. > >Isn't this already done by copy_from_user? How can it, if it isn't being passed a segment limit (and generally, shouldn't)? Jan