I’m disabling CPU caches in my windows kernel driver using this code(got from this answer):
__writecr0(__readcr0() | (1 << 30));
__wbinvd();
__writemsr(IA32_MTRR_DEF_TYPE, 0);
__wbinvd();
This code works on “normal” Intel/AMD CPUs. But on some low consumption mobile CPUs like Intel N96/N100, Ryzen 7 5800u it doesn’t, test code performances are the same before and after this code. I also checked that there is no hypervisor above the system (bcdedit.exe /set hypervisorlaunchtype off).