On Wed, Sep 26, 2018 at 9:23 AM, Sean Christopherson <sean.j.christopherson@xxxxxxxxx> wrote: > Reset the vm_{entry,exit}_controls_shadow variables as well as the > segment cache after loading a new VMCS in vmx_switch_vmcs(). The > shadows/cache track VMCS data, i.e. they're stale every time we > switch to a new VMCS regardless of reason. > > This fixes a bug where stale control shadows would be consumed after > a nested VMExit due to a failed consistency check. > > Suggested-by: Jim Mattson <jmattson@xxxxxxxxxx> > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>