Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329923
b: refs/heads/master
c: 71331a1
h: refs/heads/master
i:
  329921: e6ea725
  329919: c6b6a50
v: v3
  • Loading branch information
Avi Kivity committed Sep 20, 2012
1 parent 5bf9a3f commit 2646baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 6fd01b711bee96ce3356f7b6f370ab708e37504b
refs/heads/master: 71331a1da1e3a66d14bb3864f99e32d84ab5a76f
5 changes: 1 addition & 4 deletions trunk/arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,
gfn_t table_gfn;
unsigned index, pt_access, pte_access;
gpa_t pte_gpa;
bool eperm;
int offset;
const int write_fault = access & PFERR_WRITE_MASK;
const int user_fault = access & PFERR_USER_MASK;
Expand All @@ -165,7 +164,6 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,

trace_kvm_mmu_pagetable_walk(addr, access);
retry_walk:
eperm = false;
walker->level = mmu->root_level;
pte = mmu->get_cr3(vcpu);

Expand Down Expand Up @@ -231,8 +229,7 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,
walker->ptes[walker->level - 1] = pte;
} while (!is_last_gpte(mmu, walker->level, pte));

eperm |= permission_fault(mmu, pte_access, access);
if (unlikely(eperm)) {
if (unlikely(permission_fault(mmu, pte_access, access))) {
errcode |= PFERR_PRESENT_MASK;
goto error;
}
Expand Down

0 comments on commit 2646baa

Please sign in to comment.