Skip to contentSkip to conversation

lazy mmu and interrupts

DISCUSSION Jeremy Fitzhardinge 2 participants 3 messages Mar 28, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

Do you disable interrupts when lazy_mmu is active? Otherwise, it seems to me that drivers will have problems using kmap_atomic() within an interrupt routine...

J

#1 lore raw
Quoted 4 lines · Jeremy Fitzhardinge

Do you disable interrupts when lazy_mmu is active? Otherwise, it seems to me that drivers will have problems using kmap_atomic() within an interrupt routine...

Yup, that's a pretty serious bug. Looks like the lazy mmu code needs to save and restore interrupts, or alternatively, have kmap_atomic turn off lazy_mmu if it is enabled.

Zach

#2 lore raw
Quoted 3 lines · Zachary Amsden

Yup, that's a pretty serious bug. Looks like the lazy mmu code needs to save and restore interrupts, or alternatively, have kmap_atomic turn off lazy_mmu if it is enabled.

Have you seen it? I did a little lazy_mmu prototype last night and it popped up pretty quickly.

J