Received: by 10.223.185.116 with SMTP id b49csp3661306wrg; Tue, 6 Mar 2018 02:54:37 -0800 (PST) X-Google-Smtp-Source: AG47ELv463RudF3uzuf7JATx8qVlTYjGxDDuqnEx0BVAmP3kfsR/93RcvqhqKL6BoCHast1JBX9E X-Received: by 10.98.220.207 with SMTP id c76mr18340605pfl.159.1520333677362; Tue, 06 Mar 2018 02:54:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520333677; cv=none; d=google.com; s=arc-20160816; b=Qyl1EA+JmOYDV5VD3/uSssAIbTiVjR1Y4kOy99Z9pgtIlhFiMIAOSQ2PbWCxpWSe6t 26AEXCT7NRwX6R3686hyl585nI/Idm/sKNoXbA+J8WWb4qjuPqXZGN+BoS+OuKktuiOb Kso9N/NMnyYt2dknkXcifub+400a/ZfluSjtMJH9N9OvGhiiFQdHhS/7ZDTbhSkCbVUf 3xVlYcaqIp8lwhzUOR8Qj5hKQxv0UuVBt24xQgo+tqKWrD5thROBsu3uuvvPHPlKPGWj 3ql/9kz6F/8im6AS/0t0d1G8/bxW7ba34B1LjylR6SE0WHcOeI6PDhVGTHi48OeRkoSx KCSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=KVGLtd3zK6Wr5HJ5E9+Cx8pNvrj7puWjsV31ZFEFFzE=; b=tKotzVjUNs+OGH2My8gbPaHdLhJTfbzPITa72S1cvJKwjF6pdffaxdOkDfCFJP+1Wd 3oVqccF1oc5/4t1vlNz4g4jn5CE7GeCmoMbFR+sSUNTaxEEmkHG4EPmACydIrfR7FzVT mx3FhKQmL1b6eq3Fo/1JH/DmQacQsJRXhmKNHwTpg15yjEH9qJXZuI8tFUBFiTKhLsfu TADTg31r8zxj868yJbPYLpxedyh/he1h0Ho880DuB4lLbG3cmCS/+qV2vQ46YMUYJWAK /1fxttZ5KST1o6weHBtSM+oxaZ1uPoJy4XBdEXYQ3WJwb4QMnPfeRhKYa+Xhp4STgSks G49w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8-v6si10151485plt.378.2018.03.06.02.54.23; Tue, 06 Mar 2018 02:54:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932801AbeCFKwY (ORCPT + 99 others); Tue, 6 Mar 2018 05:52:24 -0500 Received: from foss.arm.com ([217.140.101.70]:36500 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932589AbeCFKwX (ORCPT ); Tue, 6 Mar 2018 05:52:23 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE7C51529; Tue, 6 Mar 2018 02:52:22 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.28.201]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 983603F24A; Tue, 6 Mar 2018 02:52:18 -0800 (PST) Date: Tue, 06 Mar 2018 10:52:15 +0000 Message-ID: <86woyp4gtc.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Peter Maydell Cc: Auger Eric , lkml - Kernel Mailing List , arm-mail-list , kvmarm@lists.cs.columbia.edu Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API In-Reply-To: References: <20180215175803.6870-1-marc.zyngier@arm.com> <86o9k63f7a.wl-marc.zyngier@arm.com> <40c74835-da24-485f-14bb-a0c357c7e79b@redhat.com> <81f8b489-883b-58c8-851b-c624ca72c28d@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Mar 2018 10:12:42 +0000, peter maydell wrote: > > On 6 March 2018 at 09:50, Marc Zyngier wrote: > > On 05/03/18 20:37, Auger Eric wrote: > >> On 05/03/18 17:31, Peter Maydell wrote: > >>> That also means that we will fail migration from a new kernel where > >>> we've specifically asked for PSCI 0.2 to an old PSCI-0.2-only kernel > >>> (because the KVM_REG_ARM_PSCI_VERSION reg will appear in the migration > >>> stream even if its value is the one value that matches the old kernel > >>> behaviour). I don't know if we care about that. > >> > >> Do you know when are we likely to force PSCI 0.2 on a new kernel? At > >> which layer is the decision supposed to be made and on which criteria? > > > > No decent SW should need this. But if you've written a guest that cannot > > work if it doesn't get "2" as response to PSCI_VERSION, you can override it. > > ...but if you want to be able to migrate back from a new kernel to > an old one, then you need to ask the new kernel for 0.2 so it > behaves the same way as the old one. As it stands this code wouldn't > let you do that migration even if you did specifically ask for 0.2. > (As I said, I don't know if we care about that.) Absolutely. The moment we introduce a new sysreg, we create a migration barrier. I'm not sure how the kernel can help in this respect. M. -- Jazz is not dead, it just smell funny.