diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-10-02 16:56:14 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-01-08 22:48:02 +0100 |
commit | ad896af0b50ed656e38a31fca1fdb7bb7533db45 (patch) | |
tree | a633dad0d81ed0707fae701975845599beaa3d2b /arch/x86/kvm/svm.c | |
parent | e0c6db3e22f564d91832547a2432ab00f215108e (diff) | |
download | linux-stable-ad896af0b50ed656e38a31fca1fdb7bb7533db45.tar.gz linux-stable-ad896af0b50ed656e38a31fca1fdb7bb7533db45.tar.bz2 linux-stable-ad896af0b50ed656e38a31fca1fdb7bb7533db45.zip |
KVM: x86: mmu: remove argument to kvm_init_shadow_mmu and kvm_init_shadow_ept_mmu
The initialization function in mmu.c can always use walk_mmu, which
is known to be vcpu->arch.mmu. Only init_kvm_nested_mmu is used to
initialize vcpu->arch.nested_mmu.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 41dd0387cccb..a17d848c6d42 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -2003,8 +2003,8 @@ static void nested_svm_inject_npf_exit(struct kvm_vcpu *vcpu, static void nested_svm_init_mmu_context(struct kvm_vcpu *vcpu) { - kvm_init_shadow_mmu(vcpu, &vcpu->arch.mmu); - + WARN_ON(mmu_is_nested(vcpu)); + kvm_init_shadow_mmu(vcpu); vcpu->arch.mmu.set_cr3 = nested_svm_set_tdp_cr3; vcpu->arch.mmu.get_cr3 = nested_svm_get_tdp_cr3; vcpu->arch.mmu.get_pdptr = nested_svm_get_tdp_pdptr; |