Received: from eggs.gnu.org ([2001:4830:134:3::10]:39837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1tXI-0006W4-TO for qemu-devel@nongnu.org; Mon, 08 Jun 2015 05:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1tXE-00047X-S3 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 05:40:04 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:45094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1tXE-00046j-MQ for qemu-devel@nongnu.org; Mon, 08 Jun 2015 05:40:00 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NPM005FCDILQR80@mailout4.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 08 Jun 2015 10:39:57 +0100 (BST) From: Pavel Fedin References: <1433436037-5476-1-git-send-email-shlomopongratz@gmail.com> <1433436037-5476-2-git-send-email-shlomopongratz@gmail.com> <01ca01d0a1bf$ca206310$5e612930$@samsung.com> In-reply-to: Date: Mon, 08 Jun 2015 12:39:56 +0300 Message-id: <024701d0a1cf$15092f10$3f1b8d30$@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 RFC V3 1/4] Use Aff1 with mpidr This is an improved and KVM-aware alternative to List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Peter Maydell' Cc: 'Eric Auger' , 'Shlomo Pongratz' , 'Shlomo Pongratz' , 'QEMU Developers' , 'Shannon Zhao' , 'Ashok Kumar' , 'Igor Mammedov' Hello! > > I thought about it when i developed this, but in my implementation > > affinity bits are assigned during CPU instantiation, while feature > > bits can be added later, during realize. I could tweak set_feature() > > to sync up MPIDR value but perhaps it isn't the best thing to do. >=20 > Can we not just assign the whole thing at realize? kvm_arch_init_vcpu() is called before realize, therefore i would have = to track down whether KVM is active or not. > You need to fix the 32-bit side anyway. Actually already done in my working tree. > I still think that having the whole mpidr in the struct will > be less confusing. Ok, if you are really insisting on that, i can assign IDs where this is = currently done and add feature bits in arm_cpu_realizefn(). Last argument: the rest of qemu code (property assignment, lookup in = PSCI, etc) actually needs IDs without feature bits. The only function = which needs full version is mpidr_read(). So does it still worth of = putting AND with bitmasks everywhere? May be just rename 'mpidr' to = something like 'mp_id' ? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia