Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8015115ybn; Tue, 1 Oct 2019 01:40:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAykVlGwIZEvJxrJ6xSgUJy2bho/eCWEYAKnam9lYSqzX8bfS+f7rT8oNe7X0V3b04eS+x X-Received: by 2002:a17:906:199a:: with SMTP id g26mr17672793ejd.92.1569919211156; Tue, 01 Oct 2019 01:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569919211; cv=none; d=google.com; s=arc-20160816; b=HXt7OlxtKu+NRSUJTtGDlMDF952mtvGjzby/uo1lJbfljjn5solJ7zfoYhEvKPa7OW Jk/yvaaIYMII3JjweGcwl7WCY3TJkqt/ZOGR5O4BqdqI1tvmxYzJ0Pk+4GL9Mqqo7mWj 7WzanMWytPrdPYLU63qs3XyUE9MUyPAK8TetRgAMCU3GKoWjlBKMNInoO1S8A2BI7qfM w/265rvmbj8mNzij8G5xar2zTp/T2dPqQ9ul6K/CCdefikIia41N1W1Ks2DgTZ9X4Y/P TnNyCfu5qIdck2YpSpQlGLE+Pj7vZ7bJkyD7a11MXt/NNHZLlYZGloS1SZd9YCPVpXZO 4jSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=V0oWnMG5UzeuD4QEm5neHsBPW9FV4K2Mbr76uGM5/zI=; b=iR5JLk8OJXucsmXrtnPB6vyvfmR6FKvFdMuMvHZduyaCvSm8w2wfMmjxw/mdYI41Q+ NA9cjCeDboAm0ZTL4Szf2YiGsBr00/mgurQ0FX3IsdzPEneyeXBUPnNh9X1mVV+GxUb/ PZI/WIZuFclNdQYIlDlit/MdCLc/SPUlF2cMeD6GobRjMt7zg/H44gxygX5tuINxTRTZ r2MWJtausLidO3se2kDKXQ1H1oPcEej/tqrbqhj/xJdLIhVrbI1rQkbKDyUcBeGsQ0L8 QU5kU/WzLSd/J5VTfW+K611i2SaJ/fiu14Fo6wvlF9taUiVGnKicF0Qcq7Um5ErivJxX urnA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si8862538eda.294.2019.10.01.01.39.46; Tue, 01 Oct 2019 01:40:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728419AbfJAIjJ (ORCPT + 99 others); Tue, 1 Oct 2019 04:39:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62806 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727274AbfJAIjJ (ORCPT ); Tue, 1 Oct 2019 04:39:09 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8FEF188302 for ; Tue, 1 Oct 2019 08:39:08 +0000 (UTC) Received: by mail-wr1-f71.google.com with SMTP id a15so5714503wrq.4 for ; Tue, 01 Oct 2019 01:39:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=V0oWnMG5UzeuD4QEm5neHsBPW9FV4K2Mbr76uGM5/zI=; b=EeSn2yQHuMSccWh+e5ERTIk4TR6CDgAXq5/o9aVt8j1Vbv5vq6qpESqs+01cktyEgA Deg5XbB1TQAuJx62vDQpGStpQiwS44Zm0m//QBORMRI8zTYzNayr0661dnb6nzl734g1 NAMz2MkW/Sd6Hm2g0pcwzLhyWhmcsUcY/ptv5LqyQofcVFTTBBzVDcIudJFeh4DmI5n0 WHWYIMqmpOOdL5rcsot6WRTD/ALmoN4iJeJymyO6O58ZPriXiGkAWnBUZAzzGQS0RsDv 7WH9p0tavn1V9Ih3xEPpG/cdEw+cm7DSIVGerzLMX2kJTNKFtBQ7Q1ds5zfVZjqz+tFt BoHw== X-Gm-Message-State: APjAAAWEhSucRW25CLQCa6Mql0RJsZ7BkpflmGPUnaZ+nEZPTAI4FDcl tCWmda2CVF7x9dc46TGqW0oGCGzba9/C+0aFokF9ky/AxgsSFOigaVYaSKmHpmrfgkMTotIVfxx xGuVTZDdpb3d7EbblgV6qZUfK X-Received: by 2002:adf:94c2:: with SMTP id 60mr1392650wrr.357.1569919146899; Tue, 01 Oct 2019 01:39:06 -0700 (PDT) X-Received: by 2002:adf:94c2:: with SMTP id 60mr1392632wrr.357.1569919146650; Tue, 01 Oct 2019 01:39:06 -0700 (PDT) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id w12sm24653712wrg.47.2019.10.01.01.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 01:39:05 -0700 (PDT) From: Vitaly Kuznetsov To: Zhenzhong Duan , linux-kernel@vger.kernel.org Cc: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Paolo Bonzini , Radim Krcmar , Sean Christopherson , Wanpeng Li , Jim Mattson , Joerg Roedel , Peter Zijlstra , Will Deacon Subject: Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks In-Reply-To: References: <1569759666-26904-1-git-send-email-zhenzhong.duan@oracle.com> <1569759666-26904-2-git-send-email-zhenzhong.duan@oracle.com> <87pnjh3i6i.fsf@vitty.brq.redhat.com> Date: Tue, 01 Oct 2019 10:39:05 +0200 Message-ID: <87eezw3lna.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zhenzhong Duan writes: > On 2019/9/30 23:41, Vitaly Kuznetsov wrote: >> Zhenzhong Duan writes: >> >>> There are cases where a guest tries to switch spinlocks to bare metal >>> behavior (e.g. by setting "xen_nopvspin" on XEN platform and >>> "hv_nopvspin" on HYPER_V). >>> >>> That feature is missed on KVM, add a new parameter "nopvspin" to disable >>> PV spinlocks for KVM guest. >>> >>> This new parameter is also intended to replace "xen_nopvspin" and >>> "hv_nopvspin" in the future. >> Any reason to not do it right now? We will probably need to have compat >> code to support xen_nopvspin/hv_nopvspin too but emit a 'is deprecated' >> warning. > > Sorry the description isn't clear, I'll fix it. > > I did the compat work in the other two patches. > [PATCH 2/3] xen: Mark "xen_nopvspin" parameter obsolete and map it to "nopvspin" > [PATCH 3/3] x86/hyperv: Mark "hv_nopvspin" parameter obsolete and map it to "nopvspin" > For some reason I got CCed only on the first one and moreover, I don't see e.g PATCH3 on 'linux-hyperv' mailing list. >> >>> The global variable pvspin isn't defined as __initdata as it's used at >>> runtime by XEN guest. >>> >>> Refactor the print stuff with pr_* which is preferred. >> Please do it in a separate patch. > > Ok, I'll do that in v2. Thanks for review. Thanks! -- Vitaly