diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 17:30:41 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:30 +0200 |
commit | 1c97f0a04c74196880f22a563134c8f6d0b9d752 (patch) | |
tree | 060da15688879d0a50c4854f40980ac915f39663 /arch/x86/include | |
parent | f43addd46168110d572dcf69100cb215a4e9fd08 (diff) | |
download | linux-1c97f0a04c74196880f22a563134c8f6d0b9d752.tar.gz linux-1c97f0a04c74196880f22a563134c8f6d0b9d752.tar.bz2 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/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 53cedede88fa..81a51473f745 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -526,6 +526,8 @@ struct kvm_x86_ops { bool (*rdtscp_supported)(void); void (*adjust_tsc_offset)(struct kvm_vcpu *vcpu, s64 adjustment); + void (*set_tdp_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); + void (*set_supported_cpuid)(u32 func, struct kvm_cpuid_entry2 *entry); bool (*has_wbinvd_exit)(void); |