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 0D6F6C43458 for ; Wed, 8 Jul 2026 07:36:27 +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=xls0ncCjyWcLCH10SsoXeKirDHltIOo0E/jR/8APp6g=; b=Ob9bI7KHSjKhSzxsn7pNI++88C j8Rd78BiuPzaYzM4ySfT46GnscNMidFsnlrV6SI008JgFkCCBHmSQaGcv46QFMeKqzACqcqDCHCwO yMOnnsenHL1xKxLlMTg/cacdCcao1LWkU3nvIV9bQkWYcKK/46BxBRxJqVbpYIOQ+FZSh9wh3D6iy OtztAzJmJ9D57m9b3ZJuz5oUYgmecw56ghmX3lZm26bGRyUEg3L+M5jjBZDGgkb8KsKIeGepxEdtZ d2a9hxOuBcZFVugJBbRUOeDlW/OOycUc67xRsSEvChdsrGDS+0EtVoUqPrfTv2s2YrwE/MVsQeFps OWOMLLfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1whMpQ-0000000GWEV-1x14; Wed, 08 Jul 2026 07:36:20 +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 1whMpO-0000000GWE9-0vXV for linux-arm-kernel@lists.infradead.org; Wed, 08 Jul 2026 07:36:18 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id F36EA431F8; Wed, 8 Jul 2026 07:36:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D24431F000E9; Wed, 8 Jul 2026 07:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783496177; bh=xls0ncCjyWcLCH10SsoXeKirDHltIOo0E/jR/8APp6g=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Ip4NvB47gbOwipZa0QyaFhGhU4Vm+o/21PVfALYlAyU6X0qJyBv4zSdlp/zMVzpOM BTI3YYYMtX3GtDTOvAalB+L3bvT11rvpKtqt7d6LHlu+NX5opY4w+bJSIZW02QITLn /3dQC6ZjeWlTa+WoM5tyjJI2XGPyha02Vo21UBZUd6lZm4z1OJ976CmocY7Yi2FI1N QcS7aTomqtppnG+LbYRUdzOarl/452D7tERIU83hgc7aLI5g+fVUjCJuDBBzLJU0BS MJDitX2DWqgbP+PQ1j2dHuodEFH5RLddS2fFDwdb6wVCv8xD2uOuD56qeXgcW8g6UH ACxJKR8XzLxJg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-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 1whMpL-00000002hwZ-1cyF; Wed, 08 Jul 2026 07:36:15 +0000 Date: Wed, 08 Jul 2026 08:36:14 +0100 Message-ID: <861pdeorv5.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 , Gautam Gala , Hariharan Mari , Heiko Carstens , Hendrik Brueckner , Ilya Leoshkevich , Janosch Frank , Joey Gouly , Nico Boehr , Nina Schoetterl-Glausch , Oliver Upton , Paolo Bonzini , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu Subject: Re: [PATCH v4 24/27] KVM: s390: arm64: Implement vm/vcpu create destroy. In-Reply-To: <20260708065150.583632-C-seiden@linux.ibm.com> References: <20260706085229.979525-1-seiden@linux.ibm.com> <20260706085229.979525-25-seiden@linux.ibm.com> <8633xuq1ic.wl-maz@kernel.org> <20260708065150.583632-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, 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, 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 Wed, 08 Jul 2026 07:51:50 +0100, Steffen Eiden wrote: > > On Tue, Jul 07, 2026 at 04:10:19PM +0100, Marc Zyngier wrote: > > On Mon, 06 Jul 2026 09:52:24 +0100, > > Steffen Eiden wrote: > > > > > > Implement init and destroy IOCTLS for vcpu and vm. > > > Implement arch vm IOCTL. Use s390 gmap. > > > > > > Co-developed-by: Janosch Frank > > > Signed-off-by: Janosch Frank > > > Co-developed-by: Andreas Grapentin > > > Signed-off-by: Andreas Grapentin > > > Co-developed-by: Nina Schoetterl-Glausch > > > Signed-off-by: Nina Schoetterl-Glausch > > > Signed-off-by: Steffen Eiden > > > --- > > > arch/s390/kvm/arm64/arm.c | 190 ++++++++++++++++++++++++++++++++ > > > arch/s390/kvm/arm64/arm.h | 56 ++++++++++ > > > arch/s390/kvm/gmap/faultin.c | 5 + > > > arch/s390/kvm/gmap/gmap.c | 4 + > > > arch/s390/kvm/gmap/trace-gmap.h | 13 +++ > > > 5 files changed, 268 insertions(+) > > > > > > diff --git a/arch/s390/kvm/arm64/arm.c b/arch/s390/kvm/arm64/arm.c > > > index 19249ec5c539..3a4092698fae 100644 > > > --- a/arch/s390/kvm/arm64/arm.c > > > +++ b/arch/s390/kvm/arm64/arm.c > > > @@ -8,6 +8,10 @@ > > > #include > > > #include > > > > > > +#include > > > + > > > +#include > > > + > > > #include "arm.h" > > > > > > static unsigned long system_supported_vcpu_features(void); > > > @@ -31,6 +35,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) > > > break; > > > case KVM_CAP_IOEVENTFD: > > > case KVM_CAP_ARM_USER_IRQ: > > > + case KVM_CAP_PRE_FAULT_MEMORY: > > > > arm64 *doesn't* support this yet. Please make sure you don't deviate > > from what arm64 currently supports. > > > > I hoped the corresponding arm64 series is merged when we got this :) If the quality of the previous postings of that series is anything to go by, I doubt this will be merged on this side of the death of the universe. > I will remove this advertisement. I'll keep the implementation as the compiler > expect that function to be present anyways, as native s390 KVM now implements > this CAP. OK? As long as the code isn't reachable from the arm64 side, that's fine by me. M. -- Without deviation from the norm, progress is not possible.