[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.0-testing] [XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID d83290c8ad8dd56e445dc085d185f8c8f8975860 # Parent 25a84ad211ddb8206e3c36f238e7592d70460cfd [XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen emulation to match native behaviour. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> xen-unstable changeset: 10309:5a0ed6c476732da229c3307ea5357cdd196e5462 xen-unstable date: Fri Jun 9 14:29:00 2006 +0100 --- xen/arch/x86/traps.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 25a84ad211dd -r d83290c8ad8d xen/arch/x86/traps.c --- a/xen/arch/x86/traps.c Thu Jun 08 16:52:34 2006 +0100 +++ b/xen/arch/x86/traps.c Fri Jun 09 14:50:44 2006 +0100 @@ -745,7 +745,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 |