diff options
| author | Greg Kurz | 2015-07-02 08:23:02 +0200 |
|---|---|---|
| committer | Alexander Graf | 2015-07-07 17:44:49 +0200 |
| commit | f303f117fec32c0705f88860e3eadf94135211c9 (patch) | |
| tree | 61282cfbe830f8e17fefc5d81cf035a3ce966393 /scripts/switch-timer-api | |
| parent | target-ppc: fix hugepage support when using memory-backend-file (diff) | |
| download | qemu-f303f117fec32c0705f88860e3eadf94135211c9.tar.gz qemu-f303f117fec32c0705f88860e3eadf94135211c9.tar.xz qemu-f303f117fec32c0705f88860e3eadf94135211c9.zip | |
spapr: ensure we have at least one XICS server
XICS needs to know the upper value for cpu_index as it is used to compute
the number of servers:
smp_cpus * kvmppc_smt_threads() / smp_threads
When passing -smp cpus=1,threads=9 on a POWER8 host, we end up with:
1 * 8 / 9 = 0
... which leads to an assertion in both emulated:
Number of servers needs to be greater 0
Aborted (core dumped)
... and in-kernel XICS:
xics_kvm_realize: Assertion `icp->nr_servers' failed.
Aborted (core dumped)
With this patch, we are sure that nr_servers > 0. Passing the same bogus
-smp option then leads to:
qemu-system-ppc64: Cannot support more than 8 threads on PPC with KVM
... which is a lot more explicit than the XICS errors.
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
