bhyve: Don't access vcpumap[vcpu] directly in parse_cpuset().

Reviewed by:	corvink, markj
Differential Revision:	https://reviews.freebsd.org/D37645
This commit is contained in:
John Baldwin 2022-12-21 10:33:04 -08:00
parent a20c00c60e
commit 8487443792

View File

@ -441,12 +441,12 @@ parse_cpuset(int vcpu, const char *list, cpuset_t *set)
errx(4, "Invalid hostcpu range %d-%d",
start, pcpu);
while (start < pcpu) {
CPU_SET(start, vcpumap[vcpu]);
CPU_SET(start, set);
start++;
}
start = -1;
}
CPU_SET(pcpu, vcpumap[vcpu]);
CPU_SET(pcpu, set);
break;
case '-':
if (start >= 0)