Show Table of Contents
14.13.3. Configuring Virtual CPU Affinity
To configure the affinity of virtual CPUs with physical CPUs, refer to Example 14.3, “Pinning vCPU to a host physical machine's CPU”.
Example 14.3. Pinning vCPU to a host physical machine's CPU
The
virsh vcpupin assigns a virtual CPU to a physical one.
# virsh vcpupin rhel6 VCPU: CPU Affinity ---------------------------------- 0: 0-3 1: 0-3
The
vcpupin can take the following options:
--vcpurequires the vcpu number[--cpulist] >string<lists the host physical machine's CPU number(s) to set, or omit an optional query--configaffects next boot--liveaffects the running domain--currentaffects the current domain

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.