From patchwork Tue Mar 21 21:10:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9637631 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 5068C60327 for ; Tue, 21 Mar 2017 21:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4214925E13 for ; Tue, 21 Mar 2017 21:12:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 365DD27D8D; Tue, 21 Mar 2017 21:12:49 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C370B25E13 for ; Tue, 21 Mar 2017 21:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=nwRf6Q24PQHEhBdeFtFCglz1DD2MRtaS7T+H7BzODpU=; b=XASSnupYOrURVtguatDdd4WLWJ Yw05af7spNJolak6sdPNMGsCO7WPonxRr7D6BUzrKU27xD8DhbqIGVrwAJw+3ip/mlGmTBPok144e zIyNet36jrLf14kibvLyrsEIwEE8MmA2GokBW4ptP1QQSHTgj2t9U5p/1kNUDhiRpCM0vjEsTlz3n aim2kgdNVEAuev79P3ll5cuIDXf5Wyza0qkPvs0r1Q4vB/20C5L5XMKEHBYvKF7BfTyuUez7iy4fk k4yG4iuNW4VaOaLah3xVvYHH+DnKFlAVf2vd0ozQNKWIQoVqF2yKqMYIY5HlU99tCZsiIBuae5ILb fuAvHzyA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqR58-000668-60; Tue, 21 Mar 2017 21:12:42 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqR3x-0004mt-Qv for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2017 21:11:33 +0000 Received: by mail-wm0-x229.google.com with SMTP id u132so21295119wmg.0 for ; Tue, 21 Mar 2017 14:11:09 -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=gIJZjw94RkfKzdpDeIEgn73cANCQWsXY8Ki3cpxmrLA=; b=FblS+I5RG9gTyT4jpQaFjser9vgW7jkCIv6s+xMxl+5hqLbKmQlOO2nbsfMMtlM6S9 N3Q1puOFrKmXXl30aAUAiCQIvw3dtctl+LOau8kztA2l7mj6Nfbqf2nx57nfa07srHRl F2HTogo7ohiaB/xaHMcjA4sXCTiUQvVMSgPtE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gIJZjw94RkfKzdpDeIEgn73cANCQWsXY8Ki3cpxmrLA=; b=JL9PbLztog4jhZ9OYXPx73sAucy4Ib/mHR/5CT3vyHRj9AfJtoQlsBDX2RuM4b99kJ VVwy7mYmvHlMaC/GfHIucvYh2+SNLlKX7D2NbXDJeW6tH8asdeGXti4VsTnExi/s5KKj alFEMrcY1UheAP18nGG2FZtVvBhZ6T5oF7+trg1BKrfCtGF24zUMOkpzEqxW5st7ZQdH p1q/qc6n/w/6hzFK1ePkbyf7tFKW+PjUZVaYAqTjipTNCNPJDeFOF8EOZXU2jZKSYdH/ BCx3y/FAgtC3Nb7pXbWKm1wUGBmFjdXFbLRsrHoZzaDu7PF+Ufr2OLdIpsPcseCO7wS4 NjNw== X-Gm-Message-State: AFeK/H1ROURIFkMQQW6fTQnWzX6LuPtS9SdgWFTCzZuJ6aW6AAmucirQEGY0deNs09gB9Ulg X-Received: by 10.28.6.203 with SMTP id 194mr4749733wmg.125.1490130667863; Tue, 21 Mar 2017 14:11:07 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id w130sm18953459wmg.0.2017.03.21.14.11.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 14:11:07 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 07/10] KVM: arm/arm64: vgic: Get rid of MISR and EISR fields Date: Tue, 21 Mar 2017 22:10:56 +0100 Message-Id: <20170321211059.8719-8-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170321211059.8719-1-cdall@linaro.org> References: <20170321211059.8719-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_141130_212490_D6FFD523 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Andre Przywara , Christoffer Dall , kvm@vger.kernel.org, Eric Auger 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: Christoffer Dall We don't use these fields anymore so let's nuke them completely. Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- include/kvm/arm_vgic.h | 4 ---- virt/kvm/arm/hyp/vgic-v2-sr.c | 2 -- virt/kvm/arm/hyp/vgic-v3-sr.c | 2 -- 3 files changed, 8 deletions(-) diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index fa12d99..581a59e 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h @@ -225,8 +225,6 @@ struct vgic_dist { struct vgic_v2_cpu_if { u32 vgic_hcr; u32 vgic_vmcr; - u32 vgic_misr; /* Saved only */ - u64 vgic_eisr; /* Saved only */ u64 vgic_elrsr; /* Saved only */ u32 vgic_apr; u32 vgic_lr[VGIC_V2_MAX_LRS]; @@ -236,8 +234,6 @@ struct vgic_v3_cpu_if { u32 vgic_hcr; u32 vgic_vmcr; u32 vgic_sre; /* Restored only, change ignored */ - u32 vgic_misr; /* Saved only */ - u32 vgic_eisr; /* Saved only */ u32 vgic_elrsr; /* Saved only */ u32 vgic_ap0r[4]; u32 vgic_ap1r[4]; diff --git a/virt/kvm/arm/hyp/vgic-v2-sr.c b/virt/kvm/arm/hyp/vgic-v2-sr.c index a4c3bb0..a3f18d3 100644 --- a/virt/kvm/arm/hyp/vgic-v2-sr.c +++ b/virt/kvm/arm/hyp/vgic-v2-sr.c @@ -77,9 +77,7 @@ void __hyp_text __vgic_v2_save_state(struct kvm_vcpu *vcpu) writel_relaxed(0, base + GICH_HCR); } else { - cpu_if->vgic_eisr = 0; cpu_if->vgic_elrsr = ~0UL; - cpu_if->vgic_misr = 0; cpu_if->vgic_apr = 0; } } diff --git a/virt/kvm/arm/hyp/vgic-v3-sr.c b/virt/kvm/arm/hyp/vgic-v3-sr.c index 41bbbb0..3d0b1dd 100644 --- a/virt/kvm/arm/hyp/vgic-v3-sr.c +++ b/virt/kvm/arm/hyp/vgic-v3-sr.c @@ -170,8 +170,6 @@ void __hyp_text __vgic_v3_save_state(struct kvm_vcpu *vcpu) cpu_if->vgic_ap1r[0] = read_gicreg(ICH_AP1R0_EL2); } } else { - cpu_if->vgic_misr = 0; - cpu_if->vgic_eisr = 0; cpu_if->vgic_elrsr = 0xffff; cpu_if->vgic_ap0r[0] = 0; cpu_if->vgic_ap0r[1] = 0;