public inbox for kvmarm@lists.cs.columbia.edu
 help / color / mirror / Atom feed
From: Christoffer Dall <christoffer.dall@linaro.org>
To: harry <tiancaixiaoyu90@126.com>
Cc: kvmarm@lists.cs.columbia.edu
Subject: Re: KVM/ARM: How to read the value of some physical address in HYP mode
Date: Wed, 19 Aug 2015 15:35:01 -0700	[thread overview]
Message-ID: <20150819223501.GA16002@lvm> (raw)
In-Reply-To: <259c0e14.2f0f.14f3961e161.Coremail.tiancaixiaoyu90@126.com>

On Mon, Aug 17, 2015 at 09:59:20AM +0800, harry wrote:
> Hi, 
> 
> 
> I want to read the value of some physical address in HYP mode. But maybe there isn't any interface to achieve this. I hope to get some ideas to achieve this.
> 

If I understand your question correctly, you simply have to map the
physical address into hyp mode's virtual address space and read from
that address.

-Christoffer

> 
> And now I have a simple idea, but I don't know if it is possible. When the HYP mode is init, we create a mapping from one special virtual address to some physical address. And map the va to HYP mode. When we want to read the value of some PA, we modify the page table to let the special VA map to the PA, then we read the special VA and get the value of the PA. Because I only start to research on the KVM, so I am not sure if this can work. I hope to get help to achieve this.
> 
> 
> Thanks and regards,
> Harry

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

      reply	other threads:[~2015-08-19 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17  1:59 KVM/ARM: How to read the value of some physical address in HYP mode harry
2015-08-19 22:35 ` Christoffer Dall [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=20150819223501.GA16002@lvm \
    --to=christoffer.dall@linaro.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=tiancaixiaoyu90@126.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