Received: by 10.213.65.68 with SMTP id h4csp1419537imn; Mon, 26 Mar 2018 07:12:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ovWqd0uyhZES2VT6nVzOqES87/5A10TaLLyfY0w3ys1rnAtcuGlhwGz46eDdE1deRss1e X-Received: by 10.101.83.10 with SMTP id m10mr3615265pgq.1.1522073559545; Mon, 26 Mar 2018 07:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522073559; cv=none; d=google.com; s=arc-20160816; b=T8VJiU+78D+730aRRM7A4xBMfYsJBmX002UoueY5NacfQdqYBDwZsddPdmELhth+ay xTN4DbABdbl3aZTfNHgki1UQdSAKnc1XsIWPig8dLq3e4KquvzJxCjH7mcrfP2iHbthW 9oNe1zT1wYsY0aGSsUmaZGSxyDwZNociY2LgL3E+7eUZeSY4aCOBnByv7uuCGb3+GzJU wDq2P0ilyUqcgorBD0NPGoXAFYxXSJVD+W3v695e/e6XAZ32hTcxWP2VZsEg7o5bnVln 2kwpaG2t1G9F8lKx+PB4z2ziq6Iyf2ZyeV3GvUN17QVaxmJ7J8Em4kXCg374Ma0pkAjd kZqw== 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=iv6d6AS0ajIOuJaENh3BxSMGIYN1YcK/67WDMDfWIkY=; b=zd26uSK1p002/RJ/leg1tedd+2FDAGvBAZTfms9+4iTyR+/RYQE8eYKZiJF8mlJvau QnkL9M2kuWrcqbU4b7dWI+GK5jtP9UdnuTgzX3rsumEaNFM/p7HxujOSed6Ui3Sb/sTy ieDrWJsxmDS7s9vsgvar/j9vmUHO4c1lqRkEZM5VrYQk/u2aCz3ckHlmkGtskQFhiwFm TjQVro1ZnKeEe5bxdKp7E0Bvqskhsbu3BsUQkMVpzydlf505gRLGsvgifj41ufZMmFpB cx7G8UeqRijLzfc+LW0cQ16vehXhQRaUl9aWevLXHIpdPdWNky52eR/J34lFinf1UJfA j9JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9Ge+sOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si8742268pfe.124.2018.03.26.07.12.24; Mon, 26 Mar 2018 07:12:39 -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=@gmail.com header.s=20161025 header.b=A9Ge+sOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752130AbeCZOKx (ORCPT + 99 others); Mon, 26 Mar 2018 10:10:53 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:39091 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbeCZOKv (ORCPT ); Mon, 26 Mar 2018 10:10:51 -0400 Received: by mail-oi0-f44.google.com with SMTP id q71-v6so16151113oic.6; Mon, 26 Mar 2018 07:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=iv6d6AS0ajIOuJaENh3BxSMGIYN1YcK/67WDMDfWIkY=; b=A9Ge+sOyHWyuKuxOLedHD8sZ2zfio1SEgZNWPQfzcGu0j9TpsmZeL70skhcYAViGrV x+k1Af3r3oNJ0x0wJ7m+5aWOUmwoQkVzko9zFBFrx1UQr3B7VyQGl2xcos17x2v87lG2 wlMeUErafHAQkuhAHOZ9A3NH//Ml2im7SAwJtJSlRuoso4KnUk1xVpOmgtXGTY82s6ii QxC5+yTRU32JuC7AM+PcSsZIw7yI0oItKZ47gr0mPRU553xpu7qd14xruRws7lTSjBgE aq2ohvbie0vha1QhlsKvNgkSXaxq9dZTCtbBzUcpYLRSYnDmqYGe5GWmG8YA0UZiUz6V 9UyA== 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=iv6d6AS0ajIOuJaENh3BxSMGIYN1YcK/67WDMDfWIkY=; b=ROLc85dpEksNtR1aw/Pb5KjAL6l1vzYWT8h/eWj8HwUVfpO24YO1ZO2L2JyUOeoTVQ OF9ssdXpeplbem0+S8MqK0Gm8GgXRiwejXtJ55GO3LCOvO/bClR9ylM/r4QG91lVjP6D dM+INcx9Tvh+8oaKonqjawi6Ji81jkn/yLvuhEA0MYVSdm8QSnfHk9QFG5dSkfOQpy5z JBDwLVQg+sj3UdOshAokY9kIxzXjnJ+64F3k0Dt0U/pD1ACxeAfVwYiboJusYLcZLFD8 MDB4mqL/M8h9Q3ODYwGrLTktPquwqexQQ4UbPiXc2vbmuHOoGcxhL0aKnM6louqK52XB h3HA== X-Gm-Message-State: AElRT7FCjS/t5rPUxHGal2dAe4nUdEwsL0++kenMfcFN7VKQq0T3wRKb /GnGrLeAwIVOcqr8ucsbdQmv5FbvPtRn7XMb/Ac= X-Received: by 10.202.96.138 with SMTP id u132mr4267945oib.233.1522073451203; Mon, 26 Mar 2018 07:10:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.210.78 with HTTP; Mon, 26 Mar 2018 07:10:50 -0700 (PDT) In-Reply-To: <20180326002732.qks4cp7qq2xzysnx@linux-n805> References: <1521951444-5087-1-git-send-email-wanpengli@tencent.com> <20180326002732.qks4cp7qq2xzysnx@linux-n805> From: Wanpeng Li Date: Mon, 26 Mar 2018 22:10:50 +0800 Message-ID: Subject: Re: [PATCH 1/2] KVM: X86: Fix setup the virt_spin_lock_key before static key get initialized To: Davidlohr Bueso Cc: Peter Zijlstra , LKML , kvm , Paolo Bonzini , "Radim Kr??m???" , Davidlohr Bueso 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 2018-03-26 8:27 GMT+08:00 Davidlohr Bueso : > On Sat, 24 Mar 2018, Wanpeng Li wrote: > >> Note: Peterz pointed out in the IRC we have to audit all the architectures >> that >> implement smp_prepare_boot_cpu() to see what they depend on if we want to >> move >> jump_label_init() before smp_prepare_boot_cpu(). So what this patch does >> is >> similar to the issue which handled in xen ca5d376e. > > > After some auditing, the jump_label_init() being moved before > smp_prepare_boot_cpu() > seems fine, however, bulky mechanisms to update text segments conflict with > early smp > bootup stages, such as this patch. So, while the disabling I didn't see any issue when testing this patch, could you elaborate what's the bulky mechanism and how it conflicts with early smp bootup stages? In addition, do you mean the xen fix is also not suitable? Regards, Wanpeng Li