On Tue, 14 Dec 2010 18:48:18 +0100 Alexander Graf <agraf@xxxxxxx> wrote: > The critical section is to prevent us from overwriting the scratch > registers, yeah. And I think you're right - I had a thinko last night. > > If we see that we should inject an interrupt, but we're inside of a > critical section, we could set the magic page to r/o and try to find the > critical end at which point we can just inject. Yeah, I thought of that as well -- but single stepping seemed better than messing with MMU code (one less thing to check for on the TLB miss path), and it shouldn't happen often enough, or for enough instructions, to be a performance issue. -Scott -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html