* some questions about system calls in KVM/ARM
@ 2015-05-03 3:37 孙晓阳
2015-05-05 12:17 ` Christoffer Dall
0 siblings, 1 reply; 2+ messages in thread
From: 孙晓阳 @ 2015-05-03 3:37 UTC (permalink / raw)
To: kvmarm
[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]
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)?
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?
Thank you very much!
Have a fine day!
Send from xiaoyangsun
[-- Attachment #1.2: Type: text/html, Size: 682 bytes --]
[-- Attachment #2: Type: text/plain, Size: 151 bytes --]
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: some questions about system calls in KVM/ARM
2015-05-03 3:37 some questions about system calls in KVM/ARM 孙晓阳
@ 2015-05-05 12:17 ` Christoffer Dall
0 siblings, 0 replies; 2+ messages in thread
From: Christoffer Dall @ 2015-05-05 12:17 UTC (permalink / raw)
To: 孙晓阳; +Cc: kvmarm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-05 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03 3:37 some questions about system calls in KVM/ARM 孙晓阳
2015-05-05 12:17 ` Christoffer Dall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox