aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
authorm00nbsd <42475391+m00nbsd@users.noreply.github.com>2020-06-13 12:10:16 +0200
committerGitHub <noreply@github.com>2020-06-13 12:10:16 +0200
commitdbce178a0e6997a799ba38247059dcb8213f4572 (patch)
tree44c8bf22f223f1a9f2d3f37012fdbf0d9bb0a624 /executor/executor_bsd.h
parent205b2ba41849749529bce61d21862f8c86ed12a4 (diff)
sys/netbsd: support multiple vHCI buses (#1822)
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index a9440acec..d3ef16bce 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -74,7 +74,7 @@ static void cover_open(cover_t* cov, bool extra)
cover_size = (256 << 10); // maximum size
struct kcov_ioc_remote_attach args;
args.subsystem = KCOV_REMOTE_VHCI;
- args.id = procid + 1; // port number
+ args.id = KCOV_REMOTE_VHCI_ID(procid, 1); // first port
if (ioctl(cov->fd, KCOV_IOC_REMOTE_ATTACH, &args))
fail("ioctl remote attach failed");
} else {