Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139073
b: refs/heads/master
c: 6afbdd0
h: refs/heads/master
i:
  139071: 76b0253
v: v3
  • Loading branch information
Rusty Russell committed Mar 30, 2009
1 parent be3051c commit 628928c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: c5f841f1780dad7efb7eca092f60742d47f47d25
refs/heads/master: 6afbdd059c27330eccbd85943354f94c2b83a7fe
4 changes: 3 additions & 1 deletion trunk/drivers/lguest/page_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ unsigned long guest_pa(struct lg_cpu *cpu, unsigned long vaddr)
/* First step: get the top-level Guest page table entry. */
gpgd = lgread(cpu, gpgd_addr(cpu, vaddr), pgd_t);
/* Toplevel not present? We can't map it in. */
if (!(pgd_flags(gpgd) & _PAGE_PRESENT))
if (!(pgd_flags(gpgd) & _PAGE_PRESENT)) {
kill_guest(cpu, "Bad address %#lx", vaddr);
return -1UL;
}

gpte = lgread(cpu, gpte_addr(gpgd, vaddr), pte_t);
if (!(pte_flags(gpte) & _PAGE_PRESENT))
Expand Down

0 comments on commit 628928c

Please sign in to comment.