Mini-OS and force_evtchn_callback()
Hello!
I'm trying to understand the event channel handling more in detail, and was playing around a bit with the Mini-OS. However, it does not behave quite as I had expected.
After having done a sti(), I do a force_evtchn_callback() which I though would cause an event to be sent to hypervisor_callback(), which was registered as the channel callback with HYPERVISOR_set_callacks().
The callback is not called until the domain issues a HYPERVISOR_set_timer_op() and thereafter blocks with HYPERVISOR_sched_op(). Is this the expected behavior, or is there something wrong with the Mini-OS or did I simply miss something?
Signature · 1 line
// Simon
Quoted 7 lines · Simon Kagstrom
I'm trying to understand the event channel handling more in detail, and was playing around a bit with the Mini-OS. However, it does not behave quite as I had expected.
After having done a
sti(), I do aforce_evtchn_callback()which I though would cause an event to be sent tohypervisor_callback(), which was registered as the channel callback withHYPERVISOR_set_callacks().
It'll only force a callback if an event is pending.
-- Keir
Quoted 8 lines · Keir Fraser
Quoted 3 lines · Simon Kagstrom
After having done a
sti(), I do aforce_evtchn_callback()which I though would cause an event to be sent tohypervisor_callback(), which was registered as the channel callback withHYPERVISOR_set_callacks().It'll only force a callback if an event is pending.
Is it possible to insert an event through e.g., xm on dom0?
Signature · 1 line
// Simon
Quoted 3 lines · Simon Kagstrom
Quoted 1 line
It'll only force a callback if an event is pending.
Is it possible to insert an event through e.g., xm on dom0?
You have console and xenstore event channels set up for you. You can unmask those in the mini-os and then trigger them in dom0, sure.
-- Keir