diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 11:30:41 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:30 -0400 |
commit | 1c97f0a04c74196880f22a563134c8f6d0b9d752 (patch) | |
tree | 060da15688879d0a50c4854f40980ac915f39663 /arch/x86/kvm/mmu.c | |
parent | f43addd46168110d572dcf69100cb215a4e9fd08 (diff) |
KVM: X86: Introduce a tdp_set_cr3 function
This patch introduces a special set_tdp_cr3 function pointer
in kvm_x86_ops which is only used for tpd enabled mmu
contexts. This allows to remove some hacks from svm code.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index c8acb9609ca4..a55f8d5a7985 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2714,7 +2714,7 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) | |||
2714 | context->shadow_root_level = kvm_x86_ops->get_tdp_level(); | 2714 | context->shadow_root_level = kvm_x86_ops->get_tdp_level(); |
2715 | context->root_hpa = INVALID_PAGE; | 2715 | context->root_hpa = INVALID_PAGE; |
2716 | context->direct_map = true; | 2716 | context->direct_map = true; |
2717 | context->set_cr3 = kvm_x86_ops->set_cr3; | 2717 | context->set_cr3 = kvm_x86_ops->set_tdp_cr3; |
2718 | 2718 | ||
2719 | if (!is_paging(vcpu)) { | 2719 | if (!is_paging(vcpu)) { |
2720 | context->gva_to_gpa = nonpaging_gva_to_gpa; | 2720 | context->gva_to_gpa = nonpaging_gva_to_gpa; |