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 to callback from hypervisor to guest os?

weiming wrote:
Hi Jeremy,

Thanks for your answering.

If my understanding is correct, do you mean the hypervisor side should look like:

Xen: _interrupt_handler() ...
  ...
event_send(guest_dom) while(event_receive(&result))
  {

} post: xxx() ...
}


No, not at all.  It would have to be something like:

interrupt_handler()
{
        set_up_state(guest_dom);
        send_event(guest_dom);
}

...

do_my_hypercall(...)
{
        do_stuff(guest_dom);
}


   J

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