Received: by 10.223.185.116 with SMTP id b49csp2779845wrg; Mon, 5 Mar 2018 08:33:44 -0800 (PST) X-Google-Smtp-Source: AG47ELvIkMOzLAh08v46QNvOSwcDVjBzeDEBrZkEs/m/QMLojKgqoWExkSN0EY/DmmncXDMiwh9N X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr13050678plb.99.1520267624717; Mon, 05 Mar 2018 08:33:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520267624; cv=none; d=google.com; s=arc-20160816; b=S7iGgAwlaY9B02QahFkFCzEAfL7N/FqWP4WrsmMIVYla3ZpbMS9MIQVcEQRCwAdT+h YBxiCDuG77OdUVtKqWmiXKjnEc+e9Wsa30MQcy5b7k+IKoFI5KeHwznP55BcoZjXpG94 SkeKDCzJ/trikY3Ttg9aGC9zqJXoJXpuUONRgsWmbvUyh9KlY/aHFr6OIKfYz67jNXaZ C2tjfiIY6+POUwLbfYRnI9BHVq+w7nNuJcq99mBCr1Gqq8HDYul5bJlix4Llt8uW8a8D j1H5HkpLKROxbk2Mst+WH0A6eqq1Cq3IhybXc+pR5Wo2aMPsuhfhfOsz3R2hmLvNl+np fizg== 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=WmMNGx0dybQoim4aNlXraGKapxJW7S0xwVKcuTUC7lg=; b=zgKdW/y7qgGt2vxM9qbEqx5MhPCqbopwDPuF2G1GkmG/SZVVYSnZSC6h6mniRRhG5q ZD9Y/mr3dJAgnJHigkVzNhxO1hL0SNc+g17cJ+yJxBe+UwdJGnf5MHXlxZ0PcJjRugGr SOsUVnJ+gaidba1vlXQ7YWzXK4h3WebS+9nfYU0UF81Yp/WDkWAz6/PQRdHqYRgv9D8O 6z8Yz/MI/C7HYK99apLvrUAreyCTGHHuUVC3RfmO4AZ7rnSMa02mvfGicK11gfBH9Aq9 Ocp97spsvhOt0+knct7000IaxzXXQMPrM6y7fkWhMsarNFW0xPFpbSYyzO5hcGAww0Qz yZVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRNOV/Mh; 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 36-v6si9522890pla.511.2018.03.05.08.33.30; Mon, 05 Mar 2018 08:33:44 -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=WRNOV/Mh; 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 S1753002AbeCEQbw (ORCPT + 99 others); Mon, 5 Mar 2018 11:31:52 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:36738 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbeCEQbt (ORCPT ); Mon, 5 Mar 2018 11:31:49 -0500 Received: by mail-oi0-f65.google.com with SMTP id u73so12497924oie.3 for ; Mon, 05 Mar 2018 08:31:49 -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=WmMNGx0dybQoim4aNlXraGKapxJW7S0xwVKcuTUC7lg=; b=WRNOV/Mho+PaLm2IIc2/MtfJ2ZP1MoxoYiKgBKoaUXU/bzFAr/nsXjnK63RCAft4Ai 9doupq/3V7NTeEwq6Z0+bgS203jp8zKVatt6Gyu+eHb3dECPjXr5zYTdfoL10BhBWn2d rlVsezWhNYzPxTUWZn2ErnDUEFQQbZTQ/smu8= 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=WmMNGx0dybQoim4aNlXraGKapxJW7S0xwVKcuTUC7lg=; b=RdIuLd2ZqKMbsLNjODs3pWGP2R9CunOAxHD4NiNdCaQdZ8loWPndzFoTvVy6y8M8TP Ma4BXmgB2ydMmq5+v0+ylWU/6PbDq134gzuKr5Qzo+eqYaGrgFeAtHJoNDxTkxJ2YhrE tm6znHOpJk4QdDw0ruzaKWlUv681ssUu5vTvvvmOrvkPv/EHaJCiuXCiJUKt9DbzG6P5 k5cEpRUdthTViDT3nPuvj2KEF58BE0mcNo6IEce/mCn3VFCHClVNA3jywGRkqxqCrmt+ +Na/qCv19mykolMRIZJeyNkrH2zwybCOYMt47lhStviulpEGt9Cb40fHRJ5pby1yNG7m 5hHA== X-Gm-Message-State: AElRT7GDtIpUayi6RY4vaP2asTypPcuWtNzYHc44MRjHDNKFcgtdQEPU KiP3fTeP9BKo3ScCWoLVqqGelzuT9y+Gg/mGBvmEiQ== X-Received: by 10.202.97.87 with SMTP id v84mr10103589oib.12.1520267508872; Mon, 05 Mar 2018 08:31:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.33.100 with HTTP; Mon, 5 Mar 2018 08:31:28 -0800 (PST) In-Reply-To: <40c74835-da24-485f-14bb-a0c357c7e79b@redhat.com> References: <20180215175803.6870-1-marc.zyngier@arm.com> <86o9k63f7a.wl-marc.zyngier@arm.com> <40c74835-da24-485f-14bb-a0c357c7e79b@redhat.com> From: Peter Maydell Date: Mon, 5 Mar 2018 16:31:28 +0000 Message-ID: Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API To: Auger Eric Cc: Marc Zyngier , 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 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. 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. thanks -- PMM