Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762172AbZDBJDV (ORCPT ); Thu, 2 Apr 2009 05:03:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763748AbZDBJCu (ORCPT ); Thu, 2 Apr 2009 05:02:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44971 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932868AbZDBJCr (ORCPT ); Thu, 2 Apr 2009 05:02:47 -0400 Message-ID: <49D47F11.6070400@redhat.com> Date: Thu, 02 Apr 2009 12:02:09 +0300 From: Avi Kivity User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Herbert Xu CC: ghaskins@novell.com, anthony@codemonkey.ws, andi@firstfloor.org, linux-kernel@vger.kernel.org, agraf@suse.de, pmullaney@novell.com, pmorreale@novell.com, rusty@rustcorp.com.au, netdev@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [RFC PATCH 00/17] virtual-bus References: <20090402085253.GA29932@gondor.apana.org.au> In-Reply-To: <20090402085253.GA29932@gondor.apana.org.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1487 Lines: 39 Herbert Xu wrote: > Avi Kivity wrote: > >> virtio is already non-kvm-specific (lguest uses it) and non-pci-specific >> (s390 uses it). >> > > I think Greg's work shows that putting the backend in the kernel > can dramatically reduce the cost of a single guest->host transaction. > I'm sure the same thing would work for virtio too. > Virtio suffers because we've had no notification of when a packet is actually submitted. With the notification, the only difference should be in the cost of a kernel->user switch, which is nowhere nearly as dramatic. >> If you have a good exit mitigation scheme you can cut exits by a factor >> of 100; so the userspace exit costs are cut by the same factor. If you >> have good copyless networking APIs you can cut the cost of copies to >> zero (well, to the cost of get_user_pages_fast(), but a kernel solution >> needs that too). >> > > Given the choice of having to mitigate or not having the problem > in the first place, guess what I would prefer :) > There is no choice. Exiting from the guest to the kernel to userspace is prohibitively expensive, you can't do that on every packet. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/