Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2035759imm; Sat, 4 Aug 2018 17:26:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpec1P+6Fua6C//pnF3cAioiWo+rvrW2vJ8rnbiZSCXRkzMWxT9zIxEIz4K3v0YjFAvkXAO6 X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr9388756pge.47.1533428797877; Sat, 04 Aug 2018 17:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533428797; cv=none; d=google.com; s=arc-20160816; b=zcHTSGWTqIRz3ZBw1PuEYlb1htCCiFz/DSBak93ItV0PeBsQMuLIW1tj6xidsNFE4H yNUgmc1cxoLQOPLYAv4WowlQBKq3hkpQrPMvLLHMja9HUdXKlX7R2t9xfsmDVn19P6Cp D4atp6OD4t92piTiC3tR7Fvcb1yJXGVbCJTjlvCO8B+DGpnT68k+ZRJW1LoSmU8InsKV EuSVJExpJoJ6+kRGA06OBjV7nL5P0nNCOAljM0ulWMNtNa6+v4M/DGfzcMc29adqlB7s 9/usC+V0m7cybE9pD7D9Ao5oat3ZBVq/4wQTbu0325ij22D61LHtql5uPW9IsAlK5AI9 npSw== 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 :arc-authentication-results; bh=Ekn82AOLR/0lLe8Y2QTJxQpLpWhXObFqGmawkzRE6YM=; b=FmqzzOrWI8tV/6fbfMmOXyU0TbILKZtkwuzDowvIZ587V9sBUy5SV4PB5iFld/Kx5E GM4+2xqRksLgpM5UTnme6TizJNDmOlzM8Gdurfo4xuVxwYvkgUuuM0LRdjR4Poi2TrhO 0PLvIMWiOpBi2UOALgjggRO1sbkkpYETYbV7gtheAB7w1JnD5H3wB7fexnb2hpBln7SP zD2YtE+u9uBv86Tj8fikEaq81dxflV6WMfx7tdbfoIu5nQaBMxMqrIxHU54WOxYOgL7J Q1nNh3tb5CRc1gWvE7Z5GoCuIWDL9NMCghXoGd6rdlGkUJOpE52Df5B98li/QjRvUJ6w /mJg== 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 s18-v6si461037pfd.231.2018.08.04.17.26.23; Sat, 04 Aug 2018 17:26:37 -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 S1730107AbeHEC1D (ORCPT + 99 others); Sat, 4 Aug 2018 22:27:03 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33080 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727350AbeHEC1D (ORCPT ); Sat, 4 Aug 2018 22:27:03 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A03840203F2; Sun, 5 Aug 2018 00:24:33 +0000 (UTC) Received: from redhat.com (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by smtp.corp.redhat.com (Postfix) with SMTP id 2FCE210F1C0B; Sun, 5 Aug 2018 00:24:29 +0000 (UTC) Date: Sun, 5 Aug 2018 03:24:28 +0300 From: "Michael S. Tsirkin" To: Benjamin Herrenschmidt Cc: Jason Wang , Anshuman Khandual , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, aik@ozlabs.ru, robh@kernel.org, joe@perches.com, elfring@users.sourceforge.net, david@gibson.dropbear.id.au, mpe@ellerman.id.au, hch@infradead.org, linuxram@us.ibm.com, haren@linux.vnet.ibm.com, paulus@samba.org, srikar@linux.vnet.ibm.com Subject: Re: [RFC 0/4] Virtio uses DMA API for all devices Message-ID: <20180805032355-mutt-send-email-mst@kernel.org> References: <20180720035941.6844-1-khandual@linux.vnet.ibm.com> <20180802235332-mutt-send-email-mst@kernel.org> <20180803220812-mutt-send-email-mst@kernel.org> <01c74680c4b3aa25d9b4375a9ab5e10046b7c71b.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c74680c4b3aa25d9b4375a9ab5e10046b7c71b.camel@kernel.crashing.org> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 05 Aug 2018 00:24:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 05 Aug 2018 00:24:33 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 03, 2018 at 08:21:26PM -0500, Benjamin Herrenschmidt wrote: > On Fri, 2018-08-03 at 22:08 +0300, Michael S. Tsirkin wrote: > > > > > Please go through these patches and review whether this approach broadly > > > > > makes sense. I will appreciate suggestions, inputs, comments regarding > > > > > the patches or the approach in general. Thank you. > > > > > > > > Jason did some work on profiling this. Unfortunately he reports > > > > about 4% extra overhead from this switch on x86 with no vIOMMU. > > > > > > The test is rather simple, just run pktgen (pktgen_sample01_simple.sh) in > > > guest and measure PPS on tap on host. > > > > > > Thanks > > > > Could you supply host configuration involved please? > > I wonder how much of that could be caused by Spectre mitigations > blowing up indirect function calls... > > Cheers, > Ben. I won't be surprised. If yes I suggested a way to mitigate the overhead. -- MSR