Received: from eggs.gnu.org ([2001:4830:134:3::10]:44931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJwk-0000w1-DB for qemu-devel@nongnu.org; Fri, 29 May 2015 09:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyJwh-0001Tw-50 for qemu-devel@nongnu.org; Fri, 29 May 2015 09:03:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJwh-0001TO-0n for qemu-devel@nongnu.org; Fri, 29 May 2015 09:03:31 -0400 Date: Fri, 29 May 2015 15:03:26 +0200 From: Igor Mammedov Message-ID: <20150529150326.451478f4@nial.brq.redhat.com> In-Reply-To: <01ab01d09a0a$c1bdb450$45391cf0$@samsung.com> References: <011801d0947a$a9e1e8a0$fda5b9e0$@samsung.com> <20150529103652.30d30a3d@nial.brq.redhat.com> <011d01d099ec$f4f5b7a0$dee126e0$@samsung.com> <20150529111858.4b7b0db9@nial.brq.redhat.com> <01ab01d09a0a$c1bdb450$45391cf0$@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Use Aff1 with mpidr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Fedin Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, 'Ashok Kumar' , 'Shlomo Pongratz' On Fri, 29 May 2015 15:26:57 +0300 Pavel Fedin wrote: > Hello! > > > That's what I see as correct way to go > > and along the way teach KVM to not derive mpidr encoding from vcpuid > > and use QEMU provided mpidr value, that way mpidr would be consistent. > > Yes, and this would make modelling of real hardware working much better. However, > unfortunately, i have just tested it, and it does not work. MPIDR can be set for the vCPU, > and i believe it will even give back the value when read. But PSCI completely ignores this > setting. > > > As it currently stands QEMU notion of mpidr and KVM's will diverge > > onece CPU count goes above 16 CPUs. > > Yes, but fortunately the code which cares about it (PSCI and Shlomo's GICv3 software > emulation) is not used with KVM. So i think we have no other choice if we want to be > compatible with current KVM APIs. Well KVM side should be fixed instead of driving us along wrong route. > > Kind regards, > Pavel Fedin > Expert Engineer > Samsung Electronics Research center Russia > >