]> err.no Git - linux-2.6/commitdiff
KVM: MMU: Remove set_pde()
authorAvi Kivity <avi@qumranet.com>
Wed, 21 Nov 2007 12:11:49 +0000 (14:11 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:11 +0000 (17:53 +0200)
It is now identical to set_pte().

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/paging_tmpl.h

index cc373ed1f04992cb6ad0042035336ddecac25b5a..062f4f57464972759263e0df094716536ec8948a 100644 (file)
@@ -305,17 +305,6 @@ static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *page,
                       0, NULL, NULL, gpte_to_gfn(gpte));
 }
 
-static void FNAME(set_pde)(struct kvm_vcpu *vcpu, pt_element_t gpde,
-                          u64 *shadow_pte, u64 access_bits,
-                          int user_fault, int write_fault, int *ptwrite,
-                          struct guest_walker *walker, gfn_t gfn)
-{
-       access_bits &= gpde;
-       FNAME(set_pte_common)(vcpu, shadow_pte,
-                             gpde, access_bits, user_fault, write_fault,
-                             ptwrite, walker, gfn);
-}
-
 /*
  * Fetch a shadow pte for a specific level in the paging hierarchy.
  */
@@ -384,16 +373,10 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
                prev_shadow_ent = shadow_ent;
        }
 
-       if (walker->level == PT_DIRECTORY_LEVEL) {
-               FNAME(set_pde)(vcpu, walker->pte, shadow_ent,
-                              walker->inherited_ar, user_fault, write_fault,
-                              ptwrite, walker, walker->gfn);
-       } else {
-               ASSERT(walker->level == PT_PAGE_TABLE_LEVEL);
-               FNAME(set_pte)(vcpu, walker->pte, shadow_ent,
-                              walker->inherited_ar, user_fault, write_fault,
-                              ptwrite, walker, walker->gfn);
-       }
+       FNAME(set_pte)(vcpu, walker->pte, shadow_ent,
+                      walker->inherited_ar, user_fault, write_fault,
+                      ptwrite, walker, walker->gfn);
+
        return shadow_ent;
 }