aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/contexts/sriov.py
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/benchmark/contexts/sriov.py')
-rw-r--r--yardstick/benchmark/contexts/sriov.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/contexts/sriov.py b/yardstick/benchmark/contexts/sriov.py
index da143cc4b..fe27d2579 100644
--- a/yardstick/benchmark/contexts/sriov.py
+++ b/yardstick/benchmark/contexts/sriov.py
@@ -392,7 +392,7 @@ class Sriov(StandaloneContext):
for i in range(0, 10):
self.connection.execute(
"virsh vcpupin vm1 {0} {1}".format(
- i, nodes[str(num_nodes - 1)][i]))
+ i, nodes[str(num_nodes - 1)][i % len(nodes[str(num_nodes - 1)])]))
def get_numa_nodes(self):
nodes_sysfs = glob.iglob("/sys/devices/system/node/node*")