From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Muhui Jiang <jiangmuhui@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: Mapping between Host virtual address and guest physical address
Date: Fri, 14 Feb 2020 11:31:34 +0000 [thread overview]
Message-ID: <20200214113134.GA3329@work-vm> (raw)
In-Reply-To: <CAF_eCeobcey65QJw10J85znetzNWSpmzo2ds=QT+0maNeK9acg@mail.gmail.com>
* Muhui Jiang (jiangmuhui@gmail.com) wrote:
> Dear All
>
> I am recently using qemu-system-arm to boot a linux uImage.
>
> I would like to do some dynamic instrumentation on the uncompressed kernel.
> It seems that I need to focus on two key points.
>
> Firstly, I need to know when the kernel is uncompressed, which means the
> compression process is finished. By analyzing the vmlinux.elf and the
> trace I can figure it out.
>
> Secondly, I need to know where the uncompressed is, which means where the
> uncompressed linux kernel (Before translated into tcg) stores in the
> virtual address of qemu. Does anyone have ideas? Many Thanks
There's are some existing HMP monitor commands for this type of
debugging:
gpa2hpa addr -- print the host physical address corresponding to a guest physical address
gpa2hva addr -- print the host virtual address corresponding to a guest physical address
gva2gpa addr -- print the guest physical address corresponding to a guest virtual address
so I think you're saying you want gpa2hva
Dave
> Regards
> Muhui
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
prev parent reply other threads:[~2020-02-14 11:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-13 17:35 Mapping between Host virtual address and guest physical address Muhui Jiang
2020-02-14 11:31 ` Dr. David Alan Gilbert [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=20200214113134.GA3329@work-vm \
--to=dgilbert@redhat.com \
--cc=jiangmuhui@gmail.com \
--cc=qemu-devel@nongnu.org \
/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).