Linux KVM/arm64 development list
 help / color / mirror / Atom feed
From: hiwu <hiwu@derytech.com.tw>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: ARM KVM guest virtual address to host virtual address Look up
Date: Fri, 15 Jan 2016 23:35:24 +0800	[thread overview]
Message-ID: <569911BC.3090102@derytech.com.tw> (raw)
In-Reply-To: <CAFEAcA_cSpFSZX02PJTCvQV6uB75_SbhBkLb1_2Z3uyy+BhBxA@mail.gmail.com>

Hi Peter:

The guest's load/store instructions, which I want to debug, do not cause 
a guest exception.
ARM KVM only provides the guest' r15 register (pc) value.  To get the 
guest instruction for
emulating in host, "translate guest VA to host VA" is required. How to 
implement
"translate guest VA to host VA" in host ?

Thank you

-Jack


Peter Maydell 於 2016/1/15 下午 08:17 寫道:
> On 15 January 2016 at 11:14, hiwu <hiwu@derytech.com.tw> wrote:
>> I want to trap some ldr,str instruction in guest VM for debug. Therefore, I
>> have to emulate guest ldr,str in host. Without guest VA to host VA, I cannot
>> emulate ldr,str instruction in host.
> That sounds like you want "load/store value from guest VA", not "translate
> guest VA to host VA". Try cpu_ldl_data and friends (though note that
> if you use them to access an invalid address they'll cause a guest
> exception).
>
> thanks
> -- PMM


_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

  reply	other threads:[~2016-01-15 15:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15  9:33 ARM KVM guest virtual address to host virtual address Look up hiwu
2016-01-15 10:02 ` Peter Maydell
2016-01-15 11:14   ` hiwu
2016-01-15 12:17     ` Peter Maydell
2016-01-15 15:35       ` hiwu [this message]
2016-01-15 15:38         ` Peter Maydell

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=569911BC.3090102@derytech.com.tw \
    --to=hiwu@derytech.com.tw \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=peter.maydell@linaro.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