Received: by 10.223.164.202 with SMTP id h10csp439111wrb; Thu, 9 Nov 2017 08:38:02 -0800 (PST) X-Google-Smtp-Source: ABhQp+TIFoAThrol0n54shhy9Qq9JKApBhueQOwHshtiv5enPJsn6lQ+RObw9pMe/nbNqPbm4gKA X-Received: by 10.98.210.129 with SMTP id c123mr1051700pfg.77.1510245482207; Thu, 09 Nov 2017 08:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510245482; cv=none; d=google.com; s=arc-20160816; b=iHx3brSSxZDMH1Nbj1OBEzayBKrEKHG78v23lHA/p9wdWMxWm2Iezq/HCzvh9and5K WAITNZ0pKhXqK2buIvT2F2i8Kio1w65d9BNvI1d/vitUk2FZO2kLd7P5svMF+jcs7rq/ ZZHgsinwWnHchNoqvx/+0k2WRmsAFOytKANu2PtaQEMOwyNArJf9x8w/moM3H7u5rYUL tJaLGCNfdknHrNOE3zA5WiMNVycmGBWknCbH+dDewT+yHF7Aldvse0ECrqkjiZfOj3Wf a24T168vrDl1fuO0H72sLmYPCEYeD+dU8fUtHWEvOWkRiGTd7sI3VZHC/OjeRVkLZ5sA WpmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=u8IKXtCrhFroyRT3OBA4bwPW9Myl9j/IYDQd7oH/k3g=; b=GFntBowVHmvhk1Uw000k77IfZV/LvW7e8c6YnOp/NUtazEn6WyQt5cKXou+7Epvfp4 J6HWM819M0dLXt6QI+yjlXU7q0L0aGMkC3Pr5QuAyZt72kcZmjCEmzs37qo3rwkXsFtN ATnM+nFuTSL8biOX5Blj0EZt8YNLVHEYA9xhVstj+TwhPB5Gw5vcEP/21Q8ylRy6D9aS B/1LuvO6GBAxyPgyaN25lDrzl5U7BezXSMvqsuHsoeaVoyhyMmu2K64rG3ygqMNtgzkO aTIQfd2yYDmBuHEuZ0Edvy1Pfob227IEUJJhRm6dHkAigpA8LNYMbdM5jTWuJYgK+cBg oJ6g== 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 a33si6725246plc.645.2017.11.09.08.37.50; Thu, 09 Nov 2017 08:38:02 -0800 (PST) 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 S1753367AbdKIQhK (ORCPT + 81 others); Thu, 9 Nov 2017 11:37:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49318 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991AbdKIQhI (ORCPT ); Thu, 9 Nov 2017 11:37:08 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2943177356; Thu, 9 Nov 2017 16:37:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1160F60CA5; Thu, 9 Nov 2017 16:37:08 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B8D7B1808870; Thu, 9 Nov 2017 16:37:07 +0000 (UTC) Date: Thu, 9 Nov 2017 11:37:07 -0500 (EST) From: Pankaj Gupta To: Peter Zijlstra Cc: Radim Krcmar , Wanpeng Li , Eduardo Valentin , Paolo Bonzini , Matt Wilson , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Waiman Long , kvm , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Jan H . Schoenherr" , Anthony Liguori Message-ID: <1224132656.29253804.1510245427483.JavaMail.zimbra@redhat.com> In-Reply-To: <20171109161701.y3eqqrvs5jpg46lr@hirez.programming.kicks-ass.net> References: <1509999980-10828-1-git-send-email-eduval@amazon.com> <789734192.29237413.1510242805535.JavaMail.zimbra@redhat.com> <20171109160536.GE20859@flask> <20171109161701.y3eqqrvs5jpg46lr@hirez.programming.kicks-ass.net> Subject: Re: [PATCHv3 1/1] locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.36, 10.4.195.21] Thread-Topic: locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set Thread-Index: CL6+cpTeD4suFwHfMoBsyz7BzGKiOg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 09 Nov 2017 16:37:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCHv3 1/1] locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set > > On Thu, Nov 09, 2017 at 05:05:36PM +0100, Radim Krcmar wrote: > > 2017-11-09 10:53-0500, Pankaj Gupta: > > > 2] PV TLB should also behave as per option PV_DEDICATED for better > > > performance. > > > > Right, > > Shouldn't KVM do flush_tlb_other() in any case? Not sure how > PV_DEDICATED can help with that. Yes. If I understand it correctly, It will just avoid traversing all the cpus another time just to check/set 'KVM_VCPU_PREEMPTED'/FLUSH value and clear the cpu mask. Thanks, Pankaj From 1583606018972669002@xxx Thu Nov 09 16:19:47 +0000 2017 X-GM-THRID: 1583352031107436177 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread