> I think Tony hinted me about mechanism to test MCA behaviour in > kernel but I cannot recall it anymore. Was there a way to make > to simulate a memory failure, and use that to test the patch > set? It is possible to inject real errors into enclave memory using ACPI/EINJ. See the final part of: Documentation/firmware-guide/acpi/apei/einj.rst You do a faked test by just asking to offline a page: # echo {pfn} > /sys/devices/system/memory/hard_offline_page -Tony