projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01d0fc7
)
[XEN] Remove bogus assertion in shadow emulation path
author
Tim Deegan
<Tim.Deegan@xensource.com>
Wed, 7 Feb 2007 12:58:07 +0000
(12:58 +0000)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Wed, 7 Feb 2007 12:58:07 +0000
(12:58 +0000)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/mm/shadow/multi.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/shadow/multi.c
b/xen/arch/x86/mm/shadow/multi.c
index 8b8b8585a7127495086b62998ef3526f7e6ffe62..9e0d0e1fbfc4db925fdc8cd9c10b098b2ca7e8da 100644
(file)
--- a/
xen/arch/x86/mm/shadow/multi.c
+++ b/
xen/arch/x86/mm/shadow/multi.c
@@
-3875,11
+3875,9
@@
static inline void * emulate_map_dest(struct vcpu *v,
goto page_fault;
}
- /* Attempted a write to a bad gfn? This should never happen:
- * after all, we're here because this write is to a page table. */
- BUG_ON(!mfn_valid(mfn));
+ if ( !mfn_valid(mfn) )
+ return NULL;
- ASSERT(sh_mfn_is_a_page_table(mfn));
*mfnp = mfn;
return sh_map_domain_page(mfn) + (vaddr & ~PAGE_MASK);