Received: by 10.213.65.68 with SMTP id h4csp155567imn; Mon, 26 Mar 2018 17:53:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELvAxzs6lVhdc04x7zgz5xMqmJF3HnB/bFO55bl/xesps5wdv0e2vllEjfAmxUEAisUbOZL/ X-Received: by 10.99.152.68 with SMTP id l4mr29332265pgo.75.1522112027803; Mon, 26 Mar 2018 17:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522112027; cv=none; d=google.com; s=arc-20160816; b=niTCUaGjIdEjjnmvWSG8Zv29+knolhTCU7y+BF69yXHhOoaoRcFm3csmVtamdJ98U6 FAKWixP3FJR4hwjIZjtwl1UFoChuqX8MdbSOsyEpkqAlOsNH/p4tTFu33nXZBk/xhpMu MwLIqGvmEF7yDIlJ991yLl9ai2g+/4YpbcjC2z/M7JB80H2+krU9r+8hoQ5W3vkLSIJM 0+Cmvup2923WWCbXtzT7ExyAEt0dk+T5dfLaGfERIf5xwmJjwUEUQTYsCiIqJ+hcqxk/ JuJpGMFY4oB/7dCEfHCCZVFk2uuAxJ/siXHdFp96ijrHDPA2VTBHFORGJ3EYG0ncAjBY jPbw== 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=/+x7rPo0WVx5SRA8NKfOgQd5dgLIQ5KoY4Ksp15tVi0=; b=Qtgjqbog7eFijxUZzk9vhmnBh+dhKGuUBFtKnitbf2s2X3w4QHIY5tAI79haB9aC9Y 3BaOcYifyraIohryOJX7KVhQz6wI9DcaTtl6Qrcf11jdjYAr120F7nGpzt14rXg8wyn1 /BuziAHmdOpEL0NDhx5iqGGLz9Xy1+OYoMm0a8fJ8tCjIsPAWoEA5SWVTPt1YnZcTNXF 16PeHiTC4XsGjfLWvW02VZdm3YEwIgdwEYlCc0QvYERv/B5PKm9SGoZsZQjOPLcKxW08 GJ7a/A/Jlg2DuaDE/C3xdJlGPkEPWXV6vGU2uyVTiFjfL/scipiI4hbb6acfw1k/toD7 N5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LjDvmvsR; 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 p7si36028pgq.8.2018.03.26.17.53.33; Mon, 26 Mar 2018 17:53:47 -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=LjDvmvsR; 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 S1752129AbeC0AwU (ORCPT + 99 others); Mon, 26 Mar 2018 20:52:20 -0400 Received: from mail-ot0-f169.google.com ([74.125.82.169]:40733 "EHLO mail-ot0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbeC0AwT (ORCPT ); Mon, 26 Mar 2018 20:52:19 -0400 Received: by mail-ot0-f169.google.com with SMTP id w12-v6so768599otj.7; Mon, 26 Mar 2018 17:52:18 -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=/+x7rPo0WVx5SRA8NKfOgQd5dgLIQ5KoY4Ksp15tVi0=; b=LjDvmvsRdoklBYT5QDd2iyBvogF5FV1BATJ6sMwX7GZnQLTiKpV6CpCjPYhDsPIgep GwaZRxjt92lK5pGbbIad1wh2jWVjESGxJERYd6rs0hbCJ1s9uyjaxLyPK3DTREILAbQI 0fmf7A/trTMbuXUjoa9HbxNMU9vKAiixKZKfg+MiuJ226ZZqp07nuNdwAgb5ck7jLx/O DfN80eyBsa+cZI2Zbqiho9tgkYFRTkkEHvAj3aeYW9i7VbjXM2h+2wmF3zd+MhRsA7sS vihqAKXynXTAFWSnBmW0f5s0K6DvRfm8FitifDUOCdQCan6z0f1EcxYPbsABSZda6dDm KZyw== 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=/+x7rPo0WVx5SRA8NKfOgQd5dgLIQ5KoY4Ksp15tVi0=; b=Iee7WbZIKZGVRhxBIoZWzN9v9VQgXKilSM7VopR/F7lyZD1Fi76aqQTl0IIGIlIIhC 7Hr6COLekna1HZ9mAVKnssrMUStqAc82J6QqKix0NZO5y1HuW8TmPVPWhWap1AZnpYd3 HTxfJi5aipVtxtrvVi025TEW6d/jKJXnBDMFbSPEyEgLrYL7/qByGBvBXpyoxgmxVXqg ijPwy5OVgd4si0upilfTi7jqj3mtoeJRf2M4PJ2hFhdr2q3dkfi758SrkMAThe/5sgxR nGNx9NWAIPNNrPjbXTv4fmiQFePhT7rhCSsf3dlFpI72TapMEXQrWliZmdb+++jnufOa JuXw== X-Gm-Message-State: AElRT7H+L883ythEj5NPqbkqsDdSOHb+BDqklpzsHPQQKUybps3Dt3NQ Jh5SicRMift4ftb+8ksS7kx/FUXTv71Nrw+UY18= X-Received: by 2002:a9d:55cc:: with SMTP id z12-v6mr7118586oti.203.1522111938514; Mon, 26 Mar 2018 17:52:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.210.78 with HTTP; Mon, 26 Mar 2018 17:52:18 -0700 (PDT) In-Reply-To: <20180326223232.ifaoc3zyjii4gq2f@linux-n805> References: <1521951444-5087-1-git-send-email-wanpengli@tencent.com> <20180326002732.qks4cp7qq2xzysnx@linux-n805> <20180326223232.ifaoc3zyjii4gq2f@linux-n805> From: Wanpeng Li Date: Tue, 27 Mar 2018 08:52:18 +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-27 6:32 GMT+08:00 Davidlohr Bueso : > On Mon, 26 Mar 2018, Wanpeng Li wrote: > >> 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? > > > I have nothing against your patch (or the xen one for that matter), other > than > the fact that both seem like band-aid solutions to being able to move up the > jump > label init call. I was actually peddling a similar patch but didn't want to > add > the extra callback just for that -- at least xen already had > smp_ops.smp_prepare_cpus. > > Instead of dropping the patches in -tip (ie: delaying the feature), I have > nothing > against these fixes being merged. If a better solution is available later, > we can > always move dealing with virt_spin_lock_key back into > smp_prepare_boot_cpu(). Yeah, we can pick the current patch for the fixes and wait a better solution is available later. > > Also a bit unrelated, but am I correct to assume that KVM_HINTS_DEDICATED > can be > used via qemu? I've only been dealing with kernel parameters. The host admin can control it by qemu command-line, -cpu ...+kvm-hint-dedicated Regards, Wanpeng Li