From: Gunasekaran Dharman <guna.spam@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] how to convert guest virtual address to host virtual address in QEMU?
Date: Thu, 10 Mar 2011 12:09:56 +0530 [thread overview]
Message-ID: <AANLkTinaR_LoFDBt38VRDs1d8UAv5UgoUp0B6EUOjC8C@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinbLN=SLYdGOJMwW1n_9gZ=aQCrtzC+byGfi=0N@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
Hi Stefan
Thanks for your valuable suggestion.
I will try the custom memcpy instruction. I have a question regarding
virtual machine's CPU frequency.
Compared to real processor how QEMU is emulating the processor speed?
Can we configure the virtual machine's CPU frequency? If yes, what are the
limitations and impact
of changing the CPU frequency.
Regards
Guna
On Wed, Mar 9, 2011 at 4:57 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Mar 9, 2011 at 9:34 AM, Gunasekaran Dharman <guna.spam@gmail.com>
> 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
> function.
>
> Stefan
>
[-- Attachment #2: Type: text/html, Size: 2009 bytes --]
prev parent reply other threads:[~2011-03-10 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 17:30 [Qemu-devel] how to convert guest virtual address to host virtual address in QEMU? Gunasekaran Dharman
2011-03-08 19:00 ` Stefan Hajnoczi
2011-03-09 9:34 ` Gunasekaran Dharman
2011-03-09 11:27 ` Stefan Hajnoczi
2011-03-10 6:39 ` Gunasekaran Dharman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinaR_LoFDBt38VRDs1d8UAv5UgoUp0B6EUOjC8C@mail.gmail.com \
--to=guna.spam@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).