Skip to contentSkip to conversation

How to handle the supervisor call in Xen on ARM?

DISCUSSION harry2845 2 participants 2 messages Sep 8, 2014

lore
Share & tools
lore

harry2845

author
#0 lore raw

Now I've known that if I set the HCR.TGE, the supervisor call will be trapped into hyp mode. But if I do nothing in hyp mode. After return to user, there will be a kernel panic.

But I don't know how to handle the supervisor call, could someone give me some advice? Thank you very much.

--
View this message in context: http://xen.1045712.n5.nabble.com/How-to-handle-the-supervisor-call-in-Xen-on-ARM-tp5724653.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#1 lore raw
Quoted 3 lines · On Sun, 2014-09-07 at 19:42 -0700, harry2845 wrote:

Now I've known that if I set the HCR.TGE, the supervisor call will be trapped into hyp mode. But if I do nothing in hyp mode. After return to user, there will be a kernel panic.

Yes, because you have to deal with all of the trapped general exceptions somehow.

Quoted 2 lines

But I don't know how to handle the supervisor call, could someone give me some advice?

I'm afraid not. You will need to spend some time reading the ARM ARM manual and figure out what the correct response is to each thing which is trapped by setting the HCR.TGE bit. Some might be handled by just returning, others will require you to actually do something.

Quoted 1 line

Thank you very much.

This is now the 3rd time you've started this thread. Please stick to a single thread and reply there as necessary.

Ian.