From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single project Date: Mon, 22 Mar 2010 20:55:14 +0200 Message-ID: <4BA7BD12.20008@redhat.com> References: <20100318172805.GB26067@elte.hu> <20100322111040.GL13108@8bytes.org> <20100322122228.GH3483@elte.hu> <20100322134633.GD1940@8bytes.org> <20100322163215.GC18796@elte.hu> <84144f021003221027t1a3e7d6ft64612654c5e50da@mail.gmail.com> <4BA7A9AF.3010806@redhat.com> <84144f021003221052lb693f15ped0b432c34cdd8dc@mail.gmail.com> <4BA7B119.1070800@redhat.com> <84144f021003221110p79db476fpae25f6997b61b0b9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "Frank Ch. Eigler" , Ingo Molnar , Joerg Roedel , Anthony Liguori , "Zhang, Yanmin" , Peter Zijlstra , Sheng Yang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Marcelo Tosatti , Jes Sorensen , Gleb Natapov , Zachary Amsden , ziteng.huang@intel.com, Arnaldo Carvalho de Melo , Fr?d?ric Weisbecker To: Pekka Enberg Return-path: In-Reply-To: <84144f021003221110p79db476fpae25f6997b61b0b9@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 03/22/2010 08:10 PM, Pekka Enberg wrote: > On Mon, Mar 22, 2010 at 8:04 PM, Avi Kivity wrote: > >>> That said, pulling 400 KLOC of code into the kernel sounds really >>> excessive. Would we need all that if we just do native virtualization >>> and no actual emulation? >>> >> What is native virtualization and no actual emulation? >> > What I meant with "actual emulation" was running architecture A code > on architecture B what was qemu's traditional use case. So the > question was how much of the 400 KLOC do we need for just KVM on all > the architectures that it supports? > qemu is 620 KLOC. Without cpu emulation that drops to ~480 KLOC. Much of that is device emulation that is not supported by kvm now (like ARM) but some might be needed again in the future (like ARM). x86-only is perhaps 300 KLOC, but kvm is not x86 only. And that is with a rudimentary GUI. GUIs are heavy. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.