|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] how to callback from hypervisor to guest os?
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] how to callback from hypervisor to guest os?,
weiming <=
|
|
|
|
|