All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
@ 2022-05-20 18:09 Dao Lu
  2022-05-23  9:31 ` Alexandru Elisei
  0 siblings, 1 reply; 7+ messages in thread
From: Dao Lu @ 2022-05-20 18:09 UTC (permalink / raw)
  To: kvm; +Cc: Dao Lu

Signed-off-by: Dao Lu <daolu@rivosinc.com>
---
 riscv/include/asm/kernel.h | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 riscv/include/asm/kernel.h

diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
new file mode 100644
index 0000000..a2a8d9e
--- /dev/null
+++ b/riscv/include/asm/kernel.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __ASM_KERNEL_H
+#define __ASM_KERNEL_H
+
+#define NR_CPUS	4096
+
+#endif /* __ASM_KERNEL_H */
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-20 18:09 [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
@ 2022-05-23  9:31 ` Alexandru Elisei
  2022-05-23  9:34   ` Alexandru Elisei
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandru Elisei @ 2022-05-23  9:31 UTC (permalink / raw)
  To: Dao Lu; +Cc: kvm

Hi,

When I started working on the heterogeneous PMU series, support for the
riscv architecture wasn't merged in kvmtool, and after riscv was merged I
missed adding the header file.

This indeed fixes this compilation error:

In file included from include/linux/rbtree.h:32,
                 from include/kvm/devices.h:4,
                 from include/kvm/pci.h:10,
                 from include/kvm/vfio.h:6,
                 from include/kvm/kvm-config.h:5,
                 from include/kvm/kvm.h:6:
include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
    5 | #include "asm/kernel.h"
      |          ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
compilation terminated.
make: *** [Makefile:484: builtin-balloon.o] Error 1

Would be nice to include it in the commit message, so people googling for
that exact error message can come across this commit.

On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> Signed-off-by: Dao Lu <daolu@rivosinc.com>
> ---
>  riscv/include/asm/kernel.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>  create mode 100644 riscv/include/asm/kernel.h
> 
> diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> new file mode 100644
> index 0000000..a2a8d9e
> --- /dev/null
> +++ b/riscv/include/asm/kernel.h
> @@ -0,0 +1,8 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +
> +#ifndef __ASM_KERNEL_H
> +#define __ASM_KERNEL_H
> +
> +#define NR_CPUS	4096

In arch/riscv/Kconfig I see this:

config NR_CPUS
	int "Maximum number of CPUs (2-32)"
	range 2 32
	depends on SMP
	default "8"

Would you mind explaining where the 4096 number of CPUs comes from?

Thanks,
Alex

> +
> +#endif /* __ASM_KERNEL_H */
> -- 
> 2.36.0
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-23  9:31 ` Alexandru Elisei
@ 2022-05-23  9:34   ` Alexandru Elisei
  2022-05-23 16:04     ` Dao Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandru Elisei @ 2022-05-23  9:34 UTC (permalink / raw)
  To: will, kvm; +Cc: Dao Lu

Adding the kvmtool maintainers, I just noticed that they were missing.

On Mon, May 23, 2022 at 10:31:34AM +0100, Alexandru Elisei wrote:
> Hi,
> 
> When I started working on the heterogeneous PMU series, support for the
> riscv architecture wasn't merged in kvmtool, and after riscv was merged I
> missed adding the header file.
> 
> This indeed fixes this compilation error:
> 
> In file included from include/linux/rbtree.h:32,
>                  from include/kvm/devices.h:4,
>                  from include/kvm/pci.h:10,
>                  from include/kvm/vfio.h:6,
>                  from include/kvm/kvm-config.h:5,
>                  from include/kvm/kvm.h:6:
> include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
>     5 | #include "asm/kernel.h"
>       |          ^~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> compilation terminated.
> make: *** [Makefile:484: builtin-balloon.o] Error 1
> 
> Would be nice to include it in the commit message, so people googling for
> that exact error message can come across this commit.
> 
> On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> > Signed-off-by: Dao Lu <daolu@rivosinc.com>
> > ---
> >  riscv/include/asm/kernel.h | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >  create mode 100644 riscv/include/asm/kernel.h
> > 
> > diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> > new file mode 100644
> > index 0000000..a2a8d9e
> > --- /dev/null
> > +++ b/riscv/include/asm/kernel.h
> > @@ -0,0 +1,8 @@
> > +/* SPDX-License-Identifier: GPL-2.0 */
> > +
> > +#ifndef __ASM_KERNEL_H
> > +#define __ASM_KERNEL_H
> > +
> > +#define NR_CPUS	4096
> 
> In arch/riscv/Kconfig I see this:
> 
> config NR_CPUS
> 	int "Maximum number of CPUs (2-32)"
> 	range 2 32
> 	depends on SMP
> 	default "8"
> 
> Would you mind explaining where the 4096 number of CPUs comes from?
> 
> Thanks,
> Alex
> 
> > +
> > +#endif /* __ASM_KERNEL_H */
> > -- 
> > 2.36.0
> > 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-23  9:34   ` Alexandru Elisei
@ 2022-05-23 16:04     ` Dao Lu
  2022-05-23 16:28       ` Alexandru Elisei
  0 siblings, 1 reply; 7+ messages in thread
From: Dao Lu @ 2022-05-23 16:04 UTC (permalink / raw)
  To: Alexandru Elisei; +Cc: will, kvm

Hi Alex,

Thanks for pointing that out - I wasn't sure where the number came
from so I basically copied from the arm one just so the compilation
can pass.

I am happy to fix up the number to 32 and add the compile error
message to the commit message like you said - would something like
this work?
-------
Fixes the following compilation issue:

include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file
or directory
    5 | #include "asm/kernel.h"
-------
Thanks,
Dao

On Mon, May 23, 2022 at 2:33 AM Alexandru Elisei
<alexandru.elisei@arm.com> wrote:
>
> Adding the kvmtool maintainers, I just noticed that they were missing.
>
> On Mon, May 23, 2022 at 10:31:34AM +0100, Alexandru Elisei wrote:
> > Hi,
> >
> > When I started working on the heterogeneous PMU series, support for the
> > riscv architecture wasn't merged in kvmtool, and after riscv was merged I
> > missed adding the header file.
> >
> > This indeed fixes this compilation error:
> >
> > In file included from include/linux/rbtree.h:32,
> >                  from include/kvm/devices.h:4,
> >                  from include/kvm/pci.h:10,
> >                  from include/kvm/vfio.h:6,
> >                  from include/kvm/kvm-config.h:5,
> >                  from include/kvm/kvm.h:6:
> > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
> >     5 | #include "asm/kernel.h"
> >       |          ^~~~~~~~~~~~~~
> > cc1: all warnings being treated as errors
> > compilation terminated.
> > make: *** [Makefile:484: builtin-balloon.o] Error 1
> >
> > Would be nice to include it in the commit message, so people googling for
> > that exact error message can come across this commit.
> >
> > On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> > > Signed-off-by: Dao Lu <daolu@rivosinc.com>
> > > ---
> > >  riscv/include/asm/kernel.h | 8 ++++++++
> > >  1 file changed, 8 insertions(+)
> > >  create mode 100644 riscv/include/asm/kernel.h
> > >
> > > diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> > > new file mode 100644
> > > index 0000000..a2a8d9e
> > > --- /dev/null
> > > +++ b/riscv/include/asm/kernel.h
> > > @@ -0,0 +1,8 @@
> > > +/* SPDX-License-Identifier: GPL-2.0 */
> > > +
> > > +#ifndef __ASM_KERNEL_H
> > > +#define __ASM_KERNEL_H
> > > +
> > > +#define NR_CPUS    4096
> >
> > In arch/riscv/Kconfig I see this:
> >
> > config NR_CPUS
> >       int "Maximum number of CPUs (2-32)"
> >       range 2 32
> >       depends on SMP
> >       default "8"
> >
> > Would you mind explaining where the 4096 number of CPUs comes from?
> >
> > Thanks,
> > Alex
> >
> > > +
> > > +#endif /* __ASM_KERNEL_H */
> > > --
> > > 2.36.0
> > >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-23 16:04     ` Dao Lu
@ 2022-05-23 16:28       ` Alexandru Elisei
  2022-05-23 19:15         ` Dao Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandru Elisei @ 2022-05-23 16:28 UTC (permalink / raw)
  To: Dao Lu; +Cc: will, kvm

Hi,

On Mon, May 23, 2022 at 09:04:04AM -0700, Dao Lu wrote:
> Hi Alex,
> 
> Thanks for pointing that out - I wasn't sure where the number came
> from so I basically copied from the arm one just so the compilation
> can pass.

I see, I was worried that I was looking in the wrong place.

> 
> I am happy to fix up the number to 32 and add the compile error
> message to the commit message like you said - would something like
> this work?
> -------
> Fixes the following compilation issue:
> 
> include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file
> or directory
>     5 | #include "asm/kernel.h"
> -------

Sounds good, thanks:
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>

With the error message added:
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>

Thanks,
Alex

> Thanks,
> Dao
> 
> On Mon, May 23, 2022 at 2:33 AM Alexandru Elisei
> <alexandru.elisei@arm.com> wrote:
> >
> > Adding the kvmtool maintainers, I just noticed that they were missing.
> >
> > On Mon, May 23, 2022 at 10:31:34AM +0100, Alexandru Elisei wrote:
> > > Hi,
> > >
> > > When I started working on the heterogeneous PMU series, support for the
> > > riscv architecture wasn't merged in kvmtool, and after riscv was merged I
> > > missed adding the header file.
> > >
> > > This indeed fixes this compilation error:
> > >
> > > In file included from include/linux/rbtree.h:32,
> > >                  from include/kvm/devices.h:4,
> > >                  from include/kvm/pci.h:10,
> > >                  from include/kvm/vfio.h:6,
> > >                  from include/kvm/kvm-config.h:5,
> > >                  from include/kvm/kvm.h:6:
> > > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
> > >     5 | #include "asm/kernel.h"
> > >       |          ^~~~~~~~~~~~~~
> > > cc1: all warnings being treated as errors
> > > compilation terminated.
> > > make: *** [Makefile:484: builtin-balloon.o] Error 1
> > >
> > > Would be nice to include it in the commit message, so people googling for
> > > that exact error message can come across this commit.
> > >
> > > On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> > > > Signed-off-by: Dao Lu <daolu@rivosinc.com>
> > > > ---
> > > >  riscv/include/asm/kernel.h | 8 ++++++++
> > > >  1 file changed, 8 insertions(+)
> > > >  create mode 100644 riscv/include/asm/kernel.h
> > > >
> > > > diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> > > > new file mode 100644
> > > > index 0000000..a2a8d9e
> > > > --- /dev/null
> > > > +++ b/riscv/include/asm/kernel.h
> > > > @@ -0,0 +1,8 @@
> > > > +/* SPDX-License-Identifier: GPL-2.0 */
> > > > +
> > > > +#ifndef __ASM_KERNEL_H
> > > > +#define __ASM_KERNEL_H
> > > > +
> > > > +#define NR_CPUS    4096
> > >
> > > In arch/riscv/Kconfig I see this:
> > >
> > > config NR_CPUS
> > >       int "Maximum number of CPUs (2-32)"
> > >       range 2 32
> > >       depends on SMP
> > >       default "8"
> > >
> > > Would you mind explaining where the 4096 number of CPUs comes from?
> > >
> > > Thanks,
> > > Alex
> > >
> > > > +
> > > > +#endif /* __ASM_KERNEL_H */
> > > > --
> > > > 2.36.0
> > > >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-23 16:28       ` Alexandru Elisei
@ 2022-05-23 19:15         ` Dao Lu
  2022-05-24  8:11           ` Alexandru Elisei
  0 siblings, 1 reply; 7+ messages in thread
From: Dao Lu @ 2022-05-23 19:15 UTC (permalink / raw)
  To: Alexandru Elisei; +Cc: will, kvm

Hi Alex,

After talking with my colleague I have some additional questions about
what number we want to put there, as of now there is already a patch
that will increase the range in Kconfig to 2-512:

https://lore.kernel.org/lkml/CAOnJCUJrN4frY_OdQzO-yr5CrDLvj=ge9KY2d=XnGvAF-uQNvQ@mail.gmail.com/T/

It seems like a moving target and as riscv develops we kinda expect
this number will grow further. Do you think it is ok for me to at
least set it to 512, if not 4096 at this time?

Thanks,
Dao

On Mon, May 23, 2022 at 9:27 AM Alexandru Elisei
<alexandru.elisei@arm.com> wrote:
>
> Hi,
>
> On Mon, May 23, 2022 at 09:04:04AM -0700, Dao Lu wrote:
> > Hi Alex,
> >
> > Thanks for pointing that out - I wasn't sure where the number came
> > from so I basically copied from the arm one just so the compilation
> > can pass.
>
> I see, I was worried that I was looking in the wrong place.
>
> >
> > I am happy to fix up the number to 32 and add the compile error
> > message to the commit message like you said - would something like
> > this work?
> > -------
> > Fixes the following compilation issue:
> >
> > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file
> > or directory
> >     5 | #include "asm/kernel.h"
> > -------
>
> Sounds good, thanks:
> Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
>
> With the error message added:
> Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
>
> Thanks,
> Alex
>
> > Thanks,
> > Dao
> >
> > On Mon, May 23, 2022 at 2:33 AM Alexandru Elisei
> > <alexandru.elisei@arm.com> wrote:
> > >
> > > Adding the kvmtool maintainers, I just noticed that they were missing.
> > >
> > > On Mon, May 23, 2022 at 10:31:34AM +0100, Alexandru Elisei wrote:
> > > > Hi,
> > > >
> > > > When I started working on the heterogeneous PMU series, support for the
> > > > riscv architecture wasn't merged in kvmtool, and after riscv was merged I
> > > > missed adding the header file.
> > > >
> > > > This indeed fixes this compilation error:
> > > >
> > > > In file included from include/linux/rbtree.h:32,
> > > >                  from include/kvm/devices.h:4,
> > > >                  from include/kvm/pci.h:10,
> > > >                  from include/kvm/vfio.h:6,
> > > >                  from include/kvm/kvm-config.h:5,
> > > >                  from include/kvm/kvm.h:6:
> > > > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
> > > >     5 | #include "asm/kernel.h"
> > > >       |          ^~~~~~~~~~~~~~
> > > > cc1: all warnings being treated as errors
> > > > compilation terminated.
> > > > make: *** [Makefile:484: builtin-balloon.o] Error 1
> > > >
> > > > Would be nice to include it in the commit message, so people googling for
> > > > that exact error message can come across this commit.
> > > >
> > > > On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> > > > > Signed-off-by: Dao Lu <daolu@rivosinc.com>
> > > > > ---
> > > > >  riscv/include/asm/kernel.h | 8 ++++++++
> > > > >  1 file changed, 8 insertions(+)
> > > > >  create mode 100644 riscv/include/asm/kernel.h
> > > > >
> > > > > diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> > > > > new file mode 100644
> > > > > index 0000000..a2a8d9e
> > > > > --- /dev/null
> > > > > +++ b/riscv/include/asm/kernel.h
> > > > > @@ -0,0 +1,8 @@
> > > > > +/* SPDX-License-Identifier: GPL-2.0 */
> > > > > +
> > > > > +#ifndef __ASM_KERNEL_H
> > > > > +#define __ASM_KERNEL_H
> > > > > +
> > > > > +#define NR_CPUS    4096
> > > >
> > > > In arch/riscv/Kconfig I see this:
> > > >
> > > > config NR_CPUS
> > > >       int "Maximum number of CPUs (2-32)"
> > > >       range 2 32
> > > >       depends on SMP
> > > >       default "8"
> > > >
> > > > Would you mind explaining where the 4096 number of CPUs comes from?
> > > >
> > > > Thanks,
> > > > Alex
> > > >
> > > > > +
> > > > > +#endif /* __ASM_KERNEL_H */
> > > > > --
> > > > > 2.36.0
> > > > >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
  2022-05-23 19:15         ` Dao Lu
@ 2022-05-24  8:11           ` Alexandru Elisei
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandru Elisei @ 2022-05-24  8:11 UTC (permalink / raw)
  To: Dao Lu; +Cc: will, kvm

Hi,

On Mon, May 23, 2022 at 12:15:55PM -0700, Dao Lu wrote:
> Hi Alex,
> 
> After talking with my colleague I have some additional questions about
> what number we want to put there, as of now there is already a patch
> that will increase the range in Kconfig to 2-512:
> 
> https://lore.kernel.org/lkml/CAOnJCUJrN4frY_OdQzO-yr5CrDLvj=ge9KY2d=XnGvAF-uQNvQ@mail.gmail.com/T/
> 
> It seems like a moving target and as riscv develops we kinda expect
> this number will grow further. Do you think it is ok for me to at
> least set it to 512, if not 4096 at this time?

It's up to you in the end, I'm not familiar with the riscv architecture.

NR_CPUS is only used at the moment when creating a cpumask, where it
represents the maximum number of bits in the bitmask (bits, not bytes). So
NR_CPUS=512 means that the cpumask will contain 8 unsigned longs, while with
4096 it will contain 64 unsigned longs.

Cpumasks are only used by the arm64 code so far, so the value that you
choose won't affect existing code.

Thanks,
Alex

> 
> Thanks,
> Dao
> 
> On Mon, May 23, 2022 at 9:27 AM Alexandru Elisei
> <alexandru.elisei@arm.com> wrote:
> >
> > Hi,
> >
> > On Mon, May 23, 2022 at 09:04:04AM -0700, Dao Lu wrote:
> > > Hi Alex,
> > >
> > > Thanks for pointing that out - I wasn't sure where the number came
> > > from so I basically copied from the arm one just so the compilation
> > > can pass.
> >
> > I see, I was worried that I was looking in the wrong place.
> >
> > >
> > > I am happy to fix up the number to 32 and add the compile error
> > > message to the commit message like you said - would something like
> > > this work?
> > > -------
> > > Fixes the following compilation issue:
> > >
> > > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file
> > > or directory
> > >     5 | #include "asm/kernel.h"
> > > -------
> >
> > Sounds good, thanks:
> > Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
> >
> > With the error message added:
> > Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
> >
> > Thanks,
> > Alex
> >
> > > Thanks,
> > > Dao
> > >
> > > On Mon, May 23, 2022 at 2:33 AM Alexandru Elisei
> > > <alexandru.elisei@arm.com> wrote:
> > > >
> > > > Adding the kvmtool maintainers, I just noticed that they were missing.
> > > >
> > > > On Mon, May 23, 2022 at 10:31:34AM +0100, Alexandru Elisei wrote:
> > > > > Hi,
> > > > >
> > > > > When I started working on the heterogeneous PMU series, support for the
> > > > > riscv architecture wasn't merged in kvmtool, and after riscv was merged I
> > > > > missed adding the header file.
> > > > >
> > > > > This indeed fixes this compilation error:
> > > > >
> > > > > In file included from include/linux/rbtree.h:32,
> > > > >                  from include/kvm/devices.h:4,
> > > > >                  from include/kvm/pci.h:10,
> > > > >                  from include/kvm/vfio.h:6,
> > > > >                  from include/kvm/kvm-config.h:5,
> > > > >                  from include/kvm/kvm.h:6:
> > > > > include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory
> > > > >     5 | #include "asm/kernel.h"
> > > > >       |          ^~~~~~~~~~~~~~
> > > > > cc1: all warnings being treated as errors
> > > > > compilation terminated.
> > > > > make: *** [Makefile:484: builtin-balloon.o] Error 1
> > > > >
> > > > > Would be nice to include it in the commit message, so people googling for
> > > > > that exact error message can come across this commit.
> > > > >
> > > > > On Fri, May 20, 2022 at 11:09:46AM -0700, Dao Lu wrote:
> > > > > > Signed-off-by: Dao Lu <daolu@rivosinc.com>
> > > > > > ---
> > > > > >  riscv/include/asm/kernel.h | 8 ++++++++
> > > > > >  1 file changed, 8 insertions(+)
> > > > > >  create mode 100644 riscv/include/asm/kernel.h
> > > > > >
> > > > > > diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h
> > > > > > new file mode 100644
> > > > > > index 0000000..a2a8d9e
> > > > > > --- /dev/null
> > > > > > +++ b/riscv/include/asm/kernel.h
> > > > > > @@ -0,0 +1,8 @@
> > > > > > +/* SPDX-License-Identifier: GPL-2.0 */
> > > > > > +
> > > > > > +#ifndef __ASM_KERNEL_H
> > > > > > +#define __ASM_KERNEL_H
> > > > > > +
> > > > > > +#define NR_CPUS    4096
> > > > >
> > > > > In arch/riscv/Kconfig I see this:
> > > > >
> > > > > config NR_CPUS
> > > > >       int "Maximum number of CPUs (2-32)"
> > > > >       range 2 32
> > > > >       depends on SMP
> > > > >       default "8"
> > > > >
> > > > > Would you mind explaining where the 4096 number of CPUs comes from?
> > > > >
> > > > > Thanks,
> > > > > Alex
> > > > >
> > > > > > +
> > > > > > +#endif /* __ASM_KERNEL_H */
> > > > > > --
> > > > > > 2.36.0
> > > > > >

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-24  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 18:09 [PATCH kvmtool] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
2022-05-23  9:31 ` Alexandru Elisei
2022-05-23  9:34   ` Alexandru Elisei
2022-05-23 16:04     ` Dao Lu
2022-05-23 16:28       ` Alexandru Elisei
2022-05-23 19:15         ` Dao Lu
2022-05-24  8:11           ` Alexandru Elisei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.