Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4812886ybi; Tue, 28 May 2019 02:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxs/nJi8jyBCAGurTL/hgCJLplpmnKpvHG7wzo9XVXRgl8PLDwnVk0qDCghv3DNRxXjMpd X-Received: by 2002:a17:90a:b885:: with SMTP id o5mr4592289pjr.52.1559037573179; Tue, 28 May 2019 02:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559037573; cv=none; d=google.com; s=arc-20160816; b=cvJDxFjbi5mC9fKa+Dvq0k/+Z1U0pG8IzvrVILCKgcp3abTg/VK2U4WUPq8Jqbm0Y1 tMySg0RAc1AuSKBChgQrdc07tBPtvlEUMZDpRhd9pPnAYMh0J4aYGU+2XqMIjKqGVxmT YZ9ejh28eJVqA2YGeCodANjUa+iZPb1UtiPsWAouwYlUUh4xFn7WUwCN+e6HhVXfZEjp 4bB8yCWZzD5bkhRUX29P01Rq2GY8qkK1SnWYEVByhKI4Ci16a51pNECHN1PH41Gzb+5B SbmLHfRvzHdx0bFm851IpDqVrjLfB7vOa2BINMdY1WK6Mjc5bEInSAIhJL/iQaoOj+P5 p/iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZxUx9/0XpsNkuHkZIZc8kE57BDMIB0rWqNkkuQgzAg0=; b=ZFae62RQ90Qpw6I7yjbBgjw60McTmbOY/bbqv1xVUKuU+Ahhcztg4sjjniEVZZm1A3 k5Gnmasghlr8s0tCnk2iur1XXKRmz07Z64RzeyX4Ipt9tVD1HiKLNKk8hhmhi/0deN9E 7Fea19nEkbspOtJpdCv+m86aYMma6YLQOfhbnlFlZHFMn6cSje59Kfznuj19AbvPUwOP J0RlPosPVqmoEcYdgDpcE2amgiFLgmHNBXheUIiO+QCrQO+Rs4VA4oJpBx8q6vq+qwpI efNr9zfnFCzNlWxme7BihKnWt+Hn9lZKp2/YzVoG/IT0AMCRTXbN+yqkS2VS8++AwWlb e3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="IYgKoX/x"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si21134847pgd.370.2019.05.28.02.59.16; Tue, 28 May 2019 02:59:33 -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=pass header.i=@gmail.com header.s=20161025 header.b="IYgKoX/x"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbfE1J5y (ORCPT + 99 others); Tue, 28 May 2019 05:57:54 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:35526 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbfE1J5x (ORCPT ); Tue, 28 May 2019 05:57:53 -0400 Received: by mail-oi1-f194.google.com with SMTP id a132so13789981oib.2; Tue, 28 May 2019 02:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZxUx9/0XpsNkuHkZIZc8kE57BDMIB0rWqNkkuQgzAg0=; b=IYgKoX/xMOL0sUMR9casKcbEw510z1iSIJ2M604fa0u+2PkjidFvyzr1wgsQCDta2j InALDsn/ZHKxkpi7G5zWdrd5xgrX2dbuQCdur6fzJKHkmyUmB6HhMxcF7ZKHyZzVnlRk OSQRBbeeYG/y8hqK8yztSrFgMPLP99HyMpd4xzA8n70E3k3d/PYwyu10qwqtEOgg//Yr xPdd4nudpksd1qmAd9OEUo7I1919bpPfKHls5pwnA6ZAl82WLZzcJTtoQi5jJ36ChfvK au4HoT9zkx6O8LBhGeYKrYwAgUTjK7GEgQ1ZEGFWnuhxF3EV5He5k7nesW0gy7WN0F+I 5RNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZxUx9/0XpsNkuHkZIZc8kE57BDMIB0rWqNkkuQgzAg0=; b=oBgwi/56kOJYR7bwLuBlUFQwJvCEd+1vL41oUTHYmMe/jpr9a7TEVjJSU5pHLvc2Mo e7VWnL4Gv1vJx3pv3QaYbzPc+1o0AnLfj557K2LxYwaJFCSYhYDNl2tKI7QS71piT3bi TNySx3Bs6/3RYURccttN73QKX9FwWq0U/a+A3tw8/df0Y5GHZZ/98DLIT+/DcfAWMGOi 5mcOkqsoJRGjK9s2ToBmTZtQKFJb6tCkIkwMBiH/n8XFnfw5SSK8rQwxkJhjH0+NDDHU lscgnYvWAkEnrdfe+5x9tYONJT/NGO75DZwyPFH4RyZCRNTZgUvu9pneZhTmEYNDeIgk axkw== X-Gm-Message-State: APjAAAVb4jm8c0biN6U4B8jBdVu0p2e21xudALU8q4/DmQ0GwU4MQkdE e/1bQYR0/JY6lb7jKRD2W9408d4JkTs85BpT06I= X-Received: by 2002:aca:b7c1:: with SMTP id h184mr2165646oif.5.1559037473152; Tue, 28 May 2019 02:57:53 -0700 (PDT) MIME-Version: 1.0 References: <1559004795-19927-1-git-send-email-wanpengli@tencent.com> <1559004795-19927-3-git-send-email-wanpengli@tencent.com> <9f3ff1f4-8173-3037-0a3f-a6036076bca5@de.ibm.com> In-Reply-To: <9f3ff1f4-8173-3037-0a3f-a6036076bca5@de.ibm.com> From: Wanpeng Li Date: Tue, 28 May 2019 17:57:46 +0800 Message-ID: Subject: Re: [PATCH v2 2/3] KVM: X86: Implement PV sched yield hypercall To: Christian Borntraeger Cc: LKML , kvm , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 May 2019 at 17:12, Christian Borntraeger wrote: > > On 28.05.19 02:53, Wanpeng Li wrote: > > From: Wanpeng Li > > > > The target vCPUs are in runnable state after vcpu_kick and suitable > > as a yield target. This patch implements the sched yield hypercall. > > > > 17% performace increase 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). > > > > Cc: Paolo Bonzini > > Cc: Radim Kr=C4=8Dm=C3=A1=C5=99 > > Signed-off-by: Wanpeng Li > > FWIW, we do have a similar interface in s390. > > See arch/s390/kvm/diag.c __diag_time_slice_end_directed for our implemen= tation. Good to know this. :) Regards, Wanpeng Li