From patchwork Tue Sep 27 18:05:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9352583 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C54760757 for ; Tue, 27 Sep 2016 18:20:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01A20291FD for ; Tue, 27 Sep 2016 18:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E92AB29256; Tue, 27 Sep 2016 18:20:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B4FD3291FD for ; Tue, 27 Sep 2016 18:20:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bowxj-0000GR-AR; Tue, 27 Sep 2016 18:18:39 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bowm9-0005Vg-8Q for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2016 18:06:44 +0000 Received: by mail-wm0-x231.google.com with SMTP id l132so190654349wmf.0 for ; Tue, 27 Sep 2016 11:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uNeUq3qShibl28kDy3nuoOeaydyMykLk7WHhyrYqFXk=; b=kCSiU7AmURS0bDEnqIvIZpr4YU5XHiKSCRfzZk7Zy6caoZqSfb8fz+llCHxaMMxDSn 4oq0ujcwMsQgQav4lhmZiD2kkxJr46biVXqkBnbX24uJE/FNOQz4aPCAYtWTNhJPEfrT m/QGP5IlAnm0x51mdBxEyzeUJFNM82lJCa4dU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uNeUq3qShibl28kDy3nuoOeaydyMykLk7WHhyrYqFXk=; b=ChJ9YXycCKUbF8FL/Y8/kE1hFbKsOSQ1EhKJ81+omhDCNZrPJwDPjCJwzS/8g5lvXp GdXj9icaZDXb2BW85W3WBMjv0e2YDSWO44zwL+IJPHFxmG4TAPj+FE7bSBfN0sPXILGO ziqwndi/3/315GS8obItD3cGkV7ZMnFaBbgSDGP9rhQ3W+gqbLuoLQP1cg4tx9d32Y0D WFadQgxfjs7CGSfstqwmmkyNEZLwTP3wzh2mN8xnStldsDPb/W6l2tq1l1bCNqh+8vFT kM4FQmIWf+R7tvISCA7zu36ku6SBl2CZQXGr62RIrahNBRgdaIg/eC10TZReu+pPhhgP bEeA== X-Gm-Message-State: AA6/9RkbxnWzJfIayEoQPNMGBKVX1JtfzLBWAVSLfe8JRGcvgVE6RcbmaLPZg5zp950WngNV X-Received: by 10.28.97.69 with SMTP id v66mr4150062wmb.12.1474999579818; Tue, 27 Sep 2016 11:06:19 -0700 (PDT) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id k2sm17932539wmg.23.2016.09.27.11.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Sep 2016 11:06:18 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 34/50] arm/arm64: KVM: Remove external abort test from MMIO handling Date: Tue, 27 Sep 2016 20:05:42 +0200 Message-Id: <20160927180558.14699-35-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160927180558.14699-1-christoffer.dall@linaro.org> References: <20160927180558.14699-1-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160927_110641_635673_FEFB4339 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marc Zyngier As we know handle external aborts pretty early, we can get rid of its handling in the MMIO code (which was a bit odd to begin with...). Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/kvm/mmio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/kvm/mmio.c b/arch/arm/kvm/mmio.c index 10f80a6..b6e715f 100644 --- a/arch/arm/kvm/mmio.c +++ b/arch/arm/kvm/mmio.c @@ -126,12 +126,6 @@ static int decode_hsr(struct kvm_vcpu *vcpu, bool *is_write, int *len) int access_size; bool sign_extend; - if (kvm_vcpu_dabt_isextabt(vcpu)) { - /* cache operation on I/O addr, tell guest unsupported */ - kvm_inject_dabt(vcpu, kvm_vcpu_get_hfar(vcpu)); - return 1; - } - if (kvm_vcpu_dabt_iss1tw(vcpu)) { /* page table accesses IO mem: tell guest to fix its TTBR */ kvm_inject_dabt(vcpu, kvm_vcpu_get_hfar(vcpu));