]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6468086f14bb25b60a7843adcba9291a308629a
treefd891fb14e3044f643a168b8aa619de2651e71ae
parent4519cccf9ebdeaf634452cc72d836c29273e7fb0
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