From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2HGb-00007m-U2 for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2HGW-0007w6-BR for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:00:25 -0400 Received: from foss.arm.com ([217.140.101.70]:41360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2HGW-0007uj-57 for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:00:20 -0400 Message-ID: <5576C559.2000902@arm.com> Date: Tue, 09 Jun 2015 11:52:09 +0100 From: Marc Zyngier MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] should KVM or userspace be the one which decides what MIPIDR/affinity values to assign to vcpus? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Igor Mammedov Cc: Shlomo Pongratz , Shlomo Pongratz , Pavel Fedin , QEMU Developers , Shannon Zhao , Ashok Kumar , "kvmarm@lists.cs.columbia.edu" On 08/06/15 11:52, Peter Maydell wrote: > On 8 June 2015 at 11:32, Igor Mammedov wrote: >> On Thu, 4 Jun 2015 18:17:39 +0100 >> Peter Maydell wrote: >>> On 4 June 2015 at 17:40, Shlomo Pongratz wrote: >>> In order for it to work correctly we must use MPIDR values in >>> the device tree which match the MPIDR values the kernel has picked >>> for the vcpus, so ask KVM what those values are. > >> Could we set QEMU's generated mpidr in kernel instead of pulling it from kernel, >> like we do with APIC ID in x86 and fix kernel not to reset it its own value >> (i.e. untie mpidr from vcpuid)? >> >> Then later we could move setting mpidr from kvm_arch_init_vcpu() into >> board code which should be setting it, since it knows/defines what topology it has. > > This is a question better asked on the kvmarm list (which I have cc'd), > because that is where the kernel folks hang out... Care to provide some context? Why is this required? Thanks, M. -- Jazz is not dead. It just smells funny...