direct-io.hg
changeset 10995:9f70d57aadcf
Fix BUG_ON on switch_mm if XENFEAT_writable_page_tables is enabled.
Signed-of-by: Ian Campbell <ian.campbell@xensource.com>
Signed-of-by: Ian Campbell <ian.campbell@xensource.com>
author | Ian.Campbell@xensource.com |
---|---|
date | Wed Aug 09 11:26:11 2006 +0100 (2006-08-09) |
parents | 3a2fee0d84f7 |
children | c1850c659e40 |
files | linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu_context.h |
line diff
1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu_context.h Wed Aug 09 10:53:16 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/mmu_context.h Wed Aug 09 11:26:11 2006 +0100 1.3 @@ -51,7 +51,8 @@ static inline void switch_mm(struct mm_s 1.4 struct mmuext_op _op[2], *op = _op; 1.5 1.6 if (likely(prev != next)) { 1.7 - BUG_ON(!test_bit(PG_pinned, &virt_to_page(next->pgd)->flags)); 1.8 + BUG_ON(!xen_feature(XENFEAT_writable_page_tables) && 1.9 + !test_bit(PG_pinned, &virt_to_page(next->pgd)->flags)); 1.10 1.11 /* stop flush ipis for the previous mm */ 1.12 cpu_clear(cpu, prev->cpu_vm_mask);