KVM: vmx: compute need to reload FS/GS/LDT on demand
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 23 Jul 2018 19:32:46 +0000 (12:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:14 +0000 (17:59 +0200)
commite920de8507c6c8760c775cd718627e7cbf57c3b7
treefd891fb14e3044f643a168b8aa619de2651e71ae
parentfd1ec7723fbd560f924769b43cbdfe82dfd6a98e
KVM: vmx: compute need to reload FS/GS/LDT on demand

Remove fs_reload_needed and gs_ldt_reload_needed from host_state
and instead compute whether we need to reload various state at
the time we actually do the reload.  The state that is tracked
by the *_reload_needed variables is not any more volatile than
the trackers themselves.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c