Received: by 10.223.185.116 with SMTP id b49csp3629125wrg; Tue, 6 Mar 2018 02:14:24 -0800 (PST) X-Google-Smtp-Source: AG47ELsTL9T5Ok4PRxk0BDpC205rGlYqRf0PlN6ZYKgdzGDgviPzsoYnGtzCDMnDPns/oIo37xuN X-Received: by 10.98.180.13 with SMTP id h13mr18354944pfn.139.1520331263930; Tue, 06 Mar 2018 02:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520331263; cv=none; d=google.com; s=arc-20160816; b=B8sBKKqPQCvLyjzJUWl/wWd9KjzN17BuVM9EDV9BXc7W2BIbhQidjwNoAp0QvAQLd3 azut7rQhspJbbGYFngVbMzSmLrz3osOhdJ1vLbhM/aNhy0HuGHJBGzom2k13bTkg8wdf aFfDxyIfoj3DOncytpdK/V+TdKJ6cC9ekcdy38dXYxOTWXRCeFZzNJpiNqYX3nheP8h+ xFavJ49fYFnaCYatPJ3Q7Oe1QBMjY/gSbH2JtZHWG0yYXwmHL9GqnQYBesuTne2Olgyr noHjtNgkr/FCwdJtjq0l6DHa9KRii41esMfTiHI773BgEv2H9Nn6IzaPihIgYdg7Enzd Apfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QMfzwlDCCEWqeJP5bxQX5sUrCT8Is/2a8jvsCzXigH0=; b=BzJiL6LV9vzNLT9saRb2OZDlzd9nqcJJSp3Cft+Y+gIJUw8lwuaTRwEH5IumqWxzps 9TRDqojgq97COSb9F02q4tHgxmKGBGPLWjU9xblL9I4Oo+5P6SphvTWiTA5j2bqu8/f4 pOHYnA1KRHbfpZKCITQ+WR1KWp45u7GipizYBOEz8mwwVGg92ZwPWn73tFS2RFBQB/AM gSWpzqunp14/Ebxd6Rwidu03Q8SAPfztQRruXaGF9KzyfnAOdby6saq9YrPasmi1ECqT +xxmmuSGR5IuDCacntjV48NZcs5hhsiSgYkdLmV+VFPRPvUEZXM90L3PL/v1KD1RyfTu vmQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UiVfYRUM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si9597620pgc.461.2018.03.06.02.14.00; Tue, 06 Mar 2018 02:14:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UiVfYRUM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753304AbeCFKNE (ORCPT + 99 others); Tue, 6 Mar 2018 05:13:04 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:42588 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753155AbeCFKND (ORCPT ); Tue, 6 Mar 2018 05:13:03 -0500 Received: by mail-oi0-f68.google.com with SMTP id c18so14384351oiy.9 for ; Tue, 06 Mar 2018 02:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QMfzwlDCCEWqeJP5bxQX5sUrCT8Is/2a8jvsCzXigH0=; b=UiVfYRUMZNTHwKTblalkwhL6Ji1rky/aBC7UCU4+S/K1JryNbN5paPbA8liXmqm4XQ nNqVLnagV/PKiHJDdCjMCrfZWPJhNhpuY+3abGgBRtsJBQmPBmzSIB0FXFbuq7vFZ0mv wezUZNxtgZW7RN+MJ4divgFhnVxIgSCkS3WWY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QMfzwlDCCEWqeJP5bxQX5sUrCT8Is/2a8jvsCzXigH0=; b=I33+xYXz+V4qElJsfTG/jNtJyETjTZBy3w+hlmr8r3JDAn2KBQfQi/BPrpVlJV2gi5 26aM/h3g46w+S2V3RK4nUpe2Iz1Qj6EJh0kptZzCfdpnRYhAvsacrtrwJJhwCtYr67S8 tB/VN+MRLnhFCEjVKvKssmH9CpTb2qWaEJXq804d50sCDcxwkTSFvlQD/8s8rjoD8u/K 6x2VeWhdOwKMEpIXI2oiGKmXgqoRCZeiDZ5RXHm5auSSSdSdKbYfEpcIW5VjnTi7E6G/ pQMu8kDwimtKcr+PvkYK7jCVpzEziN59rH6eW/kbCMSZta9lh/q7+jmZ6p+K3jGdCWPM I4WQ== X-Gm-Message-State: AElRT7Gi9eTSCVjhlTJC99UC/A+8XU3h3burW8ky0oej84YaUVWYpG/t hIwVjAkRA7Vq43pq6Vnb24tD4oQBNh9IHNUeJ5xAEeg2 X-Received: by 10.202.97.87 with SMTP id v84mr11726070oib.12.1520331183022; Tue, 06 Mar 2018 02:13:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.33.100 with HTTP; Tue, 6 Mar 2018 02:12:42 -0800 (PST) In-Reply-To: <81f8b489-883b-58c8-851b-c624ca72c28d@arm.com> 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> From: Peter Maydell Date: Tue, 6 Mar 2018 10:12:42 +0000 Message-ID: Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API To: Marc Zyngier Cc: Auger Eric , lkml - Kernel Mailing List , arm-mail-list , kvmarm@lists.cs.columbia.edu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) thanks -- PMM