qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] how to convert guest virtual address to host virtual ad


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] how to convert guest virtual address to host virtual address in QEMU?
Date: Tue, 8 Mar 2011 19:00:27 +0000

On Tue, Mar 8, 2011 at 5:30 PM, Gunasekaran Dharman <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]