From: Ian Campbell Subject: Re: How to handle the supervisor call in Xen on ARM? Date: Mon, 8 Sep 2014 09:31:05 +0100 Message-ID: <1410165065.10156.106.camel@kazak.uk.xensource.com> References: <1410144160894-5724653.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410144160894-5724653.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: harry2845 Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. > 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. > 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.