i386: hvf: Make long mode enter and exit clearer
authorCameron Esfahani <dirty@apple.com>
Tue, 30 Jun 2020 10:28:20 +0000 (13:28 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 22:02:18 +0000 (18:02 -0400)
commita4e26fa8583a215aa61107a623bfa25afd09a860
treee76f064640c74032d7393deb0aced50ccae25c77
parent5536c98e449fe832c6cb59612baf0f2936fb436d
i386: hvf: Make long mode enter and exit clearer

Intel SDM "9.8.5 Initializing IA-32e Mode" and "9.8.5.4 Switching Out of
IA-32e Mode Operation" define activation and deactivation of long mode
only upon a change of CR0.PG but current code invokes exit_long_mode()
unconditionally until LME is cleared.

Signed-off-by: Cameron Esfahani <dirty@apple.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200630102824.77604-6-r.bolshakov@yadro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/vmx.h