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 8E887C5320E for ; Sun, 25 Aug 2024 17:13:23 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=8pzwujvC7xvqp9pOTOfvQRMNZqqSXoV1ObOJZ6mWKi0=; b=D1S8KZU2AHA8KZthSSZNlFl4CP 3cFGKhs/tM9gRKIh6sZzC+rXvv2ACdimDMRsXClu8vHzco+01fkx1j7ffWBiLf2mj5ckTMUpEWqhl Yp1iATl/GR2HWfAwTqLOnNxrCJsdgnlICj+RjqIF2ySVGSC20AHjE/p3F6LwG78ro1wu/UsvhUkAK N6jYMy2Wj3qIlZy/yqNAaYfNWiLTFEdvevHylrgPi4RMbb+sjIwW93q5/N+PG39c+2P1hpduQju5K 21MogNokKyuFWNzqhtULRCCVHLm6TOE48qcCkvi7LfBEzd2AfgMrAS1EDkVW9FJ30DEEjqCV5tCJi JqPeLJFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siGnf-00000004htm-2G9o; Sun, 25 Aug 2024 17:13:11 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siGms-00000004hiY-0Wwf for linux-arm-kernel@lists.infradead.org; Sun, 25 Aug 2024 17:12:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8pzwujvC7xvqp9pOTOfvQRMNZqqSXoV1ObOJZ6mWKi0=; b=yUEyqmHWs76BuKeItSQmUqT8tW qvoBDxcVUvlRK+h4RSyQF7MWIAFJbvtnzp/kcRrZbEjzLzL6in0j2gaEkKXPCK23wJzc0tf/YmND0 PM/ik34KL3XS9zLdvlluhhfCGYOuBh26ziL4N6hplNIdG+goyjB4B8izxp7UoCGMGbcsqi2jzRckn ZAbE/OfuFscfWtY/2CQZD5Td5NOdnogUnmjdh32RfdymXD08ZklINQB05g/x0na1AAmsPTUxQctQD sADwpsLVYF/C8TCqSUCKsc2k4JQdQ2opCURxB26VOYgmipQTFElsyvUUAKxYNkJN1thswl+aqXMDc 6ZH1Huqg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42788) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1siGkT-0004gh-2S; Sun, 25 Aug 2024 18:09:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1siGkO-0001ff-1e; Sun, 25 Aug 2024 18:09:48 +0100 Date: Sun, 25 Aug 2024 18:09:48 +0100 From: "Russell King (Oracle)" To: Marc Zyngier Cc: Shaoqin Huang , Oliver Upton , kvmarm@lists.linux.dev, Mark Brown , Eric Auger , Sebastian Ott , Cornelia Huck , Catalin Marinas , James Morse , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Paolo Bonzini , Shuah Khan , Suzuki K Poulose , Will Deacon , Zenghui Yu Subject: Re: [PATCH v5 0/4] Allow userspace to change ID_AA64PFR1_EL1 Message-ID: References: <20240723072004.1470688-1-shahuang@redhat.com> <86ttf8wnwz.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86ttf8wnwz.wl-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_101222_188531_CFD2345B X-CRM114-Status: GOOD ( 24.25 ) 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 Sun, Aug 25, 2024 at 05:46:36PM +0100, Marc Zyngier wrote: > On Tue, 23 Jul 2024 08:19:59 +0100, > Shaoqin Huang wrote: > > > > Hi guys, > > > > This is another try to allow userspace to change ID_AA64PFR1_EL1, and we want to > > give userspace the ability to control the visible feature set for a VM, which > > could be used by userspace in such a way to transparently migrate VMs. > > > I think this looks OK now, thanks for going through the motions and > doing the right thing. > > What is missing is similar handling for 32bit ID registers, but I'm > not sure we keen on going down that road -- machines capable of > running those are on their way out. This can be done later anyway, > should anyone care. The Aarch32 ID registers need doing - we've already established that fact. Sadly, you decided you wouldn't respond to my patch addressing one of the Aarch32 ID registers despite me sending follow-ups to nicely ask you about this - you seemed to go utterly silent on it. The Aarch32 ID registers have changed value between different kernel versions, and given that QEMU saves and restores _all_ ID registers, changes to these ID registers cause a regression if one attempts to migrate VMs between one kernel version and the next. It doesn't even have to be between two physical machines. Libvirt supports managed- saving on reboot, where it saves an image of a VM at shutdown, and restores it at the next reboot. These changes in ID registers render effectively data loss in VMs that have been managed-saved - the saved state of the VM has to either be destroyed, or the host kernel reverted back and _never_ moved forward. As you don't seem to be keen to address this (by ignoring my emails on the topic, and now suggesting in your response above that you're not keen to do anything with the Aarch32 ID registers, I guess this just means that KVM on Aarch64 is going to forever suck. I'm sure Oliver will recall my emails on this which you've decided to ignore... he was supportive of my efforts to address this. -- *** please note that I probably will only be occasionally responsive *** for an unknown period of time due to recent eye surgery making *** reading quite difficult. RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!