Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1kko-0002Lm-II for qemu-devel@nongnu.org; Thu, 29 May 2008 12:13:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1kkn-0002La-TG for qemu-devel@nongnu.org; Thu, 29 May 2008 12:13:26 -0400 Received: from [199.232.76.173] (port=46955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1kkn-0002LX-Oe for qemu-devel@nongnu.org; Thu, 29 May 2008 12:13:25 -0400 Received: from mail2.shareable.org ([80.68.89.115]:51020) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1kkn-0002LT-Is for qemu-devel@nongnu.org; Thu, 29 May 2008 12:13:25 -0400 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1K1kkk-0005o8-Kd for qemu-devel@nongnu.org; Thu, 29 May 2008 17:13:22 +0100 Date: Thu, 29 May 2008 17:13:22 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: KQEMU code organization Message-ID: <20080529161322.GB21610@shareable.org> References: <483C3D55.2000508@siemens.com> <483C8705.307@bellard.org> <483D81FA.5070202@siemens.com> <483D8A2E.5070907@bellard.org> <483D8E9A.40509@siemens.com> <483EA1AD.1010901@bellard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <483EA1AD.1010901@bellard.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fabrice Bellard wrote: > Regarding the kqemu evolution, I am doing small API changes to make it > more independent from the QEMU internal data structures and to allow > usage from a 32 bit user QEMU application with a 64 bit host. There is > also another small change I did some time ago but never published to > allow paravirtualization of the Linux kernel. Do you see integrating it with KVM at some point, developing a merged API which supports both hardware-assisted (kvm) or software-assisted (kqemu) depending on the host's CPU? Right now, although it's come from a different background, from a user's perspective kvm seems to do essentially the same as kqemu, except kvm is faster and kqemu runs on more x86 CPUs. I.e. kvm has two sub-modules for Intel VT and AMD SVM extensions (I think that's their names). It would be great if it hard a third KQEMU sub-module (which would of course be the most complicated ;-) to make running vMs even more independent of the host CPU. That would require adding kqemu's software translation/scanning callbacks to kvm's API, or vice versa. But it would have the bonus of adding kvm's in-kernel fast APIC emulation to kqemu, possibly the paravirt and virtio stuff too, and further unifying kvm-using and kqemu-using systems, and combining developer attention from these different projects, which all seem to be in the same direction. As someone interested in emulator development I understand the different histories of kqemu and kvm. As a user, however, it seems logical at this point to begin seeing them as different ways of achieving the same thing, depending on the host CPU capabilities, and those things which should not depend on the host CPU - such as virtio, APIC emulation etc. - ought to share the same kernel code. -- Jamie