Re: preempt bug in set_pmd_pfn?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Thursday, March 6, 2008 - 11:19 am

Ingo Molnar wrote:

Yes, I think that's the case.  clear_fixmap() exists for clearing out an 
existing mapping, but its only used to clear out the WP test mapping and 
in early_iounmap (if called late).  I couldn't see any instances of 
replacing a mapping.


Yes, I was wondering about that.  If __set_fixmap is only used at boot 
time, then a global flush isn't necessary, but if its deemed a 
general-purpose API in a normal running kernel, it needs to deal with 
cross-cpu flushes.

64-bit set_fixmap is __init only, and I'd be OK with that.  The only 
non-__init use in the 32-bit kernel is the compat vdso mapping, and that 
could easily be done by other means (though it would effectively become 
an opencoded set_fixmap, so perhaps that's not a good idea...).


No, that's set_pte_at(), which is the real issue in both cases.  
__set_fixmap calls both set_pte_at and flush_tlb_one, which is why it 
gets two backtrackes.

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 2:13 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 2:27 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Tue Mar 4, 2:28 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 5:06 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 5:07 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 5:16 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 5:19 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 6:28 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Tue Mar 4, 11:48 pm)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 7:29 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 9:45 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 9:48 am)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 10:38 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 12:18 pm)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 1:40 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Thu Mar 6, 5:52 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Thu Mar 6, 11:19 am)