diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-03-20 14:28:33 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-04-21 09:12:59 -0400 |
commit | be100ef136254ab4a3ff223e2288aae6c5809ac6 (patch) | |
tree | 7002c6433200a1f21aa6d54757b52d76613246e3 /virt/kvm | |
parent | be01e8e2c632c41c69bb30e7196661ec6e8fdc10 (diff) | |
download | linux-be100ef136254ab4a3ff223e2288aae6c5809ac6.tar.bz2 |
KVM: VMX: Clean cr3/pgd handling in vmx_load_mmu_pgd()
Rename @cr3 to @pgd in vmx_load_mmu_pgd() to reflect that it will be
loaded into vmcs.EPT_POINTER and not vmcs.GUEST_CR3 when EPT is enabled.
Similarly, load guest_cr3 with @pgd if and only if EPT is disabled.
This fixes one of the last, if not _the_ last, cases in KVM where a
variable that is not strictly a cr3 value uses "cr3" instead of "pgd".
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200320212833.3507-38-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions