Skip to content

Commit

Permalink
xen: disable preempt for leave_lazy_mmu
Browse files Browse the repository at this point in the history
xen_mc_flush() requires preemption to be disabled for its own sanity,
so disable it while we're flushing.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge committed Mar 30, 2009
1 parent ab2f75f commit 5caecb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,8 +1812,10 @@ __init void xen_post_allocator_init(void)

static void xen_leave_lazy_mmu(void)
{
preempt_disable();
xen_mc_flush();
paravirt_leave_lazy_mmu();
preempt_enable();
}

const struct pv_mmu_ops xen_mmu_ops __initdata = {
Expand Down

0 comments on commit 5caecb9

Please sign in to comment.