qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] SMI handler should set the CPL to zero and save


From: Kevin O'Connor
Subject: Re: [Qemu-devel] [PATCH] SMI handler should set the CPL to zero and save and restore it on rsm.
Date: Sun, 27 Apr 2014 13:45:24 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Apr 27, 2014 at 08:10:39AM +0200, Paolo Bonzini wrote:
> Il 26/04/2014 21:36, Kevin O'Connor ha scritto:
> >Yes, I was thinking of something like that as well.  If QEMU
> >internally observes the formula above, then something like the patch
> >below should work instead of my original patch.
> >
> >However, I'm not an expert on QEMU TCG and the patch below would
> >require much more testing.
> 
> Yeah, the patch is obviously more complex.  On the other hand as you
> point out the code to set hflags was already relying on correct
> eflags as a precondition.

Looking at this a little closer, I don't see any code generation that
depends on the cpl in hflags.  So, maybe another way to fix the root
problem is to just remove cpl from hflags and change all the code that
needs the cpl to call a function which calculates it..

-Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]