<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 5, 2018 at 10:20 AM, Arnold Reinhold <span dir="ltr"><<a href="mailto:agr@me.com" target="_blank">agr@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Given that the RISC-V community has not gone very far in deploying advanced risk prediction logic, maybe simple rubrics such as those suggested in the first paragraph quoted above, along with improvements in the software tool chain, such as maybe branch prediction pragmas and better integrated profiling tools, could result in good performance while avoiding Specte type problems.</blockquote></div><div class="gmail_extra"><br></div>Branch prediction in and of itself is not a problem. The core problem underlying both Meltdown and Spectre is the CPU is speculating outside the current protection domain, because access control protections on memory are not enforced synchronously 100% of the time.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't think anything fundamentally needs to change about how ISAs or speculation units are designed. What needs to change is how access control to memory is checked. Speculation units should proceed until they hit a memory access violation, at which point they should stop the current line of speculation, avoiding the problem of speculating outside the current protection domain strategically. <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The way to prevent a sidechannel is by closing it.</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">In the RISC-V space, lowRISC has been doing a lot of research in the area of adding more metadata to memory which can be used for better access controls:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://www.lowrisc.org/">http://www.lowrisc.org/</a><br></div><div class="gmail_extra"><div><br></div>-- <br><div class="gmail_signature">Tony Arcieri<br></div>
</div></div>