direct-io.hg

changeset 10309:5a0ed6c47673

[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
emulation to match native behaviour.
Signed-off-by: Jan Beulich <jbeulich@novel..com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jun 09 14:29:00 2006 +0100 (2006-06-09)
parents 49f65e2b0f1c
children 4df81d20a9a1
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Fri Jun 09 14:25:46 2006 +0100
     1.2 +++ b/xen/arch/x86/traps.c	Fri Jun 09 14:29:00 2006 +0100
     1.3 @@ -748,7 +748,8 @@ static inline int guest_io_okay(
     1.4  #define TOGGLE_MODE() ((void)0)
     1.5  #endif
     1.6  
     1.7 -    if ( v->arch.iopl >= (guest_kernel_mode(v, regs) ? 1 : 3) )
     1.8 +    if ( !vm86_mode(regs) &&
     1.9 +         (v->arch.iopl >= (guest_kernel_mode(v, regs) ? 1 : 3)) )
    1.10          return 1;
    1.11  
    1.12      if ( v->arch.iobmp_limit > (port + bytes) )