Re: [Xen-devel] How to recognize which guest issues the hypercall?
On Wed, Nov 25, 2015 at 7:18 AM, Big Strongwrote: > I write a program to intercept all hypercalls happend on a xen hypervisor. > How can I know which domain called the hypercall? Is it possible to obtain > it from the registers? Why are you cross-posting this to both xen-users and xen-devel? This is obviously a development question. At any given time, "current" will point to the vcpu struct of the currently-running vcpu; current->domain will point to the domain struct. That should get you started. -George ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] How to recognize which guest issues the hypercall?
Thanks for your replying and sorry for the behavior. Can I get that using libxc? Because I can't access the structure directly from dom0. 2015-11-25 18:44 GMT+08:00 George Dunlap: > On Wed, Nov 25, 2015 at 7:18 AM, Big Strong wrote: > > I write a program to intercept all hypercalls happend on a xen > hypervisor. > > How can I know which domain called the hypercall? Is it possible to > obtain > > it from the registers? > > Why are you cross-posting this to both xen-users and xen-devel? This > is obviously a development question. > > At any given time, "current" will point to the vcpu struct of the > currently-running vcpu; current->domain will point to the domain > struct. That should get you started. > > -George > ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] How to recognize which guest issues the hypercall?
On Wed, Nov 25, 2015 at 1:23 PM, Big Strongwrote: > Thanks for your replying and sorry for the behavior. Can I get that using > libxc? Because I can't access the structure directly from dom0. Also, please don't top-post. :-) Hypercalls are made from the guest to the hypervisor; it's in the hypervisor that "current" is available. -George ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
[Xen-devel] How to recognize which guest issues the hypercall?
I write a program to intercept all hypercalls happend on a xen hypervisor. How can I know which domain called the hypercall? Is it possible to obtain it from the registers? ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel