Received: by 10.213.65.68 with SMTP id h4csp146040imn; Thu, 15 Mar 2018 12:15:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELsKAbAG57QOkoOoo5U/b/hkPQy8mzXBHjyyRmP+JCT25pRgBfUO8mg09HSeJ/o32QW97ktv X-Received: by 2002:a17:902:7787:: with SMTP id o7-v6mr9387109pll.75.1521141324060; Thu, 15 Mar 2018 12:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521141324; cv=none; d=google.com; s=arc-20160816; b=HG0E32WDN0+Xbo/wSGkzy4RnjmSyaAhW2zboCKFnnDy4/orM6x+4iptLhtHiAX6Co/ Aw4Q9LPmRubNL2kil7oqp0XijRpEKYzPfOzKBmItpo9Zk9wVAnl7L/EVCLaBLAea8Y6L vEVbEpfXRw3qNXOrYcENi5ikQqRzqv94/L+7KxH7vccDOCvOrKubtguGsvwZyTqa3BIj 5zZ5nXtf6Dgj4BXCe6CPDzby1sfswM6ed+ouvNxH6xUXiJSTrWJfQT41L243PEdfDDEu TZzZXj8dH22kNoWbhh1gAcudu7K3GQVPr0qoUMbULHAw+QP/DUEbICl0YZWE+8OV1mK+ KrIg== 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=e1Z5mH6mM+Lm07m0V/BqiX627Gqz6KF0VxYVnKKjyg8=; b=jO93TwvJFYNCDHxZykgKi5AFJfiVltCjw7XZ/AY7zMEcuom4hfGKFyXaJPgxbatJOJ fKYE72VZQCnBJ3NBb77xiZJow7UF/3jQCRL3pNPF1nUQIg0lobeJrhkVDlEwZZyorYz9 JaSQj9p1BtSQlhA8kveC72UNpi+/IXFHMvN10KewqxT52YzsopztQhGPhR9HrQYuZe71 StxTNMSEYP4Yqqr7BeVoR9gZQuOOiMMqGUCk80cEtAAxFziyU2ZYW18WneJrOz1DUpHJ gXYx67CB5xr1IcrjAIVXgUz4nhCfS/SqhUSMwfzfZ7CYsrWWtKj7Db/NlpuBs3cDS9Rj JtOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OQ8FUQSA; 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 j11si4164180pfi.57.2018.03.15.12.15.09; Thu, 15 Mar 2018 12:15:24 -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; dkim=pass header.i=@linaro.org header.s=google header.b=OQ8FUQSA; 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 S1752980AbeCOTNu (ORCPT + 99 others); Thu, 15 Mar 2018 15:13:50 -0400 Received: from mail-ot0-f175.google.com ([74.125.82.175]:34000 "EHLO mail-ot0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752935AbeCOTNr (ORCPT ); Thu, 15 Mar 2018 15:13:47 -0400 Received: by mail-ot0-f175.google.com with SMTP id v4-v6so4835315otj.1 for ; Thu, 15 Mar 2018 12:13:47 -0700 (PDT) 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=e1Z5mH6mM+Lm07m0V/BqiX627Gqz6KF0VxYVnKKjyg8=; b=OQ8FUQSAlZm5VG4K99YSpB6icMiGqIsmCFEhsELekhU1r79dVDjCaNSoKCmvFXt38+ +XTIsfFkomtHlUbiQPMy8rRlMcBZ3SPP7bYbUudkmLoGWBHD2MtV96wq8NR8wgUNb6b0 VKdGRcWQVYBIO/KwFI6t0z3Lh96yzJrBjgq7w= 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=e1Z5mH6mM+Lm07m0V/BqiX627Gqz6KF0VxYVnKKjyg8=; b=tQKPaapPLamUsl4TWFrKxfefZAW8fL9GqKdUzKLkSxqOMsAeGtYfE1jphyQOlqZ6Is K9xz7nVgtNK5T5Hi3wmr4jT1NreRDFM7bepRRtO0VSoJEdSAnNofJ0TQzGbSuUMTRCEk YtRAO+AimpZqrwseTe8TyRy23K0Zj8wIvv493BP2mpw8U7FWOoE6Ub+YemkxfhEbAwT4 BuR0CZN7ZwWEmZHi3Ta2EXhpVfoenJ3ie3I3/YcgCUlgKeaZwgjO4s7Va4VZFLQUwi57 OqE/pM3DPDPmeaPcL5da+ivlMrZp2brtHXujZgOs0fhF/t+Qp+B/ef070DlEHX131SWu cn4g== X-Gm-Message-State: AElRT7HLOr/uZ6IJif1vncRo4q6v2DHf2/tD+oGSVHqdUuRM2AVYyiDG 9bCPSG4bw8SJfm1n4oUBSMrHK6OW533ka4seJyZLew== X-Received: by 10.157.46.143 with SMTP id w15mr6105683ota.205.1521141226506; Thu, 15 Mar 2018 12:13:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2164:0:0:0:0:0 with HTTP; Thu, 15 Mar 2018 12:13:26 -0700 (PDT) In-Reply-To: <8042f946-49bf-5fc1-f513-4b76ccd5f7d6@arm.com> References: <20180215175803.6870-1-marc.zyngier@arm.com> <86o9k63f7a.wl-marc.zyngier@arm.com> <20180306092134.4bfbz34yhqfrfdlf@kamzik.brq.redhat.com> <8042f946-49bf-5fc1-f513-4b76ccd5f7d6@arm.com> From: Peter Maydell Date: Thu, 15 Mar 2018 19:13:26 +0000 Message-ID: Subject: Re: [REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API To: Marc Zyngier Cc: Andrew Jones , 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 15 March 2018 at 19:00, Marc Zyngier wrote: > 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. I was waiting for a better explanation from you of what we're trying to achieve. If you want to take the "do nothing" approach then a list also of what migrations succeed/fail/break in that case would also be useful. (I am somewhat lazily trying to avoid having to spend time reverse engineering the "what are we trying to do and what effects are we accepting" parts from the patch and the code that's already gone into the kernel.) thanks -- PMM