This requires access to hardware registers, so it won't work as non-root or inside a VM.