Received: by 10.223.164.202 with SMTP id h10csp44057wrb; Mon, 6 Nov 2017 02:12:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+SwK1xqly1z927YHjHT1/cvgWzKO3/B/I6YvkR0e0HFRMYEd4ddDziIviTHCIN5kH35gUTa X-Received: by 10.99.123.71 with SMTP id k7mr14842834pgn.312.1509963126330; Mon, 06 Nov 2017 02:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509963126; cv=none; d=google.com; s=arc-20160816; b=NeNXS+Uv6wSQ3UJpqxUtkyJ8w1UEe6imy8c1hm5ACUxDpBy9KH75xJOtfq60QhtgGm 2S+zZGc5a0Ny56uCbjhNwRMDgZPgu+68CsEQLccPuoh0CidmIQa2PXQB5aNZZZiM3fkQ twWr3Dqk7SN/OYJhPZl3UdnL9fOJDbTs2fSGpAbXEL7mNy1v+YKajNAqKOSdqxoJeXAQ ujNxNaftrLcAToBDsCuKq2yoL3lJ6y/atIBgkXhQYrRQBdwIAw4ffQsC3GdgZWIsn5By zPeTVBuPD9mv1A4MYZ8Uf8RhyJoAKRqX89F2mOQ5higQa9Sh3ug0jMcgltS1GQTJoqmn 74bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=NmxvIzqlj7PHO37aaBYqzLcFfmEq/toUs3QV+iuCB6E=; b=qZ0RkXRTs9AqBvMEshL5yk+QfAKDPEegWiQyybxZKrRyZ6GLEtTjwDcVbxv7EU5KHx BjYFJBhF4UkK4ALR63dPgH2DIPfn9tGJ9PpFYyQqtNJDDO71KQ9HnTkOhyq59WKthLhS inuqRy8Z+3kShEfpKQlcxHZnfxdS5G73ngyZNkNZsXD4KhURcrsKOujL7SnNlYMxOVEt 0UNdBHZSzrKuHo/WiLXFlLMtjPw1oYXWgyu8047mUw9XR/hOdH0+219+s8FaRA9icAiU qwxvkAx0LYPwTH6WrsHVDFrSPzcckM3VgNrVZ+8dI1QStH7we89W3EX5jhI+o//ngxvh RweA== 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 e3si11226354pgp.779.2017.11.06.02.11.52; Mon, 06 Nov 2017 02:12:06 -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 S1753006AbdKFKKI (ORCPT + 99 others); Mon, 6 Nov 2017 05:10:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36706 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbdKFKKF (ORCPT ); Mon, 6 Nov 2017 05:10:05 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BBCBEC047B6F; Mon, 6 Nov 2017 10:10:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BBCBEC047B6F Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vkuznets@redhat.com Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 772AA6A02A; Mon, 6 Nov 2017 10:10:01 +0000 (UTC) From: Vitaly Kuznetsov To: Wanpeng Li Cc: "the arch\/x86 maintainers" , devel@linuxdriverproject.org, "linux-kernel\@vger.kernel.org" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Steven Rostedt , Jork Loeser , Simon Xiao , Andy Lutomirski , Andy Shevchenko , Paolo Bonzini , kvm Subject: Re: [PATCH v10 0/9] Hyper-V: paravirtualized remote TLB flushing and hypercall improvements References: <20170802160921.21791-1-vkuznets@redhat.com> <87d14vrcou.fsf@vitty.brq.redhat.com> Date: Mon, 06 Nov 2017 11:10:00 +0100 In-Reply-To: (Wanpeng Li's message of "Mon, 6 Nov 2017 17:57:04 +0800") Message-ID: <874lq7ra4n.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 06 Nov 2017 10:10:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wanpeng Li writes: > 2017-11-06 17:14 GMT+08:00 Vitaly Kuznetsov : >> Wanpeng Li writes: >> >>> 2017-08-03 0:09 GMT+08:00 Vitaly Kuznetsov : >>>> Changes since v9: >>>> - Rebase to 4.13-rc3. >>>> - Drop PATCH1 as it was already taken by Greg to char-misc tree. There're no >>>> functional dependencies on this patch so the series can go through a different tree >>>> (and it actually belongs to x86 if I got Ingo's comment right). >>>> - Add in missing void return type in PATCH1 [Colin King, Ingo Molnar, Greg KH] >>>> - A few minor fixes in what is now PATCH7: add pr_fmt, tiny style fix in >>>> hyperv_flush_tlb_others() [Andy Shevchenko] >>>> - Fix "error: implicit declaration of function 'virt_to_phys'" in PATCH2 >>>> reported by kbuild test robot (#include ) >>>> - Add Steven's 'Reviewed-by:' to PATCH9. >>>> >>>> Original description: >>>> >>>> Hyper-V supports hypercalls for doing local and remote TLB flushing and >>>> gives its guests hints when using hypercall is preferred. While doing >>>> hypercalls for local TLB flushes is probably not practical (and is not >>>> being suggested by modern Hyper-V versions) remote TLB flush with a >>>> hypercall brings significant improvement. >>>> >>>> To test the series I wrote a special 'TLB trasher': on a 16 vCPU guest I >>>> was creating 32 threads which were doing 100000 mmap/munmaps each on some >>>> big file. Here are the results: >>>> >>>> Before: >>>> # time ./pthread_mmap ./randfile >>>> real 3m33.118s >>>> user 0m3.698s >>>> sys 3m16.624s >>>> >>>> After: >>>> # time ./pthread_mmap ./randfile >>>> real 2m19.920s >>>> user 0m2.662s >>>> sys 2m9.948s >>>> >>>> This series brings a number of small improvements along the way: fast >>>> hypercall implementation and using it for event signaling, rep hypercalls >>>> implementation, hyperv tracing subsystem (which only traces the newly added >>>> remote TLB flush for now). >>>> >>> >>> Hi Vitaly, >>> >>> Could you attach your benchmark? I'm interested in to try the >>> implementation in paravirt kvm. >>> >> >> Oh, this would be cool) I briefly discussed the idea with Radim (one of >> KVM maintainers) during the last KVM Forum and he wasn't opposed to the >> idea. Need to talk to Paolo too. Good thing is that we have everything > > I talk with Paolo today and he points this feature to me, so I believe > he likes it. :) In addition, > https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs > I search Hypervisor Top Level Functional Specification v5.0b.pdf > document but didn't find a section introduce the Hyper-V: > paravirtualized remote TLB flushing and hypercall stuff, could you > point out? > It's there, search for HvFlushVirtualAddressSpace/HvFlushVirtualAddressSpaceEx and HvFlushVirtualAddressList/HvFlushVirtualAddressListEx. -- Vitaly From 1583310285292665571@xxx Mon Nov 06 09:59:13 +0000 2017 X-GM-THRID: 1574636603958149385 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread