[Xen-devel] how to locate the hypercall address in memory?
As syscalls can be located with the help of symbol files, is it possible to do it to hypercalls too? ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
could you explain that in detail? As syscall tracing, we usually locate the kernel module first, then find the address of specific syscall function in that module with the help of symbol files. How could this be applied to hypercalls then? 2015-07-14 19:56 GMT+08:00 Jan Beulich jbeul...@suse.com: On 14.07.15 at 09:10, fangtu...@gmail.com wrote: As syscalls can be located with the help of symbol files, is it possible to do it to hypercalls too? Sure. Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
On 14.07.15 at 13:59, fangtu...@gmail.com wrote: could you explain that in detail? As syscall tracing, we usually locate the kernel module first, then find the address of specific syscall function in that module with the help of symbol files. How could this be applied to hypercalls then? You'd do whatever you do with the kernel binary with the hypervisor one instead (plus you don't even need to care about modules there). Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
On 14.07.15 at 09:10, fangtu...@gmail.com wrote: As syscalls can be located with the help of symbol files, is it possible to do it to hypercalls too? Sure. Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
All right, what is the base address of hypercalls table? And which file contains the offset of each hypercall? 2015-07-14 20:36 GMT+08:00 Jan Beulich jbeul...@suse.com: On 14.07.15 at 13:59, fangtu...@gmail.com wrote: could you explain that in detail? As syscall tracing, we usually locate the kernel module first, then find the address of specific syscall function in that module with the help of symbol files. How could this be applied to hypercalls then? You'd do whatever you do with the kernel binary with the hypervisor one instead (plus you don't even need to care about modules there). Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
On Tue, 2015-07-14 at 14:38 +0100, Jan Beulich wrote: On 14.07.15 at 15:31, fangtu...@gmail.com wrote: All right, what is the base address of hypercalls table? And which file contains the offset of each hypercall? Did you at least _try_ to find the answer yourself, e.g. by grep-ing the hypervisor source for some obvious strings? big strong, I would recommend that you read http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions Ian. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
I've read the hypercall related code, such as entry.S hypervisor.h ,etc. But the problem is that hypercall functions are implemented in different files while linux package syscalls into glibc and windows ntoskrnl. There is a hypercall table defined in entry.S. But I havn't found any offsets related information. Besides, I've learned that hypercall page is mapped to a fixed address when the guest is initialized, but which address it is and is this address the base address of hypercall table? 2015-07-14 21:38 GMT+08:00 Jan Beulich jbeul...@suse.com: On 14.07.15 at 15:31, fangtu...@gmail.com wrote: All right, what is the base address of hypercalls table? And which file contains the offset of each hypercall? Did you at least _try_ to find the answer yourself, e.g. by grep-ing the hypervisor source for some obvious strings? Jan 2015-07-14 20:36 GMT+08:00 Jan Beulich jbeul...@suse.com: On 14.07.15 at 13:59, fangtu...@gmail.com wrote: could you explain that in detail? As syscall tracing, we usually locate the kernel module first, then find the address of specific syscall function in that module with the help of symbol files. How could this be applied to hypercalls then? You'd do whatever you do with the kernel binary with the hypervisor one instead (plus you don't even need to care about modules there). Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
On 14.07.15 at 15:31, fangtu...@gmail.com wrote: All right, what is the base address of hypercalls table? And which file contains the offset of each hypercall? Did you at least _try_ to find the answer yourself, e.g. by grep-ing the hypervisor source for some obvious strings? Jan 2015-07-14 20:36 GMT+08:00 Jan Beulich jbeul...@suse.com: On 14.07.15 at 13:59, fangtu...@gmail.com wrote: could you explain that in detail? As syscall tracing, we usually locate the kernel module first, then find the address of specific syscall function in that module with the help of symbol files. How could this be applied to hypercalls then? You'd do whatever you do with the kernel binary with the hypervisor one instead (plus you don't even need to care about modules there). Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] how to locate the hypercall address in memory?
http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions The page cannot open 2015-07-14 22:02 GMT+08:00 Ian Campbell ian.campb...@citrix.com: On Tue, 2015-07-14 at 14:38 +0100, Jan Beulich wrote: On 14.07.15 at 15:31, fangtu...@gmail.com wrote: All right, what is the base address of hypercalls table? And which file contains the offset of each hypercall? Did you at least _try_ to find the answer yourself, e.g. by grep-ing the hypervisor source for some obvious strings? big strong, I would recommend that you read http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions Ian. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel