On Tue, Mar 8, 2011 at 5:30 PM, Gunasekaran Dharman <guna.s...@gmail.com> wrote: > From guest application, Iam passing some virtual addresses to QEMU through > device I/O operation. Now I want to convert these guest virtual addresses to > host virtual addresses so that I can perform some operation using them. In > QEMU, is there any macro or function available to convert guest virtual > address to host virtual address? > My objective is to perform guest's memcpy operation in host so that it will > be faster.
That's not really possible. On architectures with a software-managed TLB you don't know the layout of the virtual memory structures (because they are defined in software and not standardized). I suggest learning about and optimizing TCG instead of inventing a memcpy device because it can benefit all code and does not require a custom device and guest drivers. Stefan