All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8
@ 2014-08-19 21:33 Joel Schopp
  2014-08-19 22:43 ` Peter Maydell
  2014-08-29 13:18 ` Peter Maydell
  0 siblings, 2 replies; 5+ messages in thread
From: Joel Schopp @ 2014-08-19 21:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell

I'm running on a system with 8 cpus and it would be nice to have qemu
support all of them.  The attached patch does that and has been tested.

That said, I'm not sure if 8 is enough or if we want to bump this even higher
now before systems with many more cpus come along. 255 anyone?

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Joel Schopp <joel.schopp@amd.com>
---
 hw/arm/virt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 06f4fad..7a09260 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -605,7 +605,7 @@ static QEMUMachine machvirt_a15_machine = {
     .name = "virt",
     .desc = "ARM Virtual Machine",
     .init = machvirt_init,
-    .max_cpus = 4,
+    .max_cpus = 8,
     .has_dynamic_sysbus = true,
 };
 

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

* Re: [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8
  2014-08-19 21:33 [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8 Joel Schopp
@ 2014-08-19 22:43 ` Peter Maydell
  2014-08-20 15:08   ` Joel Schopp
  2014-08-29 13:18 ` Peter Maydell
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2014-08-19 22:43 UTC (permalink / raw)
  To: Joel Schopp; +Cc: QEMU Developers

On 19 August 2014 22:33, Joel Schopp <joel.schopp@amd.com> wrote:
> I'm running on a system with 8 cpus and it would be nice to have qemu
> support all of them.  The attached patch does that and has been tested.
>
> That said, I'm not sure if 8 is enough or if we want to bump this even higher
> now before systems with many more cpus come along. 255 anyone?

8 is the limit for a GICv2 system. But yes, we could have 8 CPUs
here; I think this was just copied over from the vexpress boards
(which have 4 because that hardware has 4.)

thanks
-- PMM

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

* Re: [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8
  2014-08-19 22:43 ` Peter Maydell
@ 2014-08-20 15:08   ` Joel Schopp
  2014-08-20 15:55     ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Schopp @ 2014-08-20 15:08 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers


On 08/19/2014 05:43 PM, Peter Maydell wrote:
> On 19 August 2014 22:33, Joel Schopp <joel.schopp@amd.com> wrote:
>> I'm running on a system with 8 cpus and it would be nice to have qemu
>> support all of them.  The attached patch does that and has been tested.
>>
>> That said, I'm not sure if 8 is enough or if we want to bump this even higher
>> now before systems with many more cpus come along. 255 anyone?
> 8 is the limit for a GICv2 system. But yes, we could have 8 CPUs
> here; I think this was just copied over from the vexpress boards
> (which have 4 because that hardware has 4.)
So the question is do we want to wait for the GICv3 changes to be merged
to bump this to 255?  If we do want to wait then applying my patch that
bumps it to 8 is the right thing to do now.

-Joel

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

* Re: [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8
  2014-08-20 15:08   ` Joel Schopp
@ 2014-08-20 15:55     ` Peter Maydell
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2014-08-20 15:55 UTC (permalink / raw)
  To: Joel Schopp; +Cc: QEMU Developers

On 20 August 2014 16:08, Joel Schopp <joel.schopp@amd.com> wrote:
>
> On 08/19/2014 05:43 PM, Peter Maydell wrote:
>> On 19 August 2014 22:33, Joel Schopp <joel.schopp@amd.com> wrote:
>>> I'm running on a system with 8 cpus and it would be nice to have qemu
>>> support all of them.  The attached patch does that and has been tested.
>>>
>>> That said, I'm not sure if 8 is enough or if we want to bump this even higher
>>> now before systems with many more cpus come along. 255 anyone?
>> 8 is the limit for a GICv2 system. But yes, we could have 8 CPUs
>> here; I think this was just copied over from the vexpress boards
>> (which have 4 because that hardware has 4.)
> So the question is do we want to wait for the GICv3 changes to be merged
> to bump this to 255?  If we do want to wait then applying my patch that
> bumps it to 8 is the right thing to do now.

I'm not currently aware of any GICv3 support patches for QEMU
(I know there is some kernel work); it's the view the guest sees
that matters, and for QEMU based guests that has to be v2
currently.

So yes, we should bump to 8 for now.

-- PMM

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

* Re: [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8
  2014-08-19 21:33 [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8 Joel Schopp
  2014-08-19 22:43 ` Peter Maydell
@ 2014-08-29 13:18 ` Peter Maydell
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2014-08-29 13:18 UTC (permalink / raw)
  To: Joel Schopp; +Cc: QEMU Developers

On 19 August 2014 22:33, Joel Schopp <joel.schopp@amd.com> wrote:
> I'm running on a system with 8 cpus and it would be nice to have qemu
> support all of them.  The attached patch does that and has been tested.
>
> That said, I'm not sure if 8 is enough or if we want to bump this even higher
> now before systems with many more cpus come along. 255 anyone?
>
> Cc: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Joel Schopp <joel.schopp@amd.com>
> ---
>  hw/arm/virt.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index 06f4fad..7a09260 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -605,7 +605,7 @@ static QEMUMachine machvirt_a15_machine = {
>      .name = "virt",
>      .desc = "ARM Virtual Machine",
>      .init = machvirt_init,
> -    .max_cpus = 4,
> +    .max_cpus = 8,
>      .has_dynamic_sysbus = true,
>  };

Applied to target-arm.next, thanks. (I had to fix up a conflict
because you seem to have based this patch on something other
than upstream master -- .has_dynamic_sysbus doesn't exist
there.)

-- PMM

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

end of thread, other threads:[~2014-08-29 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-19 21:33 [Qemu-devel] [PATCH] aarch64: raise max_cpus to 8 Joel Schopp
2014-08-19 22:43 ` Peter Maydell
2014-08-20 15:08   ` Joel Schopp
2014-08-20 15:55     ` Peter Maydell
2014-08-29 13:18 ` Peter Maydell

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.