Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202420
b: refs/heads/master
c: 6e3e243
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Avi Kivity committed Aug 2, 2010
1 parent 9fb2104 commit 3f1a513
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: c19b8bd60e19308d5583ef200ddcc782d85d9543
refs/heads/master: 6e3e243c3b6e0bbd18c6ce0fbc12bc3fe2d77b34
8 changes: 6 additions & 2 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,12 @@ static int kvm_handle_hva(struct kvm *kvm, unsigned long hva,
ret = handler(kvm, &memslot->rmap[gfn_offset], data);

for (j = 0; j < KVM_NR_PAGE_SIZES - 1; ++j) {
int idx = gfn_offset;
idx /= KVM_PAGES_PER_HPAGE(PT_DIRECTORY_LEVEL + j);
unsigned long idx;
int sh;

sh = KVM_HPAGE_GFN_SHIFT(PT_DIRECTORY_LEVEL+j);
idx = ((memslot->base_gfn+gfn_offset) >> sh) -
(memslot->base_gfn >> sh);
ret |= handler(kvm,
&memslot->lpage_info[j][idx].rmap_pde,
data);
Expand Down

0 comments on commit 3f1a513

Please sign in to comment.