<p>That's sort of what I thought of it as. I was sort of wondering though why it seemed that IOMMMIORead wasn't called anywhere </p>
<div class="gmail_quote">On 23/12/2010 3:41 AM, "Huihong Luo" <<a href="mailto:huisinro@yahoo.com">huisinro@yahoo.com</a>> wrote:<br type="attribution">> 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 Wed, 12/22/10, Sander van Leeuwen <<a href="mailto:sander.x.van.leeuwen@oracle.com">sander.x.van.leeuwen@oracle.com</a>> wrote:<br>> <br>> <br>> From: Sander van Leeuwen <<a href="mailto:sander.x.van.leeuwen@oracle.com">sander.x.van.leeuwen@oracle.com</a>><br>
> Subject: Re: [vbox-dev] KVM & VirtualBox<br>> To: <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>> Date: Wednesday, December 22, 2010, 5:33 AM<br>> <br>> <br>> 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="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
>> <a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">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="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>> <a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
</div>