Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1142242imm; Fri, 3 Aug 2018 19:41:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdmvTFt4R4g6Z/rNquBUCgwsCrZfgJiL7p1PkSpNMhogobJ66CCrqP8SAn8zZFlasoTzoT2 X-Received: by 2002:a63:c742:: with SMTP id v2-v6mr5964839pgg.331.1533350519682; Fri, 03 Aug 2018 19:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533350519; cv=none; d=google.com; s=arc-20160816; b=RDtFrTI8IoS5KLkoRJu+81EUrGcVGYRv4b729Kn0rU1PPyk6vAgtj06r/MjZfS3a/P HhJBKxkr4HhFlUt34uLutNnhHqYLbo8HSUImYN435JMmL0yYidlZVWccYUf9n+nOLCSj dyWFWfhpVyleA8qWzE831gKTdOIFbHfHviJSoeJrrwT2FQROU2eWASy8cWLM8/zrQ30Q t/zb6fv3g+c9aeMol7xPsye8fYwLNaUuJVtSPvyhvmXTuFM9gUNskhJkamPQP9RNv2ql prZ7p43GhPISmm6CD6ZKnDF7V2dDEGsClPjGinLqd0Z3HCewnlGIWxeuksaPg8c7gKGC 4DWA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=6sehD8RnGRCtg6ZUXKHViyqxtwI7pwVIxuX/hkNGFE8=; b=Ex7jEhXBojZTIGx5P7b/JxouFPIxfCbdSz1yVW9fKTZgB53mj67q400LGI1HJxtmcX o/Dx1z614K4x3yYuXp5D9xImmAYQE6d3mBpCIcK+Sflws/d9J1fApYDR36+Mkh236K1X 9jQRZWF/BVb0Qlz+uPKqqQcFBjgOImVEu76pSUW4lQSkqx5iNNjnWFMWXSXVddg5hBjm l1wNBCDjRvxc0sk7tevd93dRHAwIo0cDqcP3Uun/T719efhn2ODKgQ4Lzx7hqka4rNop nCpuCttW3hxOmIXT4ZjBfcNnaWPLRBRj86qdoBfYpkwIojtsbeeS2bgUFboF12+WhTmj +CPw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si5377592plc.173.2018.08.03.19.41.43; Fri, 03 Aug 2018 19:41:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbeHDEjs (ORCPT + 99 others); Sat, 4 Aug 2018 00:39:48 -0400 Received: from gate.crashing.org ([63.228.1.57]:33782 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbeHDEjs (ORCPT ); Sat, 4 Aug 2018 00:39:48 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w741LQMO023472; Fri, 3 Aug 2018 20:21:27 -0500 Message-ID: <01c74680c4b3aa25d9b4375a9ab5e10046b7c71b.camel@kernel.crashing.org> Subject: Re: [RFC 0/4] Virtio uses DMA API for all devices From: Benjamin Herrenschmidt To: "Michael S. Tsirkin" , Jason Wang Cc: 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 Date: Fri, 03 Aug 2018 20:21:26 -0500 In-Reply-To: <20180803220812-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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.4 (3.28.4-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.