Skip to content

Commit bb9bc15

Browse files
committed
contest: vm: name the VM threads
Set debug-threads=on to make QEMU name it's vCPU threads. This makes it easier to pin them. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e3ea36c commit bb9bc15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contest/remote/lib/vm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ def start(self, cwd=None):
182182
if cwd:
183183
cmd += ["--cwd", cwd]
184184

185+
name = self.config.get('executor', 'name', fallback="virtme-ng")
186+
cmd += ["--name", name + ",debug-threads=on"]
187+
185188
opts = self.config.get('vm', 'virtme_opt', fallback="")
186189
cmd += opts.split(',') if opts else []
187190

0 commit comments

Comments
 (0)