News for hackers. Stuff that matters.
Re:Intel Confronts Potential ‘PR Nightmare’ With Reported Ch... by innagadadavida on Wednesday January 03, 2018 @11:04AM (#16062091)
But why do AMD chips not have similar issues? To me it looks like Intel tried to micro optimize something and screwed up.
Re:Intel Confronts Potential ‘PR Nightmare’ With Reported Ch... by rayiner on Wednesday January 03, 2018 @11:31AM (#16062367)
According to LKML: https://lkml.org/lkml/2017/12/27/2

> The AMD microarchitecture does not allow memory references, including speculative references, that access higher privileged data when running in a lesser privileged mode when that access would result in a page fault.

Out-of-order processors generally trigger exceptions when instructions are retired. Because instructions are retired in-order, that allows exceptions and interrupts to be reported in program order, which is what the programmer expects to happen. Furthermore, because memory access is a critical path, the TLB/privilege check is generally started in parallel with the cache/memory access. In such an architecture, it seems like the straightforward thing to do is to let the improper access to kernel memory execute, and then raise the page fault only when the instruction retires.

Re:Intel Confronts Potential ‘PR Nightmare’ With Reported Ch... by leoc on Wednesday January 03, 2018 @11:09AM (#16062132)
Maybe the answer lies in Intel’s feted IPC advantage over AMD? Or is it the case that AMD has simply been relatively lucky so far?