[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |