Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44868
b: refs/heads/master
c: 2c26495
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Linus Torvalds committed Dec 22, 2006
1 parent 9b6eb72 commit 131c5de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: 36241b8c7cbcc83e7fd534d25e1df8339db8244e
refs/heads/master: 2c264957105b7c248a456ba6602df667ae986550
18 changes: 12 additions & 6 deletions trunk/drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,20 @@ int kvm_mmu_init(struct kvm_vcpu *vcpu)
ASSERT(!VALID_PAGE(vcpu->mmu.root_hpa));
ASSERT(list_empty(&vcpu->free_pages));

if ((r = alloc_mmu_pages(vcpu)))
return r;
r = alloc_mmu_pages(vcpu);
if (r)
goto out;

r = init_kvm_mmu(vcpu);
if (r)
goto out_free_pages;

if ((r = init_kvm_mmu(vcpu))) {
free_mmu_pages(vcpu);
return r;
}
return 0;

out_free_pages:
free_mmu_pages(vcpu);
out:
return r;
}

void kvm_mmu_destroy(struct kvm_vcpu *vcpu)
Expand Down

0 comments on commit 131c5de

Please sign in to comment.