<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Another way to look at this is to use VBox's device emulation code for KVM, replacing current QEMU emulation. Either way, lots of work.<BR><BR>--- On <B>Wed, 12/22/10, Sander van Leeuwen <I><sander.x.van.leeuwen@oracle.com></I></B> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Sander van Leeuwen <sander.x.van.leeuwen@oracle.com><BR>Subject: Re: [vbox-dev] KVM & VirtualBox<BR>To: vbox-dev@virtualbox.org<BR>Date: Wednesday, December 22, 2010, 5:33 AM<BR><BR>
<DIV class=plainMail>Michael,<BR><BR>That sounds like a pointless exercise to me. First of all VirtualBox isn't some QEmu extension like KVM<BR>and the entire code is very tightly integrated.  It's not possible without rewriting 75% of the hypervisor.<BR>Be my guest, but I don't know how many man years you've allocated for this task. :-)<BR>I also fail to see what you want to accomplish with that.<BR><BR>(MM)IO is handled in the instruction emulator, which calls the IOM* functions, which end up calling<BR>the registered device handlers. (src/VBox/VMM for IO handling, src/VBox/Devices for the virtual device code)<BR><BR>Sander<BR><BR>On 12/22/2010 8:35 AM, Michael van der Kolff wrote:<BR>> I was thinking of attempting to write a patch to make VirtualBox use<BR>> KVM for its CPU (KVM only implements the CPU, it doesn't implement<BR>> platform - that's someone else's job). So, I read alternately the<BR>> doxygen documentation&  the
 VBox source code (kvm-all.c from qemu<BR>> shows how to handle all of the stuff that KVM can chuck back - simple<BR>> once one sees how...).  Anyway, I was looking to join the bits that do<BR>> MMIO&  IO, and the doxygen documentation&  names, categorisation,<BR>> etc... would seem to imply that IOMMMIO{Read/Write} are responsible<BR>> for that - except it would seem that they aren't called anywhere right<BR>> now.<BR>> <BR>> How exactly is MMIO handled in VirtualBox right now?<BR>> <BR>> Cheers,<BR>> <BR>> Michael<BR>> <BR>> _______________________________________________<BR>> vbox-dev mailing list<BR>> <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev"
 target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR><BR><BR>-- Kind regards / Mit freundlichen Gruessen / Met vriendelijke groet<BR><BR>--<BR>Sander van Leeuwen | Senior Staff Engineer, VirtualBox<BR>Oracle Virtualization<BR><BR>ORACLE Deutschland B.V. & Co. KG | Werkstrasse 24 | 71384 Weinstadt<BR><BR>ORACLE Deutschland B.V. & Co. KG<BR>Hauptverwaltung: Riesstr. 25, D-80992 München<BR>Registergericht: Amtsgericht München, HRA 95603<BR><BR>Komplementärin: ORACLE Deutschland Verwaltung B.V.<BR>Rijnzathe 6, 3454PV De Meern, Niederlande<BR>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<BR>Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven<BR><BR>_______________________________________________<BR>vbox-dev mailing list<BR><A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR><A
 href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></td></tr></table>