aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-10-22 12:18:16 -0400
committerAvi Kivity <avi@redhat.com>2011-01-12 04:23:38 -0500
commit982c25658c066fbbeb42e44a6a8fcd59ae008837 (patch)
tree127d24aa075cb94ad34724d70301d439ac9b6153 /arch/x86/kvm/mmu.c
parentff1fcb9ebd53ee3f21ae117e6952204e465f46d8 (diff)
KVM: MMU: remove kvm_mmu_set_base_ptes
Unused. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 0aac41fc8ff4..11b9102f4113 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -196,7 +196,6 @@ static struct percpu_counter kvm_total_used_mmu_pages;
196 196
197static u64 __read_mostly shadow_trap_nonpresent_pte; 197static u64 __read_mostly shadow_trap_nonpresent_pte;
198static u64 __read_mostly shadow_notrap_nonpresent_pte; 198static u64 __read_mostly shadow_notrap_nonpresent_pte;
199static u64 __read_mostly shadow_base_present_pte;
200static u64 __read_mostly shadow_nx_mask; 199static u64 __read_mostly shadow_nx_mask;
201static u64 __read_mostly shadow_x_mask; /* mutual exclusive with nx_mask */ 200static u64 __read_mostly shadow_x_mask; /* mutual exclusive with nx_mask */
202static u64 __read_mostly shadow_user_mask; 201static u64 __read_mostly shadow_user_mask;
@@ -215,12 +214,6 @@ void kvm_mmu_set_nonpresent_ptes(u64 trap_pte, u64 notrap_pte)
215} 214}
216EXPORT_SYMBOL_GPL(kvm_mmu_set_nonpresent_ptes); 215EXPORT_SYMBOL_GPL(kvm_mmu_set_nonpresent_ptes);
217 216
218void kvm_mmu_set_base_ptes(u64 base_pte)
219{
220 shadow_base_present_pte = base_pte;
221}
222EXPORT_SYMBOL_GPL(kvm_mmu_set_base_ptes);
223
224void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask, 217void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask,
225 u64 dirty_mask, u64 nx_mask, u64 x_mask) 218 u64 dirty_mask, u64 nx_mask, u64 x_mask)
226{ 219{
@@ -1975,7 +1968,7 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep,
1975 * whether the guest actually used the pte (in order to detect 1968 * whether the guest actually used the pte (in order to detect
1976 * demand paging). 1969 * demand paging).
1977 */ 1970 */
1978 spte = shadow_base_present_pte; 1971 spte = PT_PRESENT_MASK;
1979 if (!speculative) 1972 if (!speculative)
1980 spte |= shadow_accessed_mask; 1973 spte |= shadow_accessed_mask;
1981 if (!dirty) 1974 if (!dirty)