Skip to content

Commit 4ccec62

Browse files
committed
hardware: Add TODO to remove '(un)pin_cpu_with_siblings'
With the newly introduced translation of 'hw:cpu_thread_policy' to require or avoid the 'HW_CPU_HYPERTHREADING' trait, we no longer fake non-SMT hosts by reserving the thread siblings of each core used by an instance. As such, once we're in a world where all hosts have switched to reporting PCPUs and this trait (or at least are capable of it), we will no longer need the functionality these methods enable. Add a TODO to remind us to remove them. Change-Id: I22032f5a96c3ba791d3b44b83259b43349093c36 Signed-off-by: Stephen Finucane <[email protected]>
1 parent 7601efa commit 4ccec62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nova/virt/hardware.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,8 @@ def numa_usage_from_instance_numa(host_topology, instance_topology,
22202220
if instance_cell.cpuset_reserved:
22212221
pinned_cpus |= instance_cell.cpuset_reserved
22222222

2223+
# TODO(stephenfin): Remove the '_with_siblings' variants when we
2224+
# drop support for 'vcpu_pin_set' since they will then be no-ops
22232225
if free:
22242226
if (instance_cell.cpu_thread_policy ==
22252227
fields.CPUThreadAllocationPolicy.ISOLATE):

0 commit comments

Comments
 (0)