All of lore.kernel.org
 help / color / mirror / Atom feed
* how to callback from hypervisor to guest os?
@ 2008-07-06  4:18 weiming
  2008-07-06  9:15 ` Daniel Stodden
  0 siblings, 1 reply; 10+ messages in thread
From: weiming @ 2008-07-06  4:18 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 857 bytes --]

I try to let xen calls a kernel function in guest OS, is it possible?

Here is the detail:

Normally, when a guest hits a fault, the control is transfered to xen. Then
xen handles the fault and then transfer the control back to guest.

For example, in original xen:
void some_fault_handler()
{

   ...
   ...
   finally, then let guest os handles it
}

Now, I want to call some guest OS function in xen's handler:

void some_fault_handler()
{

  guest_func() // a function in guest kernel
   ...
   ...
   finally, then let guest os handles it
}


I can write a module (driver) in guest os, so when guest os boots, I can
pass the address of my function to xen. My question is that when xen calls
my function, it needs to swtich to "guest mode". How to do this? and when
the function call finishes, how to let it come back to xen's context?

Thanks,
Weiming

[-- Attachment #1.2: Type: text/html, Size: 1043 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-07-08  0:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-06  4:18 how to callback from hypervisor to guest os? weiming
2008-07-06  9:15 ` Daniel Stodden
2008-07-06 15:46   ` weiming
2008-07-06 21:26     ` Daniel Stodden
2008-07-07 21:46       ` weiming
2008-07-07 21:57         ` Jeremy Fitzhardinge
2008-07-07 22:14           ` weiming
2008-07-07 22:32             ` Jeremy Fitzhardinge
2008-07-08  0:12               ` weiming
2008-07-08  0:20                 ` Jeremy Fitzhardinge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.