From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31C663DD849; Thu, 1 Oct 2026 13:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790861580; cv=none; b=i2Iuf634ohIdTlvH4RbA16F2OuhJ0TM47blxpPDRg/6VvYCYt4fygEj06oM3SnSIFMZTDr5+VN+lZfyGiAVycR9oU4nMKcqGzKDtbEJ+Mcpb/HGHEb6Z2mcz5XY687hrgHWiPO+U6vBv6RWmkG6UQCRxo9sTVbijeU5AXUhsAgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790861580; c=relaxed/simple; bh=vOqjWdkmtXX2fV5MbyW0HLGz7XWQAXKrRRjEnp+2lhQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Yl86sT2wI1ySu3Jr9bbDcVdSPh3heDUt2USKhYT5GQFQ03da/0iYfqNWKsiTSNuA2Z4bRfDQv9ZFjJZjxiauGIOhIH5VcZeai84pOF4cxjsDrtD3msZam7GPbBKQts9a1BSNYktjW9wT0lp9Kpw7yAsMBmov+z4l4oEjCx9+cVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=Qh6DSSug; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Qh6DSSug" Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69175asG4040804; Thu, 1 Oct 2026 13:27:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pp1; bh=qye0fZ9/oXrjtWkqgYLZM/u0xYJmnA 34DM3msArRE3s=; b=Qh6DSSugZ8937s0F4FO4cYmzBdv8A7v7oMZFAmyilRcmj4 n2c2bJNDSRVbpj8bk3TrIiDB0R/X4fpxt3rKh5/tFB+2P7KBKpjdxzxxb+o20VWF V/KDiSD4XgwJAK+Ct+PKSMbuuJ9nTTqh5xHLUr0S4jib5bZ88k2aW2Y8AFQ4cosV Ufv8rseFQcqZ2UEjbpyeBp8FK58ibbrl4d/8aTF1oYwRVQu9HwuG95/kdomde8G7 xveBM8yxDg1fC/wypQP0/gyc+mRt4jsa+dEk8cvzBqYjPBtXSwxmsKgK3Zx1uHuK lvjCVvCyjlM3c1aM1Ogwh5Kls8oLBJUCEoph7cRg== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4gx4fej9vr-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 01 Oct 2026 13:27:22 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 691BIDLQ3460482; Thu, 1 Oct 2026 13:27:21 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4h0q4pfk0s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Oct 2026 13:27:21 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 691DRHHH52101448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Oct 2026 13:27:17 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 08A7020043; Thu, 1 Oct 2026 13:27:17 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A157820040; Thu, 1 Oct 2026 13:27:16 +0000 (GMT) Received: from osiris (unknown [9.224.76.185]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 1 Oct 2026 13:27:16 +0000 (GMT) Date: Thu, 1 Oct 2026 15:27:15 +0200 From: Steffen Eiden To: Marc Zyngier 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 , Sean Christopherson , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu , Fuad Tabba Subject: Re: (subset) [PATCH v9 00/24] KVM: s390: Introduce arm64 KVM Message-ID: <20261001132715.108643-A-seiden@linux.ibm.com> References: <20260930173441.66762-1-seiden@linux.ibm.com> <179085262878.3865846.5787241839391727949.b4-ty@b4> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179085262878.3865846.5787241839391727949.b4-ty@b4> X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Authority-Analysis: v=2.4 cv=FYWiV5+6 c=1 sm=1 tr=0 ts=6abe5fbb cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=kj9zAlcOel0A:10 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=vgvFcsfBxiakeqZJiIEA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAxMDA1MiBTYWx0ZWRfX/4jmrRgPtRMf rUzDnVualLMwsejQVgBTRsTRb9jwbAoV2YAHBpO7GBSBTZdKjAnKQjzZvxNHjn/GP6O8GD3B3A7 y2h2mWQ4EXx6Jlq/zLZ+bg9VLFsLPWw= X-Proofpoint-ORIG-GUID: na2JBkj_-7NtHfoAaz6enZDk4asqF0MV X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDA1MiBTYWx0ZWRfX+tQUPvPqFkLs AxPLpp+vTlGclCT/RN4DDb8/lz7uNMT2UPOYwwJQU9X/m7JlK5jKO8hB+rs21rSYFLgyB3AVsJZ 4UfjV+vEgcON9tpHXrYPnRg6zaL5qs6j88vZQKa4p4s5S57d0W0Jlgn5ehwLDT3j1pKh+QEGtlJ ksYCVkfgBw7fh92yOC9y/JYyTCMEd13vg8LFI4YgiGTTjIzOmEbDOvNWGp21GJIyZMNJxlsFPLg Lx8yGVqIk3L2BLGqdR5ixDWODH/NL2/1pHbeYQe8AtWAsW3tk7Vhic2AvYfB5soOxIQaY09AyfX TC4Ah8Eow0EFuhSduaeHVNpYmaalCa8E1Re5TtWadxZzYCCu2N47yeQnkchEXMSEmZ4vdDA9A7q H9e73FVMBgod0OFoM+lpQuZCD6sypPiZqGGJDSNTdzGNTz9YZpQ44aeqCVKeuNF6PbjQl0QGJdm x4Z8VoPgvcwKwunpmRA== X-Proofpoint-GUID: qdanDbQvzywyI7kpvTWk9E-Rn77KAJsN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-01_03,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610010052 On Thu, Oct 01, 2026 at 12:04:51PM +0100, Marc Zyngier wrote: > On Wed, 30 Sep 2026 19:34:15 +0200, Steffen Eiden wrote: > > Introduce arm-on-s390. Enable KVM-accelerated ARM CPU virtualisation on s390. > > > > The new KVM functionally depends on KVM/vfio: Use file-based reference > > counting for KVM [5] The series itself should apply w/o those. > > > > For the original, now partially outdated, cover letter, have a look at versions > > one to three [1]. > > > > [...] > > Applied to next, thanks! > > [05/24] arm64: ptrace: Use constants for compat register numbers > commit: 295d3df9b1e425099a4eb37954a02c4a08fdb496 > [06/24] arm64: sysreg: Convert SPSR_ELx to automatic register generation > commit: d3d78520068779779e1ed7aa0dd8a3ce63e1ca43 > [07/24] KVM: arm64: Access elements of vcpu_gp_regs individually > commit: 29d92585ab987bb80b1e78d811aaea2a8db86e62 > [08/24] KVM: arm64: Use accessor functions for core regs > commit: 89ed62818f10e38e64fea46d43ee6455a1beb647 > [09/24] arm64: Prepare sharing arm64 headers with s390 > commit: df6a70516adec8b7f5fa49e1755d8ee33d980d9c > [10/24] arm64: Share arm64 headers with s390 > commit: c7e18ba462536e870b0ff4deca581babcac9135b > [11/24] KVM: arm64: Share arm64 code with s390 > commit: dcb776bfcccc9662001a75b99dbfbef55f46eb31 > > Note that there were a few conflicts. Please check that I resolved > them correctly. After rebasing on those the arm-on-s390 part does not build anymore :( We are missing the definition of static __always_inline bool esr_abt_is_s1ptw(unsigned long esr) quick fix: on top of [10/24] arm64: Share arm64 headers with s390 diff --git a/arch/arm64/include/asm/kvm_emulate.h b/arch/arm64/include/asm/kvm_emulate.h index bf35cbe8ddcb..0708f792c631 100644 --- a/arch/arm64/include/asm/kvm_emulate.h +++ b/arch/arm64/include/asm/kvm_emulate.h @@ -367,10 +367,13 @@ static __always_inline u64 kvm_vcpu_get_esr(const struct kvm_vcpu *vcpu) return vcpu->arch.fault.esr_el2; } +#if ARM64_S390_COMMON == 1 static __always_inline bool esr_abt_is_s1ptw(unsigned long esr) { return esr & ESR_ELx_S1PTW; } + +#endif /* ARM64_S390_COMMON == 1 */ static __always_inline bool esr_abt_is_exec_fault(unsigned long esr) { A cleaner solution it to move this defenition just below void kvm_vcpu_wfi(struct kvm_vcpu *vcpu) in [09/24] arm64: Prepare sharing arm64 headers with s390 and expand the shared region in the following patch. I can send the two fixup patches as a reply here for this tomorrow or later today if you want. Steffen