Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp576143imd; Thu, 1 Nov 2018 02:01:04 -0700 (PDT) X-Google-Smtp-Source: AJdET5cUN97WOR386DWMnzbtNScyWjoAq1B9ru5t3Vu/p8C5dDyFsVD8nlRRYr2pBr99PzoHsYBB X-Received: by 2002:a62:401:: with SMTP id 1-v6mr6802309pfe.156.1541062864292; Thu, 01 Nov 2018 02:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541062864; cv=none; d=google.com; s=arc-20160816; b=MdFMtnuufxIufTdSKFgGahIVRYWiQLB1E3DLESAb+cCRniOrEkNSRVgjWRELdgu1Hu e+fA9IJCGXHsukb9RQ/n05X0Xh9Krnn6uhfBWpgpA4cPU31ju/iR8x5OVIyGrNVCTo6l aW+WyZLwAIz1S+5K+yofNcbvMTSbDkSe3SnGlpQOdowYagnxtiAkKRK7llpeCMh/Z9/m a6RFhlsRHdWfh/AP7NPCnyKQ+MJk9L7v18nzYkQCTvn1zhwRKmEn9h53LWl2X2n6EYtl 2QwZneDwSxq7KOsPijAtngS/LeWb5HhQYKRbN5Dvlp2cu9EMjAGHmxE0Axiywy9RVtx2 JEXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sIZdAemLUiHYB44Xta+IGVhqMgW1vg1JHGzNMj+p4Wc=; b=rtWd8ybSmuCXQAyXJAOfqOaeWtS7dgBJcMKm5nMO4/xJhDTJnv1ngPWtghbtceiBZ2 WSQtfG/oaP+SLFbSuCn42gW1egztyvzw3I/HOxS+Kz0uxwIPBkr/COrwHRqiL7LFZzsS pdt+lvONfOZi3g5fDUtucjSXp953g3v51Q8wVHyifZCfu9/ZXOl7Shv2mDd4R4Jercn0 GY+VNmgL/I1Jgt8nLvjWHe5JH336mY9IybM/OiW9nuZpnM/k4jA8KZEYmQLbrf6ujUhG oGcoFr4PpmgxJtpwmejyveju4OjTEPBpVFvnp/1FaBUNBIC0ZORFzjYKlqfRhegvNb48 4b2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jAcw4DsI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34-v6si28881701ple.31.2018.11.01.02.00.49; Thu, 01 Nov 2018 02:01:04 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jAcw4DsI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727608AbeKASCE (ORCPT + 99 others); Thu, 1 Nov 2018 14:02:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35484 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbeKASCD (ORCPT ); Thu, 1 Nov 2018 14:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sIZdAemLUiHYB44Xta+IGVhqMgW1vg1JHGzNMj+p4Wc=; b=jAcw4DsIGmyr3TiyUErfY7apl f1iQpcwyJYboY7xULLTjUAnaVSZbx+NTkTXGgVbItWTweJ6Von9a7zjDFPcIwagOiZdMYNSXQqGr4 OlCCDxX2fBjqv8t2kPLCFaDwFh8c8cY+66j0fXBnpSdEYHZxk4B6GbP3vVdy36yOA3fC847v4lzO/ NDW3dHJxJYOdFiJ8LPSlCA5Jmw9SIyOtRi0RtvtOH0bobRj+11jVMmnnEteerkW8fk8cx/6pfndu4 wBHIpaPDRQuh5//5+khjgVh6Y65hmrZZcVa0A+E2EhpSUtfAHqA9uCMAy7I3qSDZqi2WAyDoVkuVH 468Gg1Uzw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gI8pV-0006CD-J4; Thu, 01 Nov 2018 08:59:53 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8182120296F15; Thu, 1 Nov 2018 09:59:51 +0100 (CET) Date: Thu, 1 Nov 2018 09:59:51 +0100 From: Peter Zijlstra To: Yi Sun Cc: Waiman Long , Juergen Gross , linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, chao.p.peng@intel.com, chao.gao@intel.com, isaku.yamahata@intel.com, michael.h.kelley@microsoft.com, tianyu.lan@microsoft.com, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "mingo@redhat.com" , Will Deacon Subject: Re: [PATCH v1 2/2] x86/hyperv: make HvNotifyLongSpinWait hypercall Message-ID: <20181101085951.GD3159@hirez.programming.kicks-ass.net> References: <20181022171516.GH3117@worktop.programming.kicks-ass.net> <20181023025740.GL11769@yi.y.sun> <20181023085127.GG3109@worktop.c.hoisthospitality.com> <20181023093328.GA15378@yi.y.sun> <20181031015417.GC15378@yi.y.sun> <20181031141030.GB13219@hirez.programming.kicks-ass.net> <20181031171538.GC13219@hirez.programming.kicks-ass.net> <20181101032020.GE15378@yi.y.sun> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181101032020.GE15378@yi.y.sun> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 01, 2018 at 11:20:21AM +0800, Yi Sun wrote: > On 18-10-31 18:15:39, Peter Zijlstra wrote: > > So Yi, are you actually seeing a problem? If so, can you give details? > > Where does the patch come from? I cannot find it through google. What patch!? The one I posted: https://lkml.kernel.org/r/20181031141030.GB13219@hirez.programming.kicks-ass.net I made that up real quick. > Per Waiman's comment, it seems not suitable to call vcpu_is_preempted() > in pv_wait_head_or_lock(). So, we cannot make HvSpinWaitInfo notification > through vcpu_is_preempted() for such case. Based on that, I suggest to > add one more callback function in pv_lock_ops. We're not doing anything until you can show a problem. If it ain't broken, don't fix it etc.. > BTW, which performance test do you suggest? I am trying to test it by > AIM7. Waiman?