Avi Kivity wrote:
> Eddie, can you review the attached patch?  It improves on your efer
> reload patch by avoiding a reload even if EFER.SCE is different in the
> guest and host, in some scenarios.
> 
Avi:
        Good optimization! It should be safe since SYSCALL/SYSRET will check 
following condition which will always leads to #UD in 32 bits guest no matter 
SCE is set or not.

IF (CS.L ≠ 1 ) or (IA32_EFER.LMA ≠ 1) or (IA32_EFER.SCE ≠ 1)
(* Not in 64-Bit Mode or SYSCALL/SYSRET not enabled in IA32_EFER *)
THEN #UD; FI;


thanks, eddie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to