Received: by 10.223.185.116 with SMTP id b49csp3022327wrg; Mon, 5 Mar 2018 12:38:25 -0800 (PST) X-Google-Smtp-Source: AG47ELsua/xFVGumYtHMOppxxxtJkNpTd1j1tWRDRwH1zcwpmip/US9GbhWYh5Bn/DBO7ab5z94o X-Received: by 2002:a17:902:7c84:: with SMTP id y4-v6mr14081366pll.305.1520282305086; Mon, 05 Mar 2018 12:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520282305; cv=none; d=google.com; s=arc-20160816; b=nZZSGFPUMxwwy1mNUj9IALbM9apW4UvTISER/cNpvs0i+wffNaq9a2834ifFAUBjW9 +yJReEklKf+SWj02RkwlOCPO3L+oB4XfhVlhMbHNNZ5viCIJvaLsR+eO/5GKpK68J+6K 1fI3qtPw9A+HAlw3oFOmh91+jEFcud22e/NF1g687F0tkWQzlsq/+N5J4+ry7FzAn4ob 6x73A4OQn7UQwtg2hJmUy4Lh7nz8/UAR8Vfvu/ese0nFr6LuNuXKysY/x9+KLs5FIZzq uBtoDXM7w1wGQHXjn+iftTt+nhnHEjVozydo6HO23wb0SxdgOL3FKxVV19oCdtkhRtyI uHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=pyYLg5/E4Cno3mjC3tppcnZoy3uVJtJx9eOBaARfWDY=; b=CgTEbfNopq1bK8P2nEfEPvwovi3cJPJEjJz3xeakPb1a4JztlyLDQa6JZaQgfiiciN nezOCF/XyS08/5xRYGX32UJ/AO5VmIlHrJOn8HVcQMfE9SYrQq3/q9vbTxMLYFdJ7Oxp ohPW3YvtTonHeXQ5uIp+hEXeTU0ehYz5RJb8nGDvXJ7Dl+2DPaNrqDBHHHDb1imy8K8/ UjyDD228BObosItI756J/WU9vJs5N3xnYO/+5v+sSbBuz//9w1G+LSSLIynFRVEgvnT3 E4kSwKdlQ22DGtnkE94Jqy9tOFyttHX/J/EABe9/yiIq3+ePKVmigMy36Lsg0BWxC/5I dpaA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q195si7656100pgq.309.2018.03.05.12.38.10; Mon, 05 Mar 2018 12:38:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752967AbeCEUhN (ORCPT + 99 others); Mon, 5 Mar 2018 15:37:13 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51104 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752507AbeCEUhL (ORCPT ); Mon, 5 Mar 2018 15:37:11 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 20E3980AD211; Mon, 5 Mar 2018 20:37:11 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-135.ams2.redhat.com [10.36.116.135]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B63E9AFD5E; Mon, 5 Mar 2018 20:37:09 +0000 (UTC) Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API To: Peter Maydell References: <20180215175803.6870-1-marc.zyngier@arm.com> <86o9k63f7a.wl-marc.zyngier@arm.com> <40c74835-da24-485f-14bb-a0c357c7e79b@redhat.com> Cc: Marc Zyngier , lkml - Kernel Mailing List , arm-mail-list , kvmarm@lists.cs.columbia.edu From: Auger Eric Message-ID: Date: Mon, 5 Mar 2018 21:37:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 05 Mar 2018 20:37:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 05 Mar 2018 20:37:11 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eric.auger@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 05/03/18 17:31, Peter Maydell wrote: > On 2 March 2018 at 12:26, Auger Eric wrote: >> Hi Marc, >> On 02/03/18 12:11, Marc Zyngier wrote: >>> On Fri, 02 Mar 2018 10:44:48 +0000, >>> Auger Eric wrote: >>>> I understand the get/set is called as part of the migration process. >>>> So my understanding is the benefit of this series is migration fails in >>>> those cases: >>>> >>>>> =0.2 source -> 0.1 destination >>>> 0.1 source -> >=0.2 destination >>> >>> It also fails in the case where you migrate a 1.0 guest to something >>> that cannot support it. >> >> That's because on the destination, the number of regs is less than on >> source, right? > > I think it fails because the KVM_REG_ARM_PSCI_VERSION register will be > in the migration state but not in the destination's list of registers: > the code in QEMU's target/arm/machine.c:cpu_post_load() function that > checks "register in their list but not ours: fail migration" will > catch this. Thank you for the pointer. Yes at the time I reviewed the patch and just focusing on the kernel code, this was not immediate to me. > > 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? Thanks Eric > > thanks > -- PMM >