If the number of guest vcpus is less than '1' then flag it as an error.
MFC after: 1 week
This commit is contained in:
parent
8b25059d94
commit
77afcadd51
@ -805,6 +805,11 @@ main(int argc, char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (guest_ncpus < 1) {
|
||||
fprintf(stderr, "Invalid guest vCPUs (%d)\n", guest_ncpus);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
max_vcpus = num_vcpus_allowed(ctx);
|
||||
if (guest_ncpus > max_vcpus) {
|
||||
fprintf(stderr, "%d vCPUs requested but only %d available\n",
|
||||
|
Loading…
Reference in New Issue
Block a user