From: Julien Grall <julien.grall@citrix.com>
To: harry <tiancaixiaoyu90@126.com>, xen-devel@lists.xen.org
Subject: Re: Xen on ARM: Read SP_usr and SP_svc in HYP mode
Date: Fri, 28 Aug 2015 17:25:27 +0100 [thread overview]
Message-ID: <55E08B77.9080302@citrix.com> (raw)
In-Reply-To: <16824840.60c3.14f632b3398.Coremail.tiancaixiaoyu90@126.com>
On 25/08/15 05:43, harry wrote:
> Hi,
Hello,
> Now I want to implement some functions in other hypervisor, so I need to
> read SP_usr and SP_svc in HYP mode. I know Xen has implemented this
> function. But I use it with regs->sp_usr/svc to achieve this. But I
> don't know how to achieve it. I have read the entry.S file and get the
> process to save the regs, but some definition is not clear. I want to
> know if there is some asm command to achieve this? Or do I need to
> switch the mode manually to read it?
Please reach out the mailing list related to the hypervisor you want to
modify to know whether they have handy helpers to access SP_usr/SP_svc.
If not, I would advice you to read the ARM ARM in order to know how to
access banked registers, particularly the section "Encoding and use of
Banked register transfer instructions".
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-08-28 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 4:43 Xen on ARM: Read SP_usr and SP_svc in HYP mode harry
2015-08-28 16:25 ` Julien Grall [this message]
[not found] ` <55E08B6D.7000205@citrix.com>
2015-08-31 4:18 ` harry
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=55E08B77.9080302@citrix.com \
--to=julien.grall@citrix.com \
--cc=tiancaixiaoyu90@126.com \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.