mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Merge remote-tracking branch 'remotes/kvm/uq/master' into staging
* remotes/kvm/uq/master: target-i386: bugfix of Intel MPX file_ram_alloc: unify mem-path,mem-prealloc error handling kvm-all: exit in case max vcpus exceeded Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
2396187076
3 changed files with 12 additions and 7 deletions
|
@ -1423,11 +1423,10 @@ int kvm_init(QEMUMachine *machine)
|
|||
nc->name, nc->num, soft_vcpus_limit);
|
||||
|
||||
if (nc->num > hard_vcpus_limit) {
|
||||
ret = -EINVAL;
|
||||
fprintf(stderr, "Number of %s cpus requested (%d) exceeds "
|
||||
"the maximum cpus supported by KVM (%d)\n",
|
||||
nc->name, nc->num, hard_vcpus_limit);
|
||||
goto err;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
nc++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue