summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorJoerg Roedel2010-09-10 17:30:41 +0200
committerAvi Kivity2010-10-24 10:52:30 +0200
commit1c97f0a04c74196880f22a563134c8f6d0b9d752 (patch)
tree060da15688879d0a50c4854f40980ac915f39663 /arch/x86/kvm/vmx.c
parentKVM: MMU: Make set_cr3 a function pointer in kvm_mmu (diff)
downloadkernel-qcow2-linux-1c97f0a04c74196880f22a563134c8f6d0b9d752.tar.gz
kernel-qcow2-linux-1c97f0a04c74196880f22a563134c8f6d0b9d752.tar.xz
kernel-qcow2-linux-1c97f0a04c74196880f22a563134c8f6d0b9d752.zip
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/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 275a81d571cf..ff7a8d48fd24 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -4341,6 +4341,8 @@ static struct kvm_x86_ops vmx_x86_ops = {
.write_tsc_offset = vmx_write_tsc_offset,
.adjust_tsc_offset = vmx_adjust_tsc_offset,
+
+ .set_tdp_cr3 = vmx_set_cr3,
};
static int __init vmx_init(void)