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 5850FC54798 for ; Tue, 27 Feb 2024 08:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OIz45B9fS8zB9hazSYuEuWE53aNZaLZrs3EzO0tHnY0=; b=J46CCC86mABfhT /yM1H/3OGOmpLQ3QoADt4QDOW0OzXD4olIWEqzIWA4WsBfxBOUjLPgAUxQ644/6fPomYLpLXjKHft D6q9yiekovjRhE7NJQLMRZPhCXDKZnEwwt6booJlg4eQ263nrRMjbbdkOyD5Hr2BLwElq8fJeFW3D L2ns3+m78QYdGv/WYg2HGNbAnF0UWjsOqfDLEPDenTJFZN2EAEk+b8yu+0OAJgUZsz+JfuIbu2/Fo Ly9lUQ1eOKtxxPDeYY/eQ8+l6jDBYYAxMKn3AuGAYqVdCtLkQx0CbKRTDdhGT2pvlAxu2CfRoERFP 8HYZVrDlGXjNpWe5RKsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1resZf-00000004GRF-2Mh7; Tue, 27 Feb 2024 08:12:27 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1resZc-00000004GQk-4Blr for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2024 08:12:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 6A066CE1AF7; Tue, 27 Feb 2024 08:12:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3456C433F1; Tue, 27 Feb 2024 08:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709021541; bh=RzvSoN1d+y+H0+TLwarmN0FFOj8Wb4VWXo/kszcd3Lo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Nm/bGc927EhmL4UobMryUyxB1RwBxVWWUAw7mA/nmxCYTHcfg38j0bzvwh6eugkza 5g3LqJegrd2xgP1RmSoLz+3kwlPJxNYTii3G3VjMdz/4EdXr/Tjnw9hrwzKnKwVvBn GBIsWx+U5N4Bw48gD3uAvJ9oNLxp90NblAluTCMYnt7KSXZxsIHdhNtk4s25I7YXsh NomaEDKCD2Dx0qAObiol8gQ5e5QMOSkhirr7JfqBR7WOjVNA43bb1JCb7RIijomfYN 07Q9/QuPjFIZRvZaD9yEvyvtBpPRT6QbX+OQq0OTWswcq4k8099ICUnY/+FTxSoWo2 qTi6CsOUVNCBg== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1resZW-007AGt-Jj; Tue, 27 Feb 2024 08:12:18 +0000 Date: Tue, 27 Feb 2024 08:10:48 +0000 Message-ID: <874jdu9vjr.wl-maz@kernel.org> From: Marc Zyngier To: Wei-Lin Chang Cc: oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, sauravsc@amazon.com, eric.auger@redhat.com Subject: Re: [PATCH 1/1] KVM: arm64: Affinity level 3 support In-Reply-To: <20240227022708.795214-1-r09922117@csie.ntu.edu.tw> References: <86frxg3i6u.wl-maz@kernel.org> <20240227022708.795214-1-r09922117@csie.ntu.edu.tw> 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/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: r09922117@csie.ntu.edu.tw, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, sauravsc@amazon.com, eric.auger@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_001225_474082_246779C6 X-CRM114-Status: GOOD ( 28.49 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 27 Feb 2024 02:27:08 +0000, Wei-Lin Chang wrote: > > On Sun, 25 Feb 2024 11:19:05 +0000, > Marc Zyngier wrote: [...] > > I can see multiple problems with this: > > > > - this is the host state, which shouldn't necessarily represent the > > guest state. It should be possible to restore a VM that have a > > different A3V value and still have the same guarantees. There is > > however a small nit around ICV_CTLR_EL1.A3V, which would require > > trapping to emulate the A3V bit. > > > > - this assumes GICv3, which is definitely not universal (we support > > GICv2, for which no such restriction actually exists). > > > > Finally, I don't see VM save/restore being addressed here, and I > > suspect it hasn't been looked at. > > > > Overall, this patch does too many things, and it should be split in > > discrete changes. I also want to see an actual justification for Aff3 > > support. And if we introduce it, it must be fully virtualised > > (independent of the A3V support on the host). > > Hi Marc, > > Really appreciate for the feedback. I think I understand most of your > comments and agree with them. It appears that I don't fully understand > the changes that I am doing with this. Thanks for explaining. I hope this doesn't deter you from working on this feature. I'll happily answer questions and discuss the above points. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel