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/vmx.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/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
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 = { | |||
4341 | 4341 | ||
4342 | .write_tsc_offset = vmx_write_tsc_offset, | 4342 | .write_tsc_offset = vmx_write_tsc_offset, |
4343 | .adjust_tsc_offset = vmx_adjust_tsc_offset, | 4343 | .adjust_tsc_offset = vmx_adjust_tsc_offset, |
4344 | |||
4345 | .set_tdp_cr3 = vmx_set_cr3, | ||
4344 | }; | 4346 | }; |
4345 | 4347 | ||
4346 | static int __init vmx_init(void) | 4348 | static int __init vmx_init(void) |