On Tue, Dec 17, 2019 at 04:30:05PM -0800, Sean Christopherson wrote: > On Thu, Dec 12, 2019 at 09:04:24AM +0800, Yang Weijiang wrote: > > On Wed, Dec 11, 2019 at 08:35:10AM -0800, Sean Christopherson wrote: > > > Have you tested SMM at all? The interaction between CR0 and CR4 may be > > > problematic for em_rsm() and/or rsm_enter_protected_mode(). > > > > > Not yet, what's an easy way to test code in SMM mode? > > IIRC, SeaBIOS does SMM stuff by default. Thanks Sean. I'll check this part.