Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3364179ybi; Mon, 10 Jun 2019 09:01:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3OzGUOGJoZP4Tt/US5Uo85pAzkHRoxE3qfacuU1LSPFj/MxrTqSMODyfI9dkiR9qmax6v X-Received: by 2002:aa7:8394:: with SMTP id u20mr63845051pfm.252.1560182478762; Mon, 10 Jun 2019 09:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560182478; cv=none; d=google.com; s=arc-20160816; b=VcFtQX23pajDrwE7lQfbMmnogF4a3md4RXhB+KWukKxNOOaY7Uk6x93V9sw4tyVkz5 XRNuAak8g0ON1ca+9Yo5pDVyCTqYNYIsRHfTzB1Qk1+aUTKtX4c3NkV6LR2nsflK1l9L ehAng5XU5T2dBVumLWWy/SmoStB0ohgiYMui+b7AwevGxcjtui6ygL5WxGd7/3um1HPQ XOonRM48O4qSe56/Y5PaEzLmlAphEG08SPCQSdjjS7cVaxaUUlsD4moaUMYIU7ktBSAd UXPAiB041ovbfTzwVT6J3r8C2TtIOhR6S13OF/3NDnjmQsiGeXdTVf76/DfnMxuVorbQ OCEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Ji0XG/IxrQicjffh86c2veRe5EkMN6pgxlNM7XJbvQk=; b=DsJ39lR8hoJdOGjtuXOUlEAKX1tBsT5YQHXi9xDzdo3xRih6GEfHHRwH1hY6mOOFQI zfvdbbPwRZh9+60l79mjn/nqMl/XsPnTnJuoRcltHrt+a/RlZLx/EE0kJIBpEZUjwr8J +XLDLYZxyEMM8Fgjy0r5GSzcrnyklVqrMb3/5662mRwzbhakY+xWy2v1rVna3CnHzWQF CeoYjNMd5bg4RwQ+trffNm5b1g+wy13fALL/jVCjUcix1YV0kEu2P0jLKTAra3FpwbCm jLgOUfc8V0ul9znTj3v+X+Xu+PwVtdIkL0tJDuyJch9J2cpDcsGnGQrZzXJRdLOw0a/A 3MRA== 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 x5si9740974pjv.62.2019.06.10.09.01.01; Mon, 10 Jun 2019 09:01:18 -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 S2403935AbfFJOeX (ORCPT + 99 others); Mon, 10 Jun 2019 10:34:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31491 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389851AbfFJOeX (ORCPT ); Mon, 10 Jun 2019 10:34:23 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5ABA590C87; Mon, 10 Jun 2019 14:34:23 +0000 (UTC) Received: from flask (unknown [10.43.2.83]) by smtp.corp.redhat.com (Postfix) with SMTP id 5DBDA19C59; Mon, 10 Jun 2019 14:34:21 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Mon, 10 Jun 2019 16:34:20 +0200 Date: Mon, 10 Jun 2019 16:34:20 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Wanpeng Li Cc: 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: <20190610143420.GA6594@flask> References: <1559178307-6835-1-git-send-email-wanpengli@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559178307-6835-1-git-send-email-wanpengli@tencent.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 10 Jun 2019 14:34:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) Thanks.