aboutsummaryrefslogtreecommitdiff
path: root/hw/xen
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-01-16 15:37:37 +1100
committerGreg Kurz <groug@kaod.org>2018-05-22 12:58:59 +0200
commitad484114d18d7d82cee83f870825cb395339d071 (patch)
tree0663c8bcacd0b1906504e17e7037766337bf11a5 /hw/xen
parent0a30cae50a2f9d316c69ae1559b0a2b222de54e7 (diff)
spapr: Allow some cases where we can't set VSMT mode in the kernel
At present if we require a vsmt mode that's not equal to the kernel's default, and the kernel doesn't let us change it (e.g. because it's an old kernel without support) then we always fail. But in fact we can cope with the kernel having a different vsmt as long as a) it's >= the actual number of vthreads/vcore (so that guest threads that are supposed to be on the same core act like it) b) it's a submultiple of the requested vsmt mode (so that guest threads spaced by the vsmt value will act like they're on different cores) Allowing this case gives us a bit more freedom to adjust the vsmt behaviour without breaking existing cases. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Tested-by: Greg Kurz <groug@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> (cherry picked from commit 1f20f2e0ee61d91abff4e86ed1cda1b5244647d3) Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'hw/xen')
0 files changed, 0 insertions, 0 deletions