Re: [Xen-devel] Xen on ARM: Read SP_usr and SP_svc in HYP mode

2015-08-31 Thread harry
Hi, Thank you very much! I have got the answer, we can use MSR/MRS instructions to load/save these regs. Thanks and regards, Harry At 2015-08-29 00:25:17, "Julien Grall" wrote: >On 25/08/15 05:43, harry wrote: >> Hi, > >Hi, > >> Now I want to implement some functions in other hypervisor, so

Re: [Xen-devel] Xen on ARM: Read SP_usr and SP_svc in HYP mode

2015-08-28 Thread Julien Grall
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 hav

[Xen-devel] Xen on ARM: Read SP_usr and SP_svc in HYP mode

2015-08-28 Thread harry
Hi, 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