logoalt Hacker News

phiretoday at 5:18 AM1 replyview on HN

Well 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.


Replies

renoxtoday at 9:05 AM

Why do you say this? The post is quite clear that marking the memory region as NX fix the issue caused by speculative execution.