[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
Re: [Qemu-devel] how to convert guest virtual address to host virtual address in QEMU?
Wed, 9 Mar 2011 11:27:31 +0000
On Wed, Mar 9, 2011 at 9:34 AM, Gunasekaran Dharman <address@hidden> wrote:
> Regarding calculating host virtual address from guest virtual address, I
> think, QEMU must be doing this somehow.
> I would like to know how QEMU is handling the guest virtual address?
> It will be very much helpful if you can throw some light on this.
Sorry but I've tried to explain twice that this approach is not the
way to go. The hardware does not necessarily know how to translate
any virtual address by itself and QEMU doesn't either, guest
assistance may be required. It's not as simple as handing a (kernel
or userspace?) virtual address to a custom device and having it
perform a memcpy.
If you really want to do a custom hack try adding a custom memcpy
instruction and look at how x86 targets rep; mov or other instances of
memory copy on other architectures are done. You'll need to write a
custom memcpy implementation in the guest to make use of this