Received: by 10.213.65.68 with SMTP id h4csp140367imn; Thu, 15 Mar 2018 12:04:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELv2/3CXB0545fvwR50yiGuo8YiJ5pmLYV2gSfREz64p6h7QDvRzYd2a1vvtV881pdtUA8Q1 X-Received: by 10.101.69.133 with SMTP id o5mr4196357pgq.156.1521140671205; Thu, 15 Mar 2018 12:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521140671; cv=none; d=google.com; s=arc-20160816; b=XzyFjUJ2Y6CE8UhcCTjsvjA6pIqsg1BTgRlmLELHc8yQE9/6OwHQQNs01Slds7QCPU oPHPqm77iOnbRfxJshitq6CiXSHcA3P9DiSaIX5oUlX/+fpdGzqNZ+7GDCNP1XilJRga VR0JXwBU0m0022MzJnvGgVvsdF5JkwXTleSftVKmdfGNio0v+AjKbFfafxBP7OUwWeCA zJoBCnHj2/mRSBQNnlE+d3XXn8xNDXJ7Ptk5KB8ecCLmY1k8+WH3YN5evXUTbr7T2SPA B0Qs/YqG3E0xHQu29nF9hdVZFUUDRrPKYNy0qxX8cJHSvZ0DLYL5+neqhWfAmAprY6Ch O3GQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=IJ1YleFWMG9Jalrbzd1nUn303Vvx+FamvTTAtsRAxfk=; b=I41Yd39mQPePGu91ElvGSozP5Tj78F3V2h41nsxzqiRvSMWO5qMXru4Yqo/J4qOZYt 17iOjtIUnPqKWpRgCkV2b3ZwU4t0HwtV9++SqGVUEYmweWIK6V6S6UmBQCRzCRxYn+d8 pCIG4OI0heV16/PVRRmiUuJUojgDZj98861XFzBJxZerMHMwAoFf/so6sG6H5uSNYkfc zdN6XwAKEAAmSGbPPOmc0FWqa4+vuGUGSgDc6Hjg9ii37GQH0Yzp6hswl13ipcBHNeUh tR9uurd6udImvMjtjhl8kLDO1vXPiPhoEyzn06x6M7V0EzO8unMcP9n84kEdPel9RyOl xWNA== 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 t9-v6si4413828plr.558.2018.03.15.12.04.01; Thu, 15 Mar 2018 12:04:31 -0700 (PDT) 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 S932472AbeCOTAb (ORCPT + 99 others); Thu, 15 Mar 2018 15:00:31 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46324 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752803AbeCOTAa (ORCPT ); Thu, 15 Mar 2018 15:00:30 -0400 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 0A9B71529; Thu, 15 Mar 2018 12:00:30 -0700 (PDT) Received: from [10.1.206.75] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BA5E3F25D; Thu, 15 Mar 2018 12:00:28 -0700 (PDT) Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API To: Andrew Jones , Peter Maydell Cc: lkml - Kernel Mailing List , arm-mail-list , kvmarm@lists.cs.columbia.edu References: <20180215175803.6870-1-marc.zyngier@arm.com> <86o9k63f7a.wl-marc.zyngier@arm.com> <20180306092134.4bfbz34yhqfrfdlf@kamzik.brq.redhat.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <8042f946-49bf-5fc1-f513-4b76ccd5f7d6@arm.com> Date: Thu, 15 Mar 2018 19:00:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180306092134.4bfbz34yhqfrfdlf@kamzik.brq.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/18 09:21, Andrew Jones wrote: > On Mon, Mar 05, 2018 at 04:47:55PM +0000, Peter Maydell wrote: >> On 2 March 2018 at 11: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. >> >> I think it would be useful if we could write out the various >> combinations of source, destination and what we expect/want to >> have happen. My gut feeling here is that we're sacrificing >> exact migration compatibility in favour of having the guest >> automatically get the variant-2 mitigations, but it's not clear >> to me exactly which migration combinations that's intended to >> happen for. Marc? >> >> If this wasn't a mitigation issue the desired behaviour would be >> straightforward: >> * kernel should default to 0.2 on the basis that >> that's what it did before >> * new QEMU version should enable 1.0 by default for virt-2.12 >> and 0.2 for virt-2.11 and earlier >> * PSCI version info shouldn't appear in migration stream unless >> it's something other than 0.2 >> But that would leave some setups (which?) unnecessarily without the >> mitigation, so we're not doing that. The question is, exactly >> what *are* we aiming for? > > The reason Marc dropped this patch from the series it was first introduced > in was because we didn't have the aim 100% understood. We want the > mitigation by default, but also to have the least chance of migration > failure, and when we must fail (because we're not doing the > straightforward approach listed above, which would prevent failures), then > we want to fail with the least amount of damage to the user. > > I experimented with a couple different approaches and provided tables[1] > with my results. I even recommended an approach, but I may have changed > my mind after reading Marc's follow-up[2]. The thread continues from > there as well with follow-ups from Christoffer, Marc, and myself. Anyway, > Marc did this repost for us to debate it and work out the best approach > here. It doesn't look like we've made much progress on this, which makes me think that we probably don't need anything of the like. Going, going... Gone? M. -- Jazz is not dead. It just smells funny...