Jeremy Fitzhardinge <jeremy@xxxxxxxx> writes:
No, that sounds like a bad idea. For one, how would you enforce it? How would
you check for it? It's one of those things that would mostly work and then fail
very rarely.
Well the easiest way would be to avoid the letting people take the address of
per cpu memory, and just provide macros to read/write it. We are 90% of the
way there already so it isn't a big jump.
Secondly, I depend on it. I register a percpu structure with Xen to share
per-vcpu specific information (interrupt mask, time info, runstate stats, etc).
Well even virtual allocation is likely to break the Xen sharing case as you
would at least need to compute the physical address and pass it to Xen.