Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7536531imm; Tue, 28 Aug 2018 14:01:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbNHGlunhYXPA6IGrUqV2fEt1ioHXn0jFIsvXFLU9Fc+DG9HIkHECcclUsP8K2G4vQs6G9H X-Received: by 2002:a63:1204:: with SMTP id h4-v6mr3062496pgl.115.1535490080103; Tue, 28 Aug 2018 14:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535490080; cv=none; d=google.com; s=arc-20160816; b=JoSV6dMt5IH5SJrhmNa6UT84nx8Xn0Z2N9S3NVC6fE0aNwyGjH0F1PsJd6aoA4krGn 1LrmrTEp2ygIftqhyt5aK3U6TfdJJ6F1SMPSVKQf2KravSLuQAIAy8HzGcP3dGfWMmJ3 yucP4H/OhFhFDp9Tjuy7dv+q50qkhyR+pT00+oZWRYOhH+7FcXdWDPkt3zY3LEsZdgtx fC7Ec/KoLdcdVopjeS3Oq678XewQPgU1lWrkrEi3fgfPcy20FPaUJ8fBELe5w2DluPiH hzZONioUNaJENuix8r4ruu2hN2rnVKaH2XTfVRNGkw4a6/SxCId9h6x3fYLdcuU3ot6U 9JlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=3lufHLNmRYk2kkUeWgZKoPV24i2sZ/SlhphTUm/Gvx0=; b=Z4pCQani6p34kTGHZhE1UiT/EpRNZNmFV/zSMwBlZY3bajJxtaIkQb9NB+XAcJQtci PNaJMCNrAIk7fcK5KcsP7ycXr1iwoL8GJn2/HozNzq0mQK2CfzGGDWwnxdjZK+zGDodX uBR/Xm1oI2q2JomuHuFTyFQSsOuniH9G3GAP5NAcZC9hlxRjwKb/6Tv/QCJFZ9IeV15b nCICWa2yMN8+Ki5Mf8WJaKFxx5lO5fKgrZsQnBavGSwOArPVvzilkPPTdj+FziV+kM5r HX72iuxhPTpcuKoBJpbN/ufs25wAegqM6KT+H4IiRjR8bXRADVkk6s+EGaOBlN+cgtt3 5jsQ== 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 j124-v6si1942747pfg.157.2018.08.28.14.01.04; Tue, 28 Aug 2018 14:01:20 -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 S1727456AbeH2AxR (ORCPT + 99 others); Tue, 28 Aug 2018 20:53:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58516 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726383AbeH2AxR (ORCPT ); Tue, 28 Aug 2018 20:53:17 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DDF54401EF04; Tue, 28 Aug 2018 20:59:51 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (ovpn-204-130.brq.redhat.com [10.40.204.130]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F3F1A2026D6B; Tue, 28 Aug 2018 20:59:48 +0000 (UTC) From: Vitaly Kuznetsov To: "Michael Kelley \(EOSG\)" Cc: "mhkelley58\@gmail.com" , "gregkh\@linuxfoundation.org" , "linux-kernel\@vger.kernel.org" , "devel\@linuxdriverproject.org" , "olaf\@aepfle.de" , "apw\@canonical.com" , "jasowang\@redhat.com" , "marcelo.cerri\@canonical.com" , Stephen Hemminger , KY Srinivasan Subject: Re: [PATCH char-misc 1/1] Drivers: hv: vmbus: Make synic_initialized flag per-cpu References: <1533004484-3937-1-git-send-email-mikelley@microsoft.com> <87ftzzodnv.fsf@vitty.brq.redhat.com> <8736vyo2tm.fsf@vitty.brq.redhat.com> Date: Tue, 28 Aug 2018 22:59:47 +0200 In-Reply-To: (Michael Kelley's message of "Tue, 28 Aug 2018 20:20:19 +0000") Message-ID: <87va7uxl4s.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 28 Aug 2018 20:59:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 28 Aug 2018 20:59:51 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Michael Kelley (EOSG)" writes: > From: Vitaly Kuznetsov Sent: Wednesday, August 1, 2018 2:26 AM > >> > I was trying to decide if there are any arguments in favor of one >> > approach vs. the other: a per-cpu flag in memory or checking >> > the synic_control "enable" bit. Seems like a wash to me, in which >> > case I have a slight preference for the per-cpu flag in memory vs. >> > creating another function to return sctrl.enable. But I'm completely >> > open to reasons why checking sctrl.enable is better. >> >> Just a few thoughts: reading MSR is definitely slower but we avoid >> 'shadowing' the state, the reading is always correct. In case there's a >> chance the SynIC will get disabled from host side we can only find this >> out by doing MSR read. This is a purely theoretical possibility, I >> believe, we can go ahead with this patch. > > Vitaly -- just to confirm: you are OK with the patch as is? (I'll > check, but I may need to rebase on the latest code.) Yes, feel free to use my R-b tag. -- Vitaly