Re:SSE: mind the gap
by gliptic on Monday April 04, 2016 @06:48AM
(#11420790)
It's not up to the SSD driver. The SSD driver will not see any effects of speculatively executed code and there's no way the CPU could speculatively send commands to the drive.
[ Parent
| on HN ]
What if you're communicating with the SSD via DMA? Don't you have to make sure that the writes aren't speculatively executed?
Because DMA occurs when the CPU writes to memory, and as my comment above states this occurs after the condition is evaluated and the jump instruction (not) taken.
Speculative execution is purely within the CPU and doesn't leak out - except in the case of worse than ideal performance.