diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2018-07-23 21:32:47 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-06 17:59:15 +0200 |
commit | d7ee039e2bab6341cdabf42d3036063cf91b40ea (patch) | |
tree | cc1ba01af2a759f6fdaba3fc9b6567dcd445e928 /arch/m68k | |
parent | KVM: vmx: compute need to reload FS/GS/LDT on demand (diff) | |
download | linux-d7ee039e2bab6341cdabf42d3036063cf91b40ea.tar.xz linux-d7ee039e2bab6341cdabf42d3036063cf91b40ea.zip |
KVM: vmx: move struct host_state usage to struct loaded_vmcs
Make host_state a property of a loaded_vmcs so that it can be
used as a cache of the VMCS fields, e.g. to lazily VMWRITE the
corresponding VMCS field. Treating host_state as a cache does
not work if it's not VMCS specific as the cache would become
incoherent when switching between vmcs01 and vmcs02.
Move vmcs_host_cr3 and vmcs_host_cr4 into host_state.
Explicitly zero out host_state when allocating a new VMCS for a
loaded_vmcs. Unlike the pre-existing vmcs_host_cr{3,4} usage,
the segment information is not guaranteed to be (re)initialized
when running a new nested VMCS, e.g. HOST_FS_BASE is not written
in vmx_set_constant_host_state().
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions