In OpenStack, CPU pinning refers to the process of attaching physical CPU cores to virtual CPU threads. This ensures that the CPU resources of the virtual machine are devoted to a specific actual CPU core, which can increase speed and minimize latency.