Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202301
b: refs/heads/master
c: c9fa0b3
h: refs/heads/master
i:
  202299: bb1e399
v: v3
  • Loading branch information
Lai Jiangshan authored and Avi Kivity committed Aug 1, 2010
1 parent fdd734e commit d99e0eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 2032a93d66fa282ba0f2ea9152eeff9511fa9a96
refs/heads/master: c9fa0b3bef9a0b117b3c3f958ec553c21f609a9f
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,10 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,
}

if (*iterator.sptep == shadow_trap_nonpresent_pte) {
pseudo_gfn = (iterator.addr & PT64_DIR_BASE_ADDR_MASK) >> PAGE_SHIFT;
u64 base_addr = iterator.addr;

base_addr &= PT64_LVL_ADDR_MASK(iterator.level);
pseudo_gfn = base_addr >> PAGE_SHIFT;
sp = kvm_mmu_get_page(vcpu, pseudo_gfn, iterator.addr,
iterator.level - 1,
1, ACC_ALL, iterator.sptep);
Expand Down

0 comments on commit d99e0eb

Please sign in to comment.