[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1234988621.git.jeremy.fitzhardinge@citrix.com>
Date: Wed, 18 Feb 2009 14:30:10 -0800
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: the arch/x86 maintainers <x86@...nel.org>,
Xen-devel <xen-devel@...ts.xensource.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Peter Zijlstra <peterz@...radead.org>,
Nick Piggin <npiggin@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Rusty Russell <rusty@...tcorp.com.au>,
Zachary Amsden <zach@...are.com>,
Alok N Kataria <akataria@...are.com>,
Avi Kivity <avi@...hat.com>,
Marcelo Tosatti <mtosatti@...hat.com>,
Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
Subject: [PATCH 0/9] Make lazy mmu update mode pre-empt safe
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
Hi,
This series changes the paravirt-ops lazy update modes in the following ways:
1. Make paravirt_get_lazy_mode() always return PARAVIRT_LAZY_NONE in
interrupt context. This has the effect of making all mmu and cpu
state updates synchronous in interrupt routines, without the need
to add explicit flushing.
2. De-generalize lazy cpu mode to a specific context-switch operation.
Rather than dealing with fully general enter/leave lazy cpu update
mode, make it specifically about start/end context switch, since that
was the only use anyway. That means the implementations know that
they're in the middle of a context switch.
3. On starting a context switch, if the task is in lazy mmu update mode,
record that fact in thread_info->flags TIF_LAZY_MMU_UPDATE, and
disable lazy updates (flushing anything pending). On ending a context
switch, if the new task has TIF_LAZY_MMU_UPDATE set, then reenter
lazy mmu update mode.
4. Remove all the preempt_disable/enable pairs and assertion that
preemption must be disabled for lazy mmu updates.
This has the net effect of 1) making lazy mmu updates more robust, and
2) not requiring any changes to the current rules of how init_mm can
be updated.
Thanks,
J
Jeremy Fitzhardinge (7):
x86/paravirt: remove lazy mode in interrupts
x86/pvops: replace arch_enter_lazy_cpu_mode with arch_start_context_switch
x86/paravirt: flush pending mmu updates on context switch
x86/paravirt: allow preemption with lazy mmu mode
mm: allow preemption in apply_to_pte_range
x86/paravirt: use percpu_ rather than __get_cpu_var
x86/paravirt: finish change from lazy cpu to context switch start/end
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists