From patchwork Thu Mar 29 05:15:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rusty Russell X-Patchwork-Id: 7516 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D0EAE199202 for ; Thu, 29 Mar 2012 05:18:33 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 99692A18573 for ; Thu, 29 Mar 2012 05:18:33 +0000 (UTC) Received: by iage36 with SMTP id e36so3406003iag.11 for ; Wed, 28 Mar 2012 22:18:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:x-gm-message-state; bh=zOBtq82UfbQziW2nJFzsaBcjE6v1GoBfmCX2iEXlRoM=; b=f/c3d0viWD2FN+UjvgQziu1isWMny8jfksKbe6PiZmI0oOTaEwvtpaDRqoftP/7pZI YJQqEd6ex54N1o0nvUjlwx688fIbgUHC9T5HT5VFJazymL9pP+UFwNZZWR1TsPbj8bAw GFkMbjObWLn68ISeD7hn2f00iWqkIVQgb7jltDjSk5wpD+HHIybOsr/wk5jHMkQGG32U Omxx2Rd3aUkKs+4IE2gZg+WXIMtfDoSM3O1wdqMMHF3Vwslfkab4OStP9hUhvH5zBI1m aBdxnCNHSCmyGHhiMdlh+7SBo3SgUqAOTX36Y67frR0omHY+7VnHLzPhkF6MhUQm/AKn KKaA== Received: by 10.43.134.199 with SMTP id id7mr19125575icc.21.1332998312982; Wed, 28 Mar 2012 22:18:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.5.205 with SMTP id 13csp21249ibw; Wed, 28 Mar 2012 22:18:31 -0700 (PDT) Received: by 10.68.224.99 with SMTP id rb3mr11684843pbc.79.1332998311642; Wed, 28 Mar 2012 22:18:31 -0700 (PDT) Received: from ozlabs.org (ozlabs.org. [203.10.76.45]) by mx.google.com with ESMTPS id s4si6826686pbc.15.2012.03.28.22.18.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Mar 2012 22:18:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rusty@ozlabs.org designates 203.10.76.45 as permitted sender) client-ip=203.10.76.45; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rusty@ozlabs.org designates 203.10.76.45 as permitted sender) smtp.mail=rusty@ozlabs.org Received: by ozlabs.org (Postfix, from userid 1011) id 2C07FB6FA5; Thu, 29 Mar 2012 16:18:27 +1100 (EST) From: Rusty Russell To: Christoffer Dall , android-virt@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: patches@linaro.org Subject: [PATCH 1/3] ARM: KVM: Remove l2ctlr write. In-Reply-To: <87y5qkxa88.fsf@rustcorp.com.au> References: <20120312065134.8074.36949.stgit@ubuntu> <87y5qkxa88.fsf@rustcorp.com.au> User-Agent: Notmuch/0.6.1-1 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Thu, 29 Mar 2012 15:45:50 +1030 Message-ID: <87ty18xa0p.fsf@rustcorp.com.au> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkGqejsedpiaVttlBcKNABC25tMm8risqRE+lrSDVjqk3ZqbqCFZosa5DUFL0ZDK8ZCaW3F 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 --- arch/arm/kvm/emulate.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c index e356d1c..aec1b6e 100644 --- a/arch/arm/kvm/emulate.c +++ b/arch/arm/kvm/emulate.c @@ -278,13 +278,10 @@ struct coproc_emulate { static const struct coproc_emulate coproc_emulate[] = { /* - * 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},