public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] i386: remove IOPL check on task switch
@ 2006-11-03  6:27 Chuck Ebbert
  2006-11-03 18:06 ` Zachary Amsden
  0 siblings, 1 reply; 10+ messages in thread
From: Chuck Ebbert @ 2006-11-03  6:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, Andrew Morton, Zachary Amsden, Andi Kleen

IOPL is implicitly saved and restored on task switch,
so explicit check is no longer needed.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

--- 2.6.19-rc4-32smp.orig/arch/i386/kernel/process.c
+++ 2.6.19-rc4-32smp/arch/i386/kernel/process.c
@@ -681,12 +681,6 @@ struct task_struct fastcall * __switch_t
 		loadsegment(gs, next->gs);
 
 	/*
-	 * Restore IOPL if needed.
-	 */
-	if (unlikely(prev->iopl != next->iopl))
-		set_iopl_mask(next->iopl);
-
-	/*
 	 * Now maybe handle debug registers and/or IO bitmaps
 	 */
 	if (unlikely((task_thread_info(next_p)->flags & _TIF_WORK_CTXSW)
-- 
Chuck
"Even supernovas have their duller moments."

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [patch] i386: remove IOPL check on task switch
@ 2006-11-03 23:57 Chuck Ebbert
  2006-11-04 19:19 ` Zachary Amsden
  0 siblings, 1 reply; 10+ messages in thread
From: Chuck Ebbert @ 2006-11-03 23:57 UTC (permalink / raw)
  To: Zachary Amsden; +Cc: Andi Kleen, Andrew Morton, Linus Torvalds, linux-kernel

In-Reply-To: <454B850C.3050402@vmware.com>

On Fri, 03 Nov 2006 10:06:04 -0800, Zachary Amsden wrote:

> Chuck Ebbert wrote:
> > IOPL is implicitly saved and restored on task switch,
> > so explicit check is no longer needed.
> 
> Nack.  This is used for paravirt-ops kernels that use IOPL'd userspace.  

How does that work?  In the stock kernel, anything done by
the call to set_iopl_mask() (that was removed by the patch)
will be nullified by the 'popfl' at the end of the switch_to()
macro.

-- 
Chuck
"Even supernovas have their duller moments."

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [patch] i386: remove IOPL check on task switch
@ 2006-11-04  0:00 Chuck Ebbert
  0 siblings, 0 replies; 10+ messages in thread
From: Chuck Ebbert @ 2006-11-04  0:00 UTC (permalink / raw)
  To: Zachary Amsden; +Cc: Andi Kleen, Andrew Morton, Linus Torvalds, linux-kernel

In-Reply-To: <454B850C.3050402@vmware.com>

On Fri, 03 Nov 2006 10:06:04 -0800, Zachary Amsden wrote:

> Chuck Ebbert wrote:
> > IOPL is implicitly saved and restored on task switch,
> > so explicit check is no longer needed.
> 
> Nack.  This is used for paravirt-ops kernels that use IOPL'd userspace.  

How does that work?  In the stock kernel, anything done by
the call to set_iopl_mask() (that was removed by the patch)
will be nullified by the 'popfl' at the end of the switch_to()
macro.

-- 
Chuck
"Even supernovas have their duller moments."

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-04 20:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03  6:27 [patch] i386: remove IOPL check on task switch Chuck Ebbert
2006-11-03 18:06 ` Zachary Amsden
2006-11-03 18:41   ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2006-11-03 23:57 Chuck Ebbert
2006-11-04 19:19 ` Zachary Amsden
2006-11-04 19:39   ` Zachary Amsden
2006-11-04 19:52     ` Linus Torvalds
2006-11-04 20:09       ` Zachary Amsden
2006-11-04 20:02     ` Andi Kleen
2006-11-04  0:00 Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox