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:
parent
a20c00c60e
commit
8487443792
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user