From: "Jan Beulich" Subject: [PATCH] IOPL must be ignored for VM86 mode port I/O emulation Date: Fri, 09 Jun 2006 12:12:37 +0200 Message-ID: <448965B5.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part694CA985.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part694CA985.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Instead, to follow hardware behavior, the I/O permission bitmap must always be consulted. Signed-off-by: Jan Beulich --=__Part694CA985.0__= Content-Type: text/plain; name="xen-vm86-ignore-iopl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-vm86-ignore-iopl.patch" --- 2006-06-06/xen/arch/x86/traps.c.0 2006-06-07 09:10:45.000000000 +0200 +++ 2006-06-06/xen/arch/x86/traps.c 2006-06-09 08:35:49.000000000 +0200 @@ -748,7 +748,8 @@ static inline int guest_io_okay( #define TOGGLE_MODE() ((void)0) #endif - if ( v->arch.iopl >= (guest_kernel_mode(v, regs) ? 1 : 3) ) + if ( !vm86_mode(regs) && + v->arch.iopl >= (guest_kernel_mode(v, regs) ? 1 : 3) ) return 1; if ( v->arch.iobmp_limit > (port + bytes) ) --=__Part694CA985.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part694CA985.0__=--