[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class
From: |
Pavel Fedin |
Subject: |
Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class |
Date: |
Tue, 11 Aug 2015 10:53:28 +0300 |
> > +#define GICV3_NCPU 64
>
> What is imposing this NCPU limit?
Currently qemu does not support Aff2 field. Can we have more than 64 CPUs only
with Aff0 and Aff1?
Well, if you really-really insist, i can just raise it to 128 and stop it
finally. It's actually Shlomo's heritage, and i believe his SW emulation will
decrease this down to 64 again. It can be changed at any moment, i don't see
any serious obstacles for it. You ask this question for the 3rd time IIRC, and
i answer the same thing for the 3rd time. Does this little #define really worth
it?
Shlomo, your word?
> > + qemu_irq parent_irq[GICV3_NCPU];
> > + qemu_irq parent_fiq[GICV3_NCPU];
>
> We should be allocating memory for the right number of irqs
> and fiqs based on the number of actual CPUs, because we don't
> really want a compile-time arbitrary limit on NCPUs.
These arrays are just placeholders, so we reserve the maximum possible space
for them. When we initialize the actual objects, of course we use only
'num_cpu' slots in each of the array.
sizeof(qemu_irq) is rather small (IIRC it's a pointer accompanied by number).
Does it worth g_malloc()ing them dynamically?
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, (continued)
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Pavel Fedin, 2015/08/12
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Peter Maydell, 2015/08/12
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Christoffer Dall, 2015/08/12
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Eric Auger, 2015/08/12
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Christoffer Dall, 2015/08/12
- Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM, Eric Auger, 2015/08/12
[Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Pavel Fedin, 2015/08/10
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Peter Maydell, 2015/08/10
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class,
Pavel Fedin <=
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Peter Maydell, 2015/08/11
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Pavel Fedin, 2015/08/11
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Peter Maydell, 2015/08/11
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Pavel Fedin, 2015/08/11
- Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class, Peter Maydell, 2015/08/11
[Qemu-devel] [PATCH v8 4/5] Initial implementation of vGICv3, Pavel Fedin, 2015/08/10
[Qemu-devel] [PATCH v8 5/5] Add gicversion option to virt machine, Pavel Fedin, 2015/08/10