From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2CA2533E37A; Thu, 23 Jul 2026 08:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784794046; cv=none; b=CakX1204LNqPo8piE51NoSEmnxqwRM+1qdBNPUFUdORSueI1TxefchO8l6jEvH1xSrW3pW5C+u4OgDy66f64b9yxtihieHEOfrhlyUJThVX6gEGhF8m8javiJQKLrXVL8yvjw/dmv0E9+8Nr08Ipp/9Z6u2IxxsycCGdCyFGBT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784794046; c=relaxed/simple; bh=afG2HO0INItaE54+F1SgUa7gd0M45T1aq6NpPu9Ua00=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=p18It9j8X1n5/3lPcEAFwBPlIktOnVm0QIREhPUDBrNtAPGmr4A13WSCzOams9nxjwiSlu8bTTI0QgDNq8FVSF9vxcToLZ1TJvRBrs3+W7A5dFcAc4iREJpL0zP7vrnzpD+UbCIRoivzmK6mRN028eJlZHNCzlZzBKxd/1gnDDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50D211F000E9; Thu, 23 Jul 2026 08:07:24 +0000 (UTC) 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 1wmoSd-00000007wI9-39fQ; Thu, 23 Jul 2026 08:07:19 +0000 Date: Thu, 23 Jul 2026 09:07:19 +0100 Message-ID: <868q72dt8o.wl-maz@kernel.org> From: Marc Zyngier To: Kohei Enju Cc: Steven Price , kvm@vger.kernel.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon , James Morse , Oliver Upton , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" , Emi Kisanuki , Vishal Annapurve , WeiLin.Chang@arm.com, Lorenzo Pieralisi Subject: Re: [PATCH v15 12/37] KVM: arm64: CCA: Support the VGIC in realms In-Reply-To: References: <20260715142841.80544-1-steven.price@arm.com> <20260715142841.80544-13-steven.price@arm.com> <86cxwfe5m8.wl-maz@kernel.org> 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) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: enju.kohei@fujitsu.com, steven.price@arm.com, kvm@vger.kernel.org, kvmarm@lists.linux.dev, catalin.marinas@arm.com, will@kernel.org, james.morse@arm.com, oliver.upton@linux.dev, suzuki.poulose@arm.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, joey.gouly@arm.com, alexandru.elisei@arm.com, christoffer.dall@arm.com, tabba@google.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, gshan@redhat.com, sdonthineni@nvidia.com, alpergun@google.com, aneesh.kumar@kernel.org, fj0570is@fujitsu.com, vannapurve@google.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 23 Jul 2026 07:38:16 +0100, Kohei Enju wrote: > > On 07/22 10:27, Marc Zyngier wrote: > > > > > > As far as I can tell, the CCA requirements don't require the > > > ARM64_HAS_ICH_HCR_EL2_TDIR feature. If that's the case, this seems to be a > > > problem. Is there any workaround for this issue, or should we implement trap > > > handlers for those registers? > > > > No. Either you support TDIR, like any modern CPU, or you don't run > > CCA. I'm not adding yet another level of emulation for this. > > However, I'm still not aware of any requirement in the CCA architecture, > or in Armv8-A/Armv9-A, that mandates TDIR support. The GICv3 architecture has deprecated the lack of TDIR support since the very first release of the specification in 2015, because it was quickly identified as an architecture bug. CCA mandates GICv3 support as written in the spec, and relying on deprecated features 11 years later is not acceptable. By any definition, this is buggy hardware, and I don't feel a strong urge to support it. > > When you say "you don't run CCA", is that because the architecture > requires it, See above. > or because that's the current KVM policy? If it's the > latter, we'd be interested in adding the required emulation to make it > work. And I say no to this. Enough. This isn't a "policy*. This is a hard red line. "Do Not Cross". We already have the most complicated interrupt architecture ever, and I have zero desire to add even more complexity to it. Because I'm the idiot who ends-up maintaining this horror, and not you. So no, no more emulation code. CCA in KVM won't handle systems that do not support TDIR, unless you rewrite the CCA support so that it can use the *existing* emulation code without any change. Thanks, M. -- Without deviation from the norm, progress is not possible.