4 ms·
No, the problem really is the prefetch itself when there are undesirable side-effects if the bus sees that memory read.
by repiret 26d ago
No, the problem really is the prefetch itself when there are undesirable side-effects if the bus sees that memory read.
- phire 26d agoWell yes. That is why the "prefetch" is a problem. But the original question was asking why disabling data prefetching to a memory region didn't automatically disable instruction prefetching at the same time. And the answer is that speculative execution is a completely different mechanism that I'm not even sure can be disabled, at least not per memory region.
- renox 26d agoWhy do you say this? The post is quite clear that marking the memory region as NX fix the issue caused by speculative execution.