On Tue, 08 Apr 2008 07:14:13 -0500
Anthony Liguori <[EMAIL PROTECTED]> wrote:

> Guillaume Thouvenin wrote:
> > On Mon, 07 Apr 2008 11:05:06 -0500
> > Anthony Liguori <[EMAIL PROTECTED]> wrote:
> >
> >   
> >> Perhaps a viable way to fix this upstream would be to catch the vmentry 
> >> failure, look to see if SS.CPL != CS.CPL, and if so, invoke 
> >> x86_emulate() in a loop until SS.CPL == CS.CPL.
> >>     
> >
> > I tried this solution some time ago but unfortunately x86_emulate()
> > failed. I suspected a problem with guest EIP that could different
> > between the vmentry catch and the emulation. I will rebase my patch and
> > post them on the mailing list.
> >   
> 
> x86 emulate is missing support for jmp far which is used to switch into 
> protected mode.  It just needs to be added.

Ok I see. I understand now why you said in a previous email that KVM
needs to have a proper load_seg() function like the Xen's x86_emulate.
This function is used to load the segment in a far jmp. I will look how
it is done in Xen and I will try to copy the stuff like you did.

Regards,
Guillaume

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to