From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH v5 12/13] ARM: KVM: Fix guest view of MPIDR Date: Mon, 12 Dec 2011 16:32:46 +0200 Message-ID: <4EE6108E.8050001@redhat.com> References: <20111211102403.21693.6887.stgit@localhost> <20111211102536.21693.48826.stgit@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: android-virt@lists.cs.columbia.edu, kvm@vger.kernel.org, Marc.Zyngier@arm.com, catalin.marinas@arm.com, tech@virtualopensystems.com, peter.maydell@linaro.org To: Christoffer Dall Return-path: Received: from mx1.redhat.com ([209.132.183.28]:3073 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753235Ab1LLOdB (ORCPT ); Mon, 12 Dec 2011 09:33:01 -0500 In-Reply-To: <20111211102536.21693.48826.stgit@localhost> Sender: kvm-owner@vger.kernel.org List-ID: On 12/11/2011 12:25 PM, Christoffer Dall wrote: > From: Marc Zyngier > > A guest may need to know which CPU it has booted on (and Linux does). > Now that we can run KVM on a SMP host, QEMU may be running on any s/QEMU/userspace/ > CPU. In that case, directly reading MPIDR will give an inconsistent > view on the guest CPU number (among other problems). > > The solution is to use the VMPIDR register, which is computed by > using the host MPIDR and overriding the low bits with KVM vcpu_id. > > Signed-off-by: Marc Zyngier Since you're posting the patch for (eventual) inclusion, you need to sign off as well. -- error compiling committee.c: too many arguments to function