ia64/xen-unstable
changeset 14232:a951cf1da459
[xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
On domain destroy, put_page_from_l1e is called on a domain
which is not current.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author | Christian Limpach <Christian.Limpach@xensource.com> |
---|---|
date | Mon Mar 05 11:17:52 2007 +0000 (2007-03-05) |
parents | 939d2b7d4a12 |
children | f74b87177843 |
files | xen/arch/x86/mm.c |
line diff
1.1 --- a/xen/arch/x86/mm.c Mon Mar 05 10:52:54 2007 +0000 1.2 +++ b/xen/arch/x86/mm.c Mon Mar 05 11:17:52 2007 +0000 1.3 @@ -424,7 +424,10 @@ void invalidate_shadow_ldt(struct vcpu * 1.4 } 1.5 1.6 /* Dispose of the (now possibly invalid) mappings from the TLB. */ 1.7 - queue_deferred_ops(v->domain, DOP_FLUSH_TLB | DOP_RELOAD_LDT); 1.8 + if ( v == current ) 1.9 + queue_deferred_ops(v->domain, DOP_FLUSH_TLB | DOP_RELOAD_LDT); 1.10 + else 1.11 + flush_tlb_mask(v->domain->domain_dirty_cpumask); 1.12 } 1.13 1.14