[lkml]   [2009]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] do not keep interrupt window closed by sti in real mode
Glauber Costa wrote:
> I get the idea from the pseudocode in sti description.
> It says:
> IF PE = 0 (* Executing in real-address mode *)
> IF <- 1; (* Set Interrupt Flag *)
> ELSE (* Executing in protected mode or virtual-8086 mode *)
> There is no mention to any other activity besides setting the if flag.

But the same is true for the protected mode side of the instruction

> Also, sti is used extensively in many places like the linux kernel for the
> guest, and it works just fine in kvm. So I was led to believe that real mode
> in fact behaving differently.

The difference is that at least under current Intel VT, VT only handles
protected mode -- the real mode runs purely in the interpreter.

> I'll take a look at avi's suggestion.


 \ /
  Last update: 2009-04-08 18:17    [W:0.076 / U:3.748 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site