From: Christoffer Dall <christoffer.dall@linaro.org>
To: 孙晓阳 <sxy.winner@gmail.com>
Cc: kvmarm@lists.cs.columbia.edu
Subject: Re: some questions about system calls in KVM/ARM
Date: Tue, 5 May 2015 14:17:53 +0200 [thread overview]
Message-ID: <20150505121753.GC19385@cbox> (raw)
In-Reply-To: <CAJoe4kjEDbCwBSgSamB7RW+fYYhXO2FfvMB3JDJppV-DZ+jhGg@mail.gmail.com>
On Sun, May 03, 2015 at 11:37:29AM +0800, 孙晓阳 wrote:
> Hello,
> I am intersted in KVM/ARM and I am trying to do some work based on KVM/ARM.
> But here is some questions :
> 1. if I set HCR.TGE=1, does the system calls will traps into hyp mode and
> be handled by hyp_svc( arch/arm/kvm/interrupts.S)?
no, hyp_svc is only handling hypervisor calls from hyp mode itself. All
traps to Hyp mode are handled in hyp_hvc. See "Use of offset 0x14 in
the Hyp vector table" in Section B1.8.1 in the ARMv7 ARM (DDI 0406C.c).
> 2. How can I get Guest OS's system call's number and address while issuing
> swi instruction in Guest OS usr mode and trapped into Hyp mode?
You have to know the ABI of the guest os and decode whatever
register/immediate used by that.
-Christoffer
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
prev parent reply other threads:[~2015-05-05 12:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-03 3:37 some questions about system calls in KVM/ARM 孙晓阳
2015-05-05 12:17 ` 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=20150505121753.GC19385@cbox \
--to=christoffer.dall@linaro.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=sxy.winner@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