On Wed, Aug 13, 2008 at 11:11 AM, Anthony Liguori <[EMAIL PROTECTED]> wrote: > Glauber Costa wrote: >> >> Turn the explicit calls to kvm_cpu_register_memoy_area() >> an empty function. Provide a __kvm_cpu_register_memory_area() >> that is called from within cpu_register_memory_area(). >> To avoid registering mmio regions to the hypervisor, since we depend on >> them faulting, we keep track of what regions are mmio regions too. >> >> This is to be bisection friendly. Direct calls are to be removed >> in a later commit. >> >> diff --git a/qemu/exec.c b/qemu/exec.c >> index 7a68062..14c3852 100644 >> --- a/qemu/exec.c >> +++ b/qemu/exec.c >> @@ -2196,6 +2196,9 @@ void cpu_register_physical_memory(target_phys_addr_t >> start_addr, >> kqemu_set_phys_mem(start_addr, size, phys_offset); >> } >> #endif >> + >> + __kvm_cpu_register_physical_memory(start_addr, size, phys_offset); >> >> > > This is a great place to add a callback of some sort (like QEMUAccel). Then > it can be shared by both kqemu and kvm.
The current QEMUAccel patchset already has a callback for this exactly here. If we set up on this, I'll rebase QEMUAccel to include a kvm callback. > > Regards, > > Anthony Liguori > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act." -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html