Triggering Machine Check Exceptions on x86
I would like to trigger a Machine Check Exception soley by a 'software mechanism' on my x86 box. The idea is to test my machine check exception handler thoroughly. I want a reliable way which will generate this exception every time when I run the software code snippet.
Quoted 5 lines · Kalyan Rajasekharuni
I would like to trigger a Machine Check Exception soley by a 'software mechanism' on my x86 box. The idea is to test my machine check exception handler thoroughly. I want a reliable way which will generate this exception every time when I run the software code snippet.
You will need to ask the CPU vendor I think. You can trigger MCEs on some x86s by exploiting obscure hardware flaws in supervisor mode (notably with mismatched memory cache types for the same page) but I don't know of any way to make that predictable.
Alan