From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59202)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZP4NM-0007Wk-1o
for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:53:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZP4NI-0002e4-R2
for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:53:35 -0400
Received: from mailout1.w1.samsung.com ([210.118.77.11]:33879)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZP4NI-0002dl-MD
for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:53:32 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout1.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NSW00C3DR961110@mailout1.w1.samsung.com> for
qemu-devel@nongnu.org; Tue, 11 Aug 2015 08:53:30 +0100 (BST)
From: Pavel Fedin
References:
In-reply-to:
Date: Tue, 11 Aug 2015 10:53:28 +0300
Message-id: <00b401d0d40a$d0125c10$70371430$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: quoted-printable
Content-language: ru
Subject: Re: [Qemu-devel] [PATCH v8 1/5] Implement GIC-500 base class
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: 'Peter Maydell'
Cc: 'Shlomo Pongratz' , 'Shlomo Pongratz' , 'QEMU Developers' , 'Christoffer Dall' , 'Eric Auger'
> > +#define GICV3_NCPU 64
>=20
> 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];
>=20
> 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