|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [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
|
|
|
|
|