[PATCH v2 1/7] server: Expose the thread input keystate through shared memory.