From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: [PATCH] ARM: KVM: Remove l2ctlr write. Date: Fri, 23 Mar 2012 11:10:10 +1030 Message-ID: <87lims880l.fsf@rustcorp.com.au> References: <20120312065134.8074.36949.stgit@ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: tech@virtualopensystems.com To: Christoffer Dall , android-virt@lists.cs.columbia.edu, kvm@vger.kernel.org Return-path: Received: from ozlabs.org ([203.10.76.45]:45281 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754807Ab2CWAoV (ORCPT ); Thu, 22 Mar 2012 20:44:21 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Current guests don't do this, and it's not clear what we should do if they try to turn on ECC or set various RAM latencies. When someone does this, we'll have a better idea of what we should do about it. Signed-off-by: Rusty Russell diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c index c07eb2b..b83e4ba 100644 --- a/arch/arm/kvm/emulate.c +++ b/arch/arm/kvm/emulate.c @@ -290,13 +290,10 @@ static const struct coproc_emulate coproc_emulate[] = { { CRn( 0), CRm( 1), Op1( 0), Op2( 2), is32, READ, read_id_dfr0}, /* - * L2CTLR access: - * - * Ignore writes completely. + * L2CTLR access (guest wants to know #CPUs). * * FIXME: Hack Alert: Read zero as default case. */ - { CRn( 9), CRm( 0), Op1( 1), Op2( 2), is32, WRITE, ignore_write}, { CRn( 9), CRm( 0), Op1( 1), Op2( 2), is32, READ, read_l2ctlr}, { CRn( 9), CRm(DF), Op1(DF), Op2(DF), is32, WRITE, ignore_write}, { CRn( 9), CRm(DF), Op1(DF), Op2(DF), is32, READ, read_zero},