Skip to contentSkip to conversation

Mini-OS and force_evtchn_callback()

DISCUSSION Simon Kagstrom 2 participants 4 messages Jan 27, 2006 – Jan 30, 2006

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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 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().

It'll only force a callback if an event is pending.

-- Keir

#2 lore raw
Quoted 8 lines · Keir Fraser
Quoted 3 lines · Simon Kagstrom

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().

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
#3 lore raw
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