How to recognize which guest issues the hypercall?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to recognize which guest issues the hypercall?

quizz
Reply | Threaded
Open this post in threaded view
|

Re: [Xen-devel] How to recognize which guest issues the hypercall?

George Dunlap
On Wed, Nov 25, 2015 at 7:18 AM, Big Strong <[hidden email]> 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-users mailing list
[hidden email]
http://lists.xen.org/xen-users