Message ID | 20210924125359.2587041-25-tabba@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=n783=OO=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1596C433EF for <linux-arm-kernel@archiver.kernel.org>; Fri, 24 Sep 2021 13:14:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9073E60F41 for <linux-arm-kernel@archiver.kernel.org>; Fri, 24 Sep 2021 13:14:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9073E60F41 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ATM0GG4nseSX8mZcClye0J8Sa7EvB6Ex9hLD733Onuk=; b=AtEaOpY4U9vPH+b0mOZT1rsR1H pUBXe62sAHOhsEEEh+F5Oo9pIuW1Yn1ImUpohWQ+WJAqpZJx6PxhGhHvjwMLqKOdhXhIt9fHk0rY2 0yPsfYI1qB/jlGO8rcZRHznJb7RT053vULS89hXtPmdNbZ2SC/qdbwt10Dns36QL8aSa2pywBA2Yx 8l0MGvTRz6qcdE6EOT3/ZmHRn1JGYo0XdqhW5BJPAJK9FKUN4gau/BsUT3BEebvw0D02VVyNg6bMW 9bJtnFBL3bPAkyOqjXjr7abLern/xDs6loqeomi8BZ3+YfRd+RePrOfhooams2dhSxAx2HDiHo9X3 8AdWIjlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTl0H-00ETu6-Gp; Fri, 24 Sep 2021 13:12:38 +0000 Received: from mail-qk1-x749.google.com ([2607:f8b0:4864:20::749]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTkj7-00EMIz-CB for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 12:54:54 +0000 Received: by mail-qk1-x749.google.com with SMTP id k12-20020a05620a0b8c00b003d5c8646ec2so31749275qkh.20 for <linux-arm-kernel@lists.infradead.org>; Fri, 24 Sep 2021 05:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=AJoOKnLyUcMeZ4bJL08afGQB1XmHWoCmbvvxsT90R1w=; b=TMcksozilNhor18k73HxG4gyzfpGIMQctnpgCoaFfUQvCdISS/VjwUjfT8F/wp9IsG PSTiJU2S+0umLVLDZpYsMf1X3pMpaNn1K70khBdD2PsgT9nUFaSWbqDDz8wWIAjd3R4y /7Ix41f24yh5cDWqxan5dgEUP+g+Bo06EILO7FWcopUsktqWgXUJKfnWaJu6p5D5A487 lIeMXBorGqKldcdOiUFmwoM5kyBRg8Qc7dDf/ZIiCMR3KJ7Uus5G7B0UWsPVzQESkXiF i4fjNfKyLfq1Hj9F3RZ2SsYLfw6L37gMokU2uTeaiLZVuxDA75sy3iTlTonCGSWvpuEB lnGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=AJoOKnLyUcMeZ4bJL08afGQB1XmHWoCmbvvxsT90R1w=; b=sw+eFwIeULHxKgbL597HppNhOeAJ6ab0CM5gThLzDdnnxss5nawKQBdvhx5ymdXu5M ui47CPMXNiNKq92d5VEiPTOWiuubyoKMybGUCiKKCMWIf123s3NbL74e1OM6RFe/WQA8 srAVr+yS7uT7FN1EtaWXLDkX8BCTWbpHu9F8Y5HkFRUPI/cw7/6L5dgnba6/Qm7dAMrm eyqEn2Ne/Y5j6pEsIQ0dY/2qKO+pJn9PC7uVT2Eza5Al1khOFSm3eAk81PTG4WSJhXdd XjwwN+vBJBbWEx4rq7K+aTPXmUo2Gv7pq++J6UwASKHvZ1ZSXHdh0RrWPq8NGIsQK7ro lSZQ== X-Gm-Message-State: AOAM530pxwg6s3jo4PHK5m6ODGnbbz22pBLv0Uz018PcPqwGrC8o0Wyf aIev0S4GlDAhI6zs6QLmlGiFncsCzw== X-Google-Smtp-Source: ABdhPJwRKEEdsILouY64mZAty9UzcrpjyOPrwEYFLAfse6nGd0/Ta0E8nqaALjj/ZCs3Dfp6mLzP+gYXZA== X-Received: from tabba.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:482]) (user=tabba job=sendgmr) by 2002:a05:6214:492:: with SMTP id ay18mr9625511qvb.4.1632488091905; Fri, 24 Sep 2021 05:54:51 -0700 (PDT) Date: Fri, 24 Sep 2021 13:53:53 +0100 In-Reply-To: <20210924125359.2587041-1-tabba@google.com> Message-Id: <20210924125359.2587041-25-tabba@google.com> Mime-Version: 1.0 References: <20210924125359.2587041-1-tabba@google.com> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog Subject: [RFC PATCH v1 24/30] KVM: arm64: remove unused functions From: Fuad Tabba <tabba@google.com> To: kvmarm@lists.cs.columbia.edu Cc: maz@kernel.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, christoffer.dall@arm.com, drjones@redhat.com, qperret@google.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com, tabba@google.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210924_055453_447453_DF6DCA15 X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Reduce scope of vcpu state at hyp by refactoring out state hyp needs
|
expand
|
diff --git a/arch/arm64/kvm/hyp/exception.c b/arch/arm64/kvm/hyp/exception.c index bb0bc1f5568c..fdfc809f61b8 100644 --- a/arch/arm64/kvm/hyp/exception.c +++ b/arch/arm64/kvm/hyp/exception.c @@ -67,21 +67,6 @@ static inline void __vcpu_write_sys_reg(struct kvm_vcpu *vcpu, u64 val, int reg) __ctxt_write_sys_reg(&vcpu_ctxt(vcpu), val, reg); } -static void __vcpu_write_spsr(struct kvm_vcpu *vcpu, u64 val) -{ - __ctxt_write_spsr(&vcpu_ctxt(vcpu), val); -} - -static void __vcpu_write_spsr_abt(struct kvm_vcpu *vcpu, u64 val) -{ - __ctxt_write_spsr_abt(&vcpu_ctxt(vcpu), val); -} - -static void __vcpu_write_spsr_und(struct kvm_vcpu *vcpu, u64 val) -{ - __ctxt_write_spsr_und(&vcpu_ctxt(vcpu), val); -} - /* * This performs the exception entry at a given EL (@target_mode), stashing PC * and PSTATE into ELR and SPSR respectively, and compute the new PC/PSTATE.
__vcpu_write_spsr*() functions are not used anymore. Signed-off-by: Fuad Tabba <tabba@google.com> --- arch/arm64/kvm/hyp/exception.c | 15 --------------- 1 file changed, 15 deletions(-)