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 BF873C02183 for ; Thu, 16 Jan 2025 18:26:40 +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=buVL1pnLerOPjtoyrSCfIwa/AuSVYZWCin/1ItG4RPg=; b=xgnuF7auyKhhO07noz+axoLrs+ srCDuioHuwC7dDEbFcAQR6vVjcP94RMHgizfN+B2YB86Kc97vLl2R6Cb6tcLAHWGQz5Jc5M3Uxsec OXB3JJt9vVyqYv0fFutEIfbrUejtKMGxRPfFI5c5gm9AerMfalLiu0GjoN+/a/6ouGOf6qLKxfMns D80JanG0djJ9TnPzgwcYEhwKbE5sqpkU33zGrgCnuuPwqxtuH5KaJXUqwCrXGej7cuEgXZJDhB9jT QwC/y43SSnVpcNwkpI9az4c5yekE2s3NTmmQCgAgJDjDjPyoM/IyjZ/RzC/0YasfqPuoPtAAx4bF6 Sg2WwSnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tYUZa-0000000FnFg-24kf; Thu, 16 Jan 2025 18:26:30 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tYUYJ-0000000FnAf-3Yjb for linux-arm-kernel@lists.infradead.org; Thu, 16 Jan 2025 18:25:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id E5812A42713; Thu, 16 Jan 2025 18:23:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BE3DC4CED6; Thu, 16 Jan 2025 18:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737051910; bh=EU6PpibWHJM3Ka80rEEuKYaqyZV32Fze3gQ66ir92js=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ROeKW+OP4EH5DkODSpECUPpm8Svwv/fb32oDFq0mI2VBnKLZPkQ8nnBLW6znVJQ3o lIadpEdHBBXVGeHuvpO8FZ55/SrGpAe+qk6BWWJbf1PfwA/reaxZlC+7daqb1qyYUt 5Tx/apO4rclvAG06WImqKoRaBXdCDwzxWn2Bkvni7E/n5xvdCXK311poaaEnY5U6/w dK9cyIEjWf/LQd0kWbAsF+his8CYxaexOPlIMvQ+m9QIo7+OoHFXhkqWeolzj8m8iE 0rsPj4/wwox2adU1BGUTvKgTwNKxW6947Dvt9MVZecnHxlFLJOCa8Svjqpk6dis/f6 FXeqI4slrj7IQ== 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.95) (envelope-from ) id 1tYUYG-00Ct9M-CZ; Thu, 16 Jan 2025 18:25:08 +0000 Date: Thu, 16 Jan 2025 18:25:07 +0000 Message-ID: <86y0zavcos.wl-maz@kernel.org> From: Marc Zyngier To: Eric Auger Cc: Ganapatrao Kulkarni , kvmarm , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, oliver.upton@linux.dev, christoffer.dall@arm.com, suzuki.poulose@arm.com, will@kernel.org, catalin.marinas@arm.com, coltonlewis@google.com, joey.gouly@arm.com, yuzenghui@huawei.com, darren@os.amperecomputing.com, vishnu@os.amperecomputing.com Subject: Re: [PATCH] KVM: arm64: nv: Set ISTATUS for emulated timers, If timer expired In-Reply-To: References: <20241209053201.339939-1-gankulkarni@os.amperecomputing.com> <867c89tc4q.wl-maz@kernel.org> <865xntt2kv.wl-maz@kernel.org> <8be59ff3-6a68-48e1-8181-0ce4b2e7180f@os.amperecomputing.com> <86y10osr19.wl-maz@kernel.org> <4d443db1-85b1-4071-acd5-3187deb9cb17@redhat.com> <2f6b2cb1-3d32-480a-9801-9b993ae74e2d@os.amperecomputing.com> <152d262e-641d-4bb1-9656-a13e049d62c4@redhat.com> <86h661wje4.wl-maz@kernel.org> <4a9fbdd9-ad23-44bc-8ba5-399f08068db4@redhat.com> <86cygpwfy0.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/29.4 (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: eauger@redhat.com, gankulkarni@os.amperecomputing.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, oliver.upton@linux.dev, christoffer.dall@arm.com, suzuki.poulose@arm.com, will@kernel.org, catalin.marinas@arm.com, coltonlewis@google.com, joey.gouly@arm.com, yuzenghui@huawei.com, darren@os.amperecomputing.com, vishnu@os.amperecomputing.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-20250116_102512_017833_98AFB003 X-CRM114-Status: GOOD ( 15.35 ) 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 Hi Eric, On Thu, 16 Jan 2025 17:52:10 +0000, Eric Auger wrote: > > >>>> I tested on AmpereOne and Grace-Hopper systems > >>> > >>> Thanks for the confirmation. I haven't had a chance to try QEMU yet, > >>> but I expect that save/restore will not work. Something to look into, > >> I have not tested this yet.I will give it a try. > > > > Thanks, that'd be super helpful. > > I confirm the migration fails when putting some registers on the dest > side. I will further investigate. Thanks for confirming. I suspect that the kernel visibility bits are not exactly correct (or depend on some odd ordering). If you can point me to a register that fails to restore correctly, that'd be useful. Hopefully, most EL2-specific registers suffer from the same defect. Cheers, M. -- Without deviation from the norm, progress is not possible.