aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/paging_tmpl.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-21 07:11:49 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:11 -0500
commit050e64992f90abee4e1e77b57fe7abf1ba22d330 (patch)
treea9985890e130c9f7567446dc4ebbdca1eb86bb8e /drivers/kvm/paging_tmpl.h
parent4e542370c7570bdb582ab8c751ab899ff9e4214a (diff)
KVM: MMU: Remove set_pde()
It is now identical to set_pte(). Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r--drivers/kvm/paging_tmpl.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h
index cc373ed1f04..062f4f57464 100644
--- a/drivers/kvm/paging_tmpl.h
+++ b/drivers/kvm/paging_tmpl.h
@@ -305,17 +305,6 @@ static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *page,
305 0, NULL, NULL, gpte_to_gfn(gpte)); 305 0, NULL, NULL, gpte_to_gfn(gpte));
306} 306}
307 307
308static void FNAME(set_pde)(struct kvm_vcpu *vcpu, pt_element_t gpde,
309 u64 *shadow_pte, u64 access_bits,
310 int user_fault, int write_fault, int *ptwrite,
311 struct guest_walker *walker, gfn_t gfn)
312{
313 access_bits &= gpde;
314 FNAME(set_pte_common)(vcpu, shadow_pte,
315 gpde, access_bits, user_fault, write_fault,
316 ptwrite, walker, gfn);
317}
318
319/* 308/*
320 * Fetch a shadow pte for a specific level in the paging hierarchy. 309 * Fetch a shadow pte for a specific level in the paging hierarchy.
321 */ 310 */
@@ -384,16 +373,10 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
384 prev_shadow_ent = shadow_ent; 373 prev_shadow_ent = shadow_ent;
385 } 374 }
386 375
387 if (walker->level == PT_DIRECTORY_LEVEL) { 376 FNAME(set_pte)(vcpu, walker->pte, shadow_ent,
388 FNAME(set_pde)(vcpu, walker->pte, shadow_ent, 377 walker->inherited_ar, user_fault, write_fault,
389 walker->inherited_ar, user_fault, write_fault, 378 ptwrite, walker, walker->gfn);
390 ptwrite, walker, walker->gfn); 379
391 } else {
392 ASSERT(walker->level == PT_PAGE_TABLE_LEVEL);
393 FNAME(set_pte)(vcpu, walker->pte, shadow_ent,
394 walker->inherited_ar, user_fault, write_fault,
395 ptwrite, walker, walker->gfn);
396 }
397 return shadow_ent; 380 return shadow_ent;
398} 381}
399 382