From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH] ARM: KVM: Check the cpuid we're being asked to emulate. Date: Thu, 17 May 2012 09:28:16 +0930 Message-ID: <87likr3ch3.fsf@rustcorp.com.au> References: <20120312065134.8074.36949.stgit@ubuntu> <20120312065156.8074.33639.stgit@ubuntu> <87iphw87y4.fsf@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: android-virt@lists.cs.columbia.edu, kvm@vger.kernel.org, tech@virtualopensystems.com, Marc Zyngier To: Christoffer Dall , Rusty Russell Return-path: Received: from ozlabs.org ([203.10.76.45]:32963 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760907Ab2EQDhw convert rfc822-to-8bit (ORCPT ); Wed, 16 May 2012 23:37:52 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 14 May 2012 18:57:20 -0400, Christoffer Dall wrote: > On Thu, Mar 22, 2012 at 8:41 PM, Rusty Russell wrote: > > As our emulation gets more sophisticated, we need to know what CPU = model > > we're dealing with. =C2=A0Particularly for some of the nastier work= arounds. > > > > Let's start with Cortex A-15. =C2=A0We can then test the MIDR elsew= here in the > > code, knowing that it's one of a finite set of allowed values. (Revisiting this now) The intent is good, this patch is not the right way to do it though. I think want an explicit ioctl to tell the kernel what CPU; since the kernel initialized the regs, it needs to know. Cheers, Rusty.