Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45274
b: refs/heads/master
c: 260746c
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Linus Torvalds committed Jan 6, 2007
1 parent 352e489 commit fa569a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e7bc4b9610ed9fde0fa14f0b7a7f939805e5ae9
refs/heads/master: 260746c03dcb2e5089f95b60cb786aaf405ced63
20 changes: 10 additions & 10 deletions trunk/drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,6 @@ static void rmap_write_protect(struct kvm *kvm, u64 gfn)
}
}

static void kvm_mmu_free_page(struct kvm_vcpu *vcpu, hpa_t page_hpa)
{
struct kvm_mmu_page *page_head = page_header(page_hpa);

list_del(&page_head->link);
page_head->page_hpa = page_hpa;
list_add(&page_head->link, &vcpu->free_pages);
++vcpu->kvm->n_free_mmu_pages;
}

static int is_empty_shadow_page(hpa_t page_hpa)
{
u32 *pos;
Expand All @@ -324,6 +314,16 @@ static int is_empty_shadow_page(hpa_t page_hpa)
return 1;
}

static void kvm_mmu_free_page(struct kvm_vcpu *vcpu, hpa_t page_hpa)
{
struct kvm_mmu_page *page_head = page_header(page_hpa);

list_del(&page_head->link);
page_head->page_hpa = page_hpa;
list_add(&page_head->link, &vcpu->free_pages);
++vcpu->kvm->n_free_mmu_pages;
}

static unsigned kvm_page_table_hashfn(gfn_t gfn)
{
return gfn;
Expand Down

0 comments on commit fa569a6

Please sign in to comment.