From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwUfw-0000vv-3W for qemu-devel@nongnu.org; Thu, 25 Aug 2011 03:48:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwUfu-0000uD-Ur for qemu-devel@nongnu.org; Thu, 25 Aug 2011 03:48:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwUfu-0000u1-9x for qemu-devel@nongnu.org; Thu, 25 Aug 2011 03:48:30 -0400 Date: Thu, 25 Aug 2011 08:48:25 +0100 From: "Richard W.M. Jones" Message-ID: <20110825074825.GA1106@amd.home.annexia.org> References: <1314249688.3459.23.camel@lappy> <4E55DE90.2020503@redhat.com> <20110825073212.GD3905@amd.home.annexia.org> <1314258034.3692.7.camel@lappy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1314258034.3692.7.camel@lappy> Subject: Re: [Qemu-devel] Guest kernel device compatability auto-detection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sasha Levin Cc: Avi Kivity , kvm , qemu-devel On Thu, Aug 25, 2011 at 10:40:34AM +0300, Sasha Levin wrote: > From what I gathered libguestfs only provides access to the guests' > image. Correct. > Which part is doing the IKCONFIG or System.map probing? Or is it done in > a different way? You'll have to see what Matt's doing in the virt-v2v code for the details, but in general we have full access to: - grub.conf (to determine which kernel will boot) - the kernel image - the corresponding System.map and config - the modules directory - the Xorg config - boot.ini or BCD (to determine which NT kernel will boot) - the Windows Registry - the list of packages installed (to see if VMware-tools or some other guest agent is installed) So working out what drivers are available is just a tedious matter of iterating across each of these places in the filesystem. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top