Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3834092ybi; Mon, 10 Jun 2019 18:11:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYcyL6NxhpsTY2BZ+eD7TcTRcxQZN2+N71IhaghgG3hqmSyRmVGMKOIoPVi6HoRwTPeu/n X-Received: by 2002:a63:5457:: with SMTP id e23mr18622967pgm.307.1560215494670; Mon, 10 Jun 2019 18:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560215494; cv=none; d=google.com; s=arc-20160816; b=kY7pJs5VP9LSQUMGMgCR21OkQU1bHMbEXOT1FiJ4jDZtszv0tmxJHaZ/iTpsELflBU yTb2WLeSFbDYFLwL/zgi527IkMIlcLID+SdGHOBRaQBrXVv0ql1b6x6uVPbBAgn+PdvF Qh0t+5Boz1O//IYOMDJ/F4vAA20J/XP8OS3T2y2TaH561Z6mTunjtYGqWEUIECZPnywS oik5Tn9v3sP+VNbgB1aHbVPZv+RvCyc+Bgefc8+G3S8O0pUS0kDHteaIpTtFMuopN7gT SCSw12SGHmpxlB4J05qxm7ym8MtZSQCNoCSU/OXkLyAxGYfozNVliI+CCW3mAz8FhEtC w0xg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=82a129F0JWEuZg5C4SnYgh0smcOSsXj1NSQDrpguFHI=; b=TzntQclVDie3kyTGQFdoGqolfadLaq7LVegdJa1/uk+tWyVMbgwdraTLCFkOY6nmIN wETwtdDPxqovT2/4iCvrHln8ZhHAaC5fBqNUSYHpJrkvRqPO+Q749Wp1h1JLYwl8NUKD GKdcb1rD47o1XTSe2ZST2maPGuzpqJQY3FVg2J5B5tTy2rpSAVwoAe2HpOxf+w9C805S RAyrqxwcTGpRsITQ327r4fpyQ7z3nz5SNdi72pWCdiaFq/TeYXUv7DPg4Oy3J5n66vzn /DW7RM0G9yUJ+d7Z8aWEPQND+kBclakpCyEWyx6kSMSVy2+kM+p41e/ag+1EBgXM9bOe k6xA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si880177pjr.102.2019.06.10.18.11.20; Mon, 10 Jun 2019 18:11:34 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390158AbfFKBLB (ORCPT + 99 others); Mon, 10 Jun 2019 21:11:01 -0400 Received: from mga06.intel.com ([134.134.136.31]:45314 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388845AbfFKBLB (ORCPT ); Mon, 10 Jun 2019 21:11:01 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jun 2019 18:11:00 -0700 X-ExtLoop1: 1 Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.36]) by orsmga004.jf.intel.com with ESMTP; 10 Jun 2019 18:11:00 -0700 Date: Mon, 10 Jun 2019 18:11:00 -0700 From: Sean Christopherson To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: Wanpeng Li , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH v3 0/3] KVM: Yield to IPI target if necessary Message-ID: <20190611011100.GB24835@linux.intel.com> References: <1559178307-6835-1-git-send-email-wanpengli@tencent.com> <20190610143420.GA6594@flask> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190610143420.GA6594@flask> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 10, 2019 at 04:34:20PM +0200, Radim Krčmář wrote: > 2019-05-30 09:05+0800, Wanpeng Li: > > The idea is from Xen, when sending a call-function IPI-many to vCPUs, > > yield if any of the IPI target vCPUs was preempted. 17% performance > > increasement of ebizzy benchmark can be observed in an over-subscribe > > environment. (w/ kvm-pv-tlb disabled, testing TLB flush call-function > > IPI-many since call-function is not easy to be trigged by userspace > > workload). > > Have you checked if we could gain performance by having the yield as an > extension to our PV IPI call? > > It would allow us to skip the VM entry/exit overhead on the caller. > (The benefit of that might be negligible and it also poses a > complication when splitting the target mask into several PV IPI > hypercalls.) Tangetially related to splitting PV IPI hypercalls, are there any major hurdles to supporting shorthand? Not having to generate the mask for ->send_IPI_allbutself and ->kvm_send_ipi_all seems like an easy to way shave cycles for affected flows.