Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753113AbZLVLtl (ORCPT ); Tue, 22 Dec 2009 06:49:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752178AbZLVLtj (ORCPT ); Tue, 22 Dec 2009 06:49:39 -0500 Received: from one.firstfloor.org ([213.235.205.2]:56993 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbZLVLtg (ORCPT ); Tue, 22 Dec 2009 06:49:36 -0500 To: Anthony Liguori Cc: Gregory Haskins , Avi Kivity , Ingo Molnar , kvm@vger.kernel.org, Andrew Morton , torvalds@linux-foundation.org, "linux-kernel@vger.kernel.org" , netdev@vger.kernel.org, "alacrityvm-devel@lists.sourceforge.net" Subject: Re: [GIT PULL] AlacrityVM guest drivers for 2.6.33 From: Andi Kleen References: <4B1D4F29.8020309@gmail.com> <20091218215107.GA14946@elte.hu> <4B2F9582.5000002@gmail.com> <4B2F978D.7010602@redhat.com> <4B2F9C85.7070202@gmail.com> <4B2FA42F.3070408@codemonkey.ws> <4B2FA655.6030205@gmail.com> <4B2FAE7B.9030005@codemonkey.ws> <4B2FB3F1.5080808@gmail.com> <4B300EF8.8010602@codemonkey.ws> Date: Tue, 22 Dec 2009 12:49:31 +0100 In-Reply-To: <4B300EF8.8010602@codemonkey.ws> (Anthony Liguori's message of "Mon, 21 Dec 2009 18:12:40 -0600") Message-ID: <87637zdy9g.fsf@basil.nowhere.org> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1775 Lines: 43 Anthony Liguori writes: > > On a modern Nehalem, I would be surprised if an MMIO exit handled in > the kernel was muck more than 2us. The hardware is getting very, very > fast. The trends here are very important to consider when we're > looking at architectures that we potentially are going to support for > a long time. When you talk about trends the trend for IO is also to get faster. An exit will be always more expensive than passing something from another CPU in shared memory. An exit is much more work, with lots of saved context and fundamentally synchronous, even with all the tricks hardware can do. And then there's the in kernel handler too. Shared memory passing from another CPU is a much cheaper operation and more likely to scale with IO rate improvements. The basic problem in this discussion seems to be the usual disconnect between working code (I understand Gregory has working code that demonstrates the performance advances he's claiming) versus unwritten optimizations. Unwritten code tends to always sound nicer, but it remains to be seen if it can deliver what it promises. >From a abstract stand point having efficient paravirtual IO interfaces seem attractive. I also personally don't see a big problem in having another set of virtual drivers -- Linux already has plenty (vmware, xen, virtio, power, s390-vm, ...) and it's not that they would be a particular maintenance burden impacting the kernel core. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/