Shmem emulatio that somehow works