Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread David Gibson
On Wed, Nov 20, 2019 at 03:28:19PM +0100, Laurent Vivier wrote: > On 20/11/2019 12:41, David Gibson wrote: > > On Wed, Nov 20, 2019 at 12:28:19PM +0100, Laurent Vivier wrote: > >> On 20/11/2019 10:00, Laurent Vivier wrote: > >>> On 20/11/2019 05:36, David Gibson wrote: > On Tue, Nov 19, 2019 a

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Laurent Vivier
On 20/11/2019 12:41, David Gibson wrote: > On Wed, Nov 20, 2019 at 12:28:19PM +0100, Laurent Vivier wrote: >> On 20/11/2019 10:00, Laurent Vivier wrote: >>> On 20/11/2019 05:36, David Gibson wrote: On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > On Tue, 19 Nov 2019 15:06:51 +0

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Laurent Vivier
On 20/11/2019 13:47, Greg Kurz wrote: > On Wed, 20 Nov 2019 12:28:19 +0100 > Laurent Vivier wrote: > >> On 20/11/2019 10:00, Laurent Vivier wrote: >>> On 20/11/2019 05:36, David Gibson wrote: On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > On Tue, 19 Nov 2019 15:06:51 +0100

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Greg Kurz
On Wed, 20 Nov 2019 12:28:19 +0100 Laurent Vivier wrote: > On 20/11/2019 10:00, Laurent Vivier wrote: > > On 20/11/2019 05:36, David Gibson wrote: > >> On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > >>> On Tue, 19 Nov 2019 15:06:51 +0100 > >>> Laurent Vivier wrote: > >>> > On

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Laurent Vivier
On 20/11/2019 12:41, David Gibson wrote: > On Wed, Nov 20, 2019 at 12:28:19PM +0100, Laurent Vivier wrote: >> On 20/11/2019 10:00, Laurent Vivier wrote: >>> On 20/11/2019 05:36, David Gibson wrote: On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > On Tue, 19 Nov 2019 15:06:51 +0

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread David Gibson
On Wed, Nov 20, 2019 at 12:28:19PM +0100, Laurent Vivier wrote: > On 20/11/2019 10:00, Laurent Vivier wrote: > > On 20/11/2019 05:36, David Gibson wrote: > >> On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > >>> On Tue, 19 Nov 2019 15:06:51 +0100 > >>> Laurent Vivier wrote: > >>> > >>>

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Laurent Vivier
On 20/11/2019 10:00, Laurent Vivier wrote: > On 20/11/2019 05:36, David Gibson wrote: >> On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: >>> On Tue, 19 Nov 2019 15:06:51 +0100 >>> Laurent Vivier wrote: >>> On 19/11/2019 02:00, David Gibson wrote: > On Fri, Nov 08, 2019 at 05:47

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-20 Thread Laurent Vivier
On 20/11/2019 05:36, David Gibson wrote: > On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: >> On Tue, 19 Nov 2019 15:06:51 +0100 >> Laurent Vivier wrote: >> >>> On 19/11/2019 02:00, David Gibson wrote: On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: > On Fri, 8 Nov

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread Greg Kurz
On Wed, 20 Nov 2019 15:36:53 +1100 David Gibson wrote: > On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > > On Tue, 19 Nov 2019 15:06:51 +0100 > > Laurent Vivier wrote: > > > > > On 19/11/2019 02:00, David Gibson wrote: > > > > On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wro

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread David Gibson
On Tue, Nov 19, 2019 at 04:45:26PM +0100, Greg Kurz wrote: > On Tue, 19 Nov 2019 15:06:51 +0100 > Laurent Vivier wrote: > > > On 19/11/2019 02:00, David Gibson wrote: > > > On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: > > >> On Fri, 8 Nov 2019 16:40:35 +0100 > > >> Laurent Vivier

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread David Gibson
On Tue, Nov 19, 2019 at 05:13:29PM +0100, Lukáš Doktor wrote: > Dne 19. 11. 19 v 16:45 Greg Kurz napsal(a): > > On Tue, 19 Nov 2019 15:06:51 +0100 > > Laurent Vivier wrote: > > > >> On 19/11/2019 02:00, David Gibson wrote: > >>> On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: > On

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread Lukáš Doktor
Dne 19. 11. 19 v 16:45 Greg Kurz napsal(a): > On Tue, 19 Nov 2019 15:06:51 +0100 > Laurent Vivier wrote: > >> On 19/11/2019 02:00, David Gibson wrote: >>> On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: On Fri, 8 Nov 2019 16:40:35 +0100 Laurent Vivier wrote: > Comm

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread Greg Kurz
On Tue, 19 Nov 2019 15:06:51 +0100 Laurent Vivier wrote: > On 19/11/2019 02:00, David Gibson wrote: > > On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: > >> On Fri, 8 Nov 2019 16:40:35 +0100 > >> Laurent Vivier wrote: > >> > >>> Commit 29cb4187497d sets by default the VSMT to smp_thr

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-19 Thread Laurent Vivier
On 19/11/2019 02:00, David Gibson wrote: > On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: >> On Fri, 8 Nov 2019 16:40:35 +0100 >> Laurent Vivier wrote: >> >>> Commit 29cb4187497d sets by default the VSMT to smp_threads, >>> but older kernels (< 4.13) don't support that. >>> >>> We can

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-18 Thread David Gibson
On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote: > On Fri, 8 Nov 2019 16:40:35 +0100 > Laurent Vivier wrote: > > > Commit 29cb4187497d sets by default the VSMT to smp_threads, > > but older kernels (< 4.13) don't support that. > > > > We can reasonably restore previous behavior with t

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-08 Thread Greg Kurz
On Fri, 8 Nov 2019 18:03:08 +0100 Laurent Vivier wrote: > On 08/11/2019 17:47, Greg Kurz wrote: > > On Fri, 8 Nov 2019 16:40:35 +0100 > > Laurent Vivier wrote: > > > >> Commit 29cb4187497d sets by default the VSMT to smp_threads, > >> but older kernels (< 4.13) don't support that. > >> > >> We

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-08 Thread Laurent Vivier
On 08/11/2019 17:47, Greg Kurz wrote: > On Fri, 8 Nov 2019 16:40:35 +0100 > Laurent Vivier wrote: > >> Commit 29cb4187497d sets by default the VSMT to smp_threads, >> but older kernels (< 4.13) don't support that. >> >> We can reasonably restore previous behavior with this kernel >> to allow to

Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-08 Thread Greg Kurz
On Fri, 8 Nov 2019 16:40:35 +0100 Laurent Vivier wrote: > Commit 29cb4187497d sets by default the VSMT to smp_threads, > but older kernels (< 4.13) don't support that. > > We can reasonably restore previous behavior with this kernel > to allow to run QEMU as before. > > If VSMT is not supporte

[PATCH] spapr: Fix VSMT mode when it is not supported by the kernel

2019-11-08 Thread Laurent Vivier
Commit 29cb4187497d sets by default the VSMT to smp_threads, but older kernels (< 4.13) don't support that. We can reasonably restore previous behavior with this kernel to allow to run QEMU as before. If VSMT is not supported, VSMT will be set to MAX(8, smp_threads) as it is done for previous mac