Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115285
b: refs/heads/master
c: 6e37d3d
h: refs/heads/master
i:
  115283: 99a75a3
v: v3
  • Loading branch information
Avi Kivity committed Oct 15, 2008
1 parent c231407 commit c49a15f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 135f8c2b078533cc74e75f696e73d47304a61125
refs/heads/master: 6e37d3dc3e358dbf907f8b96a51282966934124b
11 changes: 3 additions & 8 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,15 +1240,10 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,
ASSERT(VALID_PAGE(table_addr));
table = __va(table_addr);

if (level == 1) {
if (level == 1 || (largepage && level == 2)) {
mmu_set_spte(vcpu, &table[index], ACC_ALL, ACC_ALL,
0, write, 1, &pt_write, 0, gfn, pfn, false);
return pt_write;
}

if (largepage && level == 2) {
mmu_set_spte(vcpu, &table[index], ACC_ALL, ACC_ALL,
0, write, 1, &pt_write, 1, gfn, pfn, false);
0, write, 1, &pt_write, largepage,
gfn, pfn, false);
return pt_write;
}

Expand Down

0 comments on commit c49a15f

Please sign in to comment.