Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54107
b: refs/heads/master
c: d6c69ee
h: refs/heads/master
i:
  54105: d51b86c
  54103: ab49d2b
v: v3
  • Loading branch information
Yaozu Dong authored and Avi Kivity committed May 3, 2007
1 parent 45c6737 commit 2dff8df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d56c8a787aefb2e3fc4ac4be966db96c14d1ad8
refs/heads/master: d6c69ee9a24b307ce94e55ebfba6208a830c9ecb
6 changes: 6 additions & 0 deletions trunk/drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ static void kvm_mmu_audit(struct kvm_vcpu *vcpu, const char *msg) {}
static int dbg = 1;
#endif

#ifndef MMU_DEBUG
#define ASSERT(x) do { } while (0)
#else
#define ASSERT(x) \
if (!(x)) { \
printk(KERN_WARNING "assertion failed %s:%d: %s\n", \
__FILE__, __LINE__, #x); \
}
#endif

#define PT64_PT_BITS 9
#define PT64_ENT_PER_PAGE (1 << PT64_PT_BITS)
Expand Down Expand Up @@ -434,6 +438,7 @@ static void rmap_write_protect(struct kvm_vcpu *vcpu, u64 gfn)
}
}

#ifdef MMU_DEBUG
static int is_empty_shadow_page(hpa_t page_hpa)
{
u64 *pos;
Expand All @@ -448,6 +453,7 @@ static int is_empty_shadow_page(hpa_t page_hpa)
}
return 1;
}
#endif

static void kvm_mmu_free_page(struct kvm_vcpu *vcpu, hpa_t page_hpa)
{
Expand Down

0 comments on commit 2dff8df

Please sign in to comment.