WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] how can I find code of hypercall?

To: "leilei175@xxxxxxxxx" <leilei175@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] how can I find code of hypercall?
From: "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@xxxxxxx>
Date: Wed, 11 Mar 2009 15:38:04 +0530
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Wed, 11 Mar 2009 03:08:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <82fc30000903110252p310b753aj1844d66d7526166e@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <82fc30000903110252p310b753aj1844d66d7526166e@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmiLze25qVhRQx9THC1xnFWIMpGQAAABfhA
Thread-topic: [Xen-devel] how can I find code of hypercall?
I've done this on an HVM. For Intel, you can go to platform-pci and dump the 
hypercall page on the console 4 bytes at a time. Each 4 byte value on the 
hypercall page constitutes an Intel x86 instruction, and you should find 
something like this: -
0xc1010f00 
0xccccccc3 
0xcccccccc 
0xcccccccc 
0xcccccccc 
0xcccccccc 
0xcccccccc 
0x1b8
.
.

The first instruction is the vmcall opcode.

You can also check this mail thread I had once with the community: -
http://markmail.org/message/p2qbgp7caqhyijks#query:vmcall%200f01c1+page:1+mid:oszzmoks45ilqjuz+state:results

Regards,
Bhaskar.

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of leilei175@xxxxxxxxx
Sent: Wednesday, March 11, 2009 3:23 PM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] how can I find code of hypercall?

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel