From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 44763C27C79 for ; Thu, 20 Jun 2024 11:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yfJwcGtfqG1Umku7J6r/WT08ovQIXZbZFdadbUnYhZE=; b=S/CvTABnDXqduuS0wGjFYOmGYb LWNMs3ewwc3JSZv/3Zbhfc4M16xVeHMj52AM67Q4BBQyXFQRw0y/KUkqH2pRycZgJJXEEp4cMBghB ztCTndyGRRG34hBvjpEroH/c/sy/09VFEWs03hlXmrCaKTxKaCaJWZYYlLLNFB7Xj+UowEo50wmQQ 5Vjvk8xyABLQp2IgMMfKFcE+p3hVpRRvY+MpL1eEMzYI9Mak/sCe2ro7+oI8MS4n8I+cPtSdfxawS ICaVZv3ASdKH2galgfz0AzG8PLOojJzr3fFfcMqiZy6X/O2lhfCkiTgLy+R5C3XFzLUAYDZPux4g4 Uct9jqUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKG6Y-00000004oHA-0WJY; Thu, 20 Jun 2024 11:37:26 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKG58-00000004nfA-0aZz for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2024 11:36:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id EB444CE24B4; Thu, 20 Jun 2024 11:35:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A706FC32781; Thu, 20 Jun 2024 11:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718883355; bh=CminykxElvtsp9RCbjQJrrHIs3yDI3EQY6fMsH1tv5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dG40ErzqREfWw7nrKr8404DUT0lFh0zQKO5tloS7o1cLwUUgr2N5UPgSthw8d7pKB yFyUf9gVwsDUuitZrz3o4dVHRFRRWd2Vffqc/x91gdVpAIZ6mPA3atbkkCQEFMJVSX M3tqIYvU0A/ULdiuvTEdY68BItt0WsF3ECpY8g4NE6hz8ad3ZLCf6d84s6PS/9VZH6 wOoVChiyMllEh8XM6em6/9j61/WKneO5B1SSerBslYZkf00uXIaNWdT3ZEJOeVhMZf Rx80rjxl+NII9R6yeeciaFDDxWKV24PnqMsHTO8/608h0lGwCoCGPOMf3nDI8RpyT5 x6/C48Onk9dmQ== Date: Thu, 20 Jun 2024 12:35:50 +0100 From: Will Deacon To: =?iso-8859-1?Q?Pierre-Cl=E9ment?= Tosi Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Marc Zyngier , Oliver Upton , Suzuki K Poulose , Vincent Donnefort Subject: Re: [PATCH v5 3/8] KVM: arm64: nVHE: Simplify invalid_host_el2_vect Message-ID: <20240620113549.GA4625@willie-the-truck> References: <20240610063244.2828978-1-ptosi@google.com> <20240610063244.2828978-4-ptosi@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240610063244.2828978-4-ptosi@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_043558_718253_077606DF X-CRM114-Status: UNSURE ( 9.32 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 10, 2024 at 07:32:32AM +0100, Pierre-Clément Tosi wrote: > The invalid_host_el2_vect macro is used by EL2{t,h} handlers in nVHE > *host* context, which should never run with a guest context loaded. > Therefore, remove the superfluous vCPU context check and branch > unconditionally to hyp_panic. > > Signed-off-by: Pierre-Clément Tosi > --- > arch/arm64/kvm/hyp/nvhe/host.S | 6 ------ > 1 file changed, 6 deletions(-) Acked-by: Will Deacon Will