From: leilei175@gmail.com Subject: how can I find code of hypercall? Date: Wed, 11 Mar 2009 17:52:52 +0800 Message-ID: <82fc30000903110252p310b753aj1844d66d7526166e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org hi,all I am trying to check how hypercall works. For example , one guest call HYPERVISOR_update_va_mapping(), next thing is to call _hypercall4(int, update_va_mapping, va,new_val.pte_low, pte_hi, flags) Then I find the core of _hypercall14 is call hypercall_page + ("STR(__HYPERVISOR_##name)" * 32). The hypercalls are mapped into a page so guest call call it through functions in that page. However, I couldn't trace deeper from here. grep for "hypercall_page" gets no answer. My question is when is this page filled with hypercall functions and Where can I find codes of this core functions? Any advice is appreciated. Thanks