spapr: Set VSMT to smp_threads by default
commit29cb4187497dcc6be80c9cd2a87764be89d940f6
authorGreg Kurz <groug@kaod.org>
Thu, 3 Oct 2019 12:02:00 +0000 (3 14:02 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:36:55 +0000 (24 09:36 +1100)
tree94b83e02725bbf7f65633dfb60f9de446a2c91c9
parent06d26eeb47de96c0fa0cc1d5e95124b0a809b3ac
spapr: Set VSMT to smp_threads by default

Support for setting VSMT is available in KVM since linux-4.13. Most distros
that support KVM on POWER already have it. It thus seem reasonable enough
to have the default machine to set VSMT to smp_threads.

This brings contiguous VCPU ids and thus brings their upper bound down to
the machine's max_cpus. This is especially useful for XIVE KVM devices,
which may thus allocate only one VP descriptor per VCPU.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157010411885.246126.12610015369068227139.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
include/hw/ppc/spapr.h