KVM/ARM:Read SP_usr and SP_svc in HYP mode

2015-08-24 Thread harry
Hi, Now I want to do more things in HYP mode, so I need to read SP_usr and SP_svc to get some information in HYP mode. But I don't know how to achieve it. Is there any asm command to achieve this? Or do I need to switch the mode manually to read it? Thanks and regards, Harry

KVM/ARM: How to read the value of some physical address in HYP mode

2015-08-16 Thread harry
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. 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

KVM/ARM: Problems about intercepting the system call

2015-08-05 Thread harry
) at 0x80e0. And then a kernel panic. So I want to know if there are some other ways to achieve this. Thanks and regards, Harry ___ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

KVM on ARM: Problems on the implementation of a print function in HYP mode

2015-07-23 Thread harry
function in kernel. But I have no idea. May anybody give me some advises about the upcall mechanism? Or if KVM has this kind of mechanism already? Thank you very much. Harry.___ kvmarm mailing list kvmarm@lists.cs.columbia.edu https

***SPAM*** KVM on ARM: How to add some functions into interrupt.S with C code?

2015-07-10 Thread harry
I want to add some functions into interrupt.S with C code to do some operations in hyp mode with a hypcall. I have tried to add .global [function name] and use bl [function name], but there will be a prefetch abort. So I want to know if the C code can be linked into interrupt.S and how to