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 427C0C61DFD for ; Wed, 2 Sep 2026 07:39:07 +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:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NtFIjwHWOM2KySxyK2jN5lsJXS7iV2NXSRl0dq3VPfM=; b=LksNDgFXp7vWN+Kbmbc2h7tcUK VNRmImNa9ZwG1dQ0giJ0F26mY5xJ/oXre3/wkLN4cpVsBkMaTV7tXRXBXIboyuiXRP9n/GS0Te4+E /I9W9MMDG5UGzlHXx5KeTLR2cj7FA5k08vw8FvUp5/tQrJIsbw9V51xn6B5B+8i3z4MZwZ3jAvtsS B4W+kYXmxBj3XArk6KFoiPCsd44CcRl6Il/4D0QeysPsjSdFt0ZO3PeE5Z5L18O+54B29tc459/uJ dBod/sLXF0yiQoBKdlw7lB9XVE1evkaSY+/GJufIBHsUqPHCi/rcNUHJRxMVE3O3iX7JV8e9/tgcN BlhX7feQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1fYh-0000000Dxxy-00EH; Wed, 02 Sep 2026 07:38:59 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1fYf-0000000Dxxg-2tk2 for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2026 07:38:57 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 38D1243AF1; Wed, 2 Sep 2026 07:38:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1729D1F00A3A; Wed, 2 Sep 2026 07:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788334737; bh=NtFIjwHWOM2KySxyK2jN5lsJXS7iV2NXSRl0dq3VPfM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=AXX26wr8KvCG2QZcfUAqR2Dpzs2Uuq6jgvM57rxgHHBUtsTqCueEKpUbANEZmZDcM maq551oR8ZMENXN+/udtxaaNwWLPAMcz1DLsYO37wcn8/w72gxqB75vH876jegGJ9P AJd/kV4r9rvIFxqaZ4UBIio+HPnyaEk8XCnCdk3xtZzH+OAmqoa9slxW78NNWmwprJ gxQexz9Bc8W/nS0fGe6RtQOv9hUMKVB15b0LP9HocvJFUgBOL59wjsBXW65X9/qPHi PsucUsjIgB1FR5GAVA38qCBibV7U8Np8iXZl4NqDfL24T62E9A2crzNh43+4fSdjc5 hOZqttRyWIbBA== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x1fYc-00000003lb4-2BeN; Wed, 02 Sep 2026 07:38:54 +0000 Date: Wed, 02 Sep 2026 08:41:27 +0100 Message-ID: <87mru0m76g.wl-maz@kernel.org> From: Marc Zyngier To: Steffen Eiden Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Alexander Gordeev , Andreas Grapentin , Arnd Bergmann , Catalin Marinas , Christian Borntraeger , Claudio Imbrenda , David Hildenbrand , Friedrich Welter , Fuad Tabba , Gautam Gala , Hariharan Mari , Heiko Carstens , Hendrik Brueckner , Ilya Leoshkevich , Janosch Frank , Joey Gouly , Nico Boehr , Nina Schoetterl-Glausch , Oliver Upton , Paolo Bonzini , Sean Christopherson , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu Subject: Re: [PATCH v7 11/23] KVM: arm64: Share arm64 code with s390 In-Reply-To: <20260901084037.185345-C-seiden@linux.ibm.com> References: <20260831144802.834315-1-seiden@linux.ibm.com> <20260831144802.834315-12-seiden@linux.ibm.com> <87se3tmlrv.wl-maz@kernel.org> <20260901084037.185345-C-seiden@linux.ibm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: seiden@linux.ibm.com, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, agordeev@linux.ibm.com, gra@linux.ibm.com, arnd@arndb.de, catalin.marinas@arm.com, borntraeger@linux.ibm.com, imbrenda@linux.ibm.com, david@kernel.org, fritz@linux.ibm.com, tabba@google.com, ggala@linux.ibm.com, hari55@linux.ibm.com, hca@linux.ibm.com, brueckner@linux.ibm.com, iii@linux.ibm.com, frankja@linux.ibm.com, joey.gouly@arm.com, nrb@linux.ibm.com, oss@nina.schoetterlglausch.eu, oupton@kernel.org, pbonzini@redhat.com, seanjc@google.com, suzuki.poulose@arm.com, svens@linux.ibm.com, Ulrich.Weigand@de.ibm.com, gor@linux.ibm.com, will@kernel.org, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 Tue, 01 Sep 2026 09:40:37 +0100, Steffen Eiden wrote: > > On Tue, Sep 01, 2026 at 09:13:56AM +0100, Marc Zyngier wrote: > > Why the exit handler, and not the EC handlers aside from the UNKNOWN > > one? Yes, you probably aren't there yet in this series, but I can tell > > you are going to add more and more of these. > > > > But the EC array is absolutely architectural, and there is no good > > reason to maintain your own. > > > > So instead of this, why not keep the EC array altogether, and > > implement stubs for the ECs you don't support? > > > > M. > > > > There was no specific reasson to define our own EC array as far as I > remember. I will try reusing the array and find out if there are any > issues with that. But I do not expect any. > > I assume the stubs probably just forward to handle_unknown_ec, or do you > have a different suggestion? Probably. This is an indication of something being deeply wrong in the implementation (HW or SW). On reflection, kvm_handle_unknown_ec() should result in a KVM_BUG(). M. -- Jazz isn't dead. It just smells funny.