WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEN] IOPL is ignored for VM86 mode port

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Jun 2006 16:50:15 +0000
Delivery-date: Fri, 09 Jun 2006 09:52:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 5a0ed6c476732da229c3307ea5357cdd196e5462
# Parent  49f65e2b0f1c5b96326c764808e819af85e883d7
[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
emulation to match native behaviour.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/traps.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 49f65e2b0f1c -r 5a0ed6c47673 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Fri Jun 09 14:25:46 2006 +0100
+++ b/xen/arch/x86/traps.c      Fri Jun 09 14:29:00 2006 +0100
@@ -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) )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen, Xen patchbot-unstable <=