Skip to contentSkip to conversation

TLB flushing in x86's map_pages_to_xen()

DISCUSSION Jan Beulich 2 participants 2 messages May 15, 2007

lore
Share & tools
lore
#0 lore raw

While I realize that the local-flush-only approach attempts to minimize overhead, I have some difficulty understanding how this can properly deal with the effects of speculation on remote processors. I believe this will get even worse when considering cacheability changes, in which case it is not only an immediate TLB flush that is needed, but also an immediate cache flush.

Thanks for any clarification, Jan

#1 lore raw
Quoted 8 lines · Jan Beulich

While I realize that the local-flush-only approach attempts to minimize overhead,
I have some difficulty understanding how this can properly deal with the effects
of speculation on remote processors. I believe this will get even worse when considering cacheability changes, in which case it is not only an immediate TLB
flush that is needed, but also an immediate cache flush.

Map_pages_to_xen() is only used at start-of-day, except for memory-guarding where TLB flushing isn't actually required for correctness. If it were used during normal Xen execution for more sophisticated purposes then yes, more consideration would need to be given for flushing processor state.

-- Keir