aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-12-09 10:33:46 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:21 -0500
commit2fbf4cf13f777e1f61ee692fe67d16bddd747700 (patch)
tree34f724ed2a3d77f18e503c055931f072cf47917d
parente3f955042219a595b1c3208e12c20860f23f72fb (diff)
KVM: MMU: Remove walker argument to set_pte()
Unused. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/paging_tmpl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h
index ca8d51574118..2e5a80af22c9 100644
--- a/drivers/kvm/paging_tmpl.h
+++ b/drivers/kvm/paging_tmpl.h
@@ -238,8 +238,7 @@ err:
238static void FNAME(set_pte)(struct kvm_vcpu *vcpu, u64 *shadow_pte, 238static void FNAME(set_pte)(struct kvm_vcpu *vcpu, u64 *shadow_pte,
239 unsigned pt_access, unsigned pte_access, 239 unsigned pt_access, unsigned pte_access,
240 int user_fault, int write_fault, int dirty, 240 int user_fault, int write_fault, int dirty,
241 int *ptwrite, struct guest_walker *walker, 241 int *ptwrite, gfn_t gfn)
242 gfn_t gfn)
243{ 242{
244 u64 spte; 243 u64 spte;
245 int was_rmapped = is_rmap_pte(*shadow_pte); 244 int was_rmapped = is_rmap_pte(*shadow_pte);
@@ -337,7 +336,7 @@ static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *page,
337 pgprintk("%s: gpte %llx spte %p\n", __FUNCTION__, (u64)gpte, spte); 336 pgprintk("%s: gpte %llx spte %p\n", __FUNCTION__, (u64)gpte, spte);
338 pte_access = page->role.access & FNAME(gpte_access)(vcpu, gpte); 337 pte_access = page->role.access & FNAME(gpte_access)(vcpu, gpte);
339 FNAME(set_pte)(vcpu, spte, page->role.access, pte_access, 0, 0, 338 FNAME(set_pte)(vcpu, spte, page->role.access, pte_access, 0, 0,
340 gpte & PT_DIRTY_MASK, NULL, NULL, gpte_to_gfn(gpte)); 339 gpte & PT_DIRTY_MASK, NULL, gpte_to_gfn(gpte));
341} 340}
342 341
343/* 342/*
@@ -402,7 +401,7 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
402 401
403 FNAME(set_pte)(vcpu, shadow_ent, access, walker->pte_access & access, 402 FNAME(set_pte)(vcpu, shadow_ent, access, walker->pte_access & access,
404 user_fault, write_fault, walker->pte & PT_DIRTY_MASK, 403 user_fault, write_fault, walker->pte & PT_DIRTY_MASK,
405 ptwrite, walker, walker->gfn); 404 ptwrite, walker->gfn);
406 405
407 return shadow_ent; 406 return shadow_ent;
408} 407}