All of lore.kernel.org
 help / color / mirror / Atom feed
* Mini-OS and force_evtchn_callback()
@ 2006-01-27 14:27 Simon Kagstrom
  2006-01-27 14:41 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Kagstrom @ 2006-01-27 14:27 UTC (permalink / raw)
  To: xen-devel

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?

-- 
// Simon

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

* Re: Mini-OS and force_evtchn_callback()
  2006-01-27 14:27 Mini-OS and force_evtchn_callback() Simon Kagstrom
@ 2006-01-27 14:41 ` Keir Fraser
  2006-01-30  8:53   ` Simon Kagstrom
  0 siblings, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2006-01-27 14:41 UTC (permalink / raw)
  To: Simon Kagstrom; +Cc: xen-devel


On 27 Jan 2006, at 14:27, Simon Kagstrom wrote:

> 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

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

* Re: Mini-OS and force_evtchn_callback()
  2006-01-27 14:41 ` Keir Fraser
@ 2006-01-30  8:53   ` Simon Kagstrom
  2006-01-30 10:21     ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Kagstrom @ 2006-01-30  8:53 UTC (permalink / raw)
  To: xen-devel

On 2006-01-27, 14:41, Keir Fraser wrote:
> 
> On 27 Jan 2006, at 14:27, Simon Kagstrom wrote:
> 
> >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?

-- 
// Simon

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

* Re: Mini-OS and force_evtchn_callback()
  2006-01-30  8:53   ` Simon Kagstrom
@ 2006-01-30 10:21     ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2006-01-30 10:21 UTC (permalink / raw)
  To: Simon Kagstrom; +Cc: xen-devel


On 30 Jan 2006, at 08:53, Simon Kagstrom wrote:

>> 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

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

end of thread, other threads:[~2006-01-30 10:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-27 14:27 Mini-OS and force_evtchn_callback() Simon Kagstrom
2006-01-27 14:41 ` Keir Fraser
2006-01-30  8:53   ` Simon Kagstrom
2006-01-30 10:21     ` Keir Fraser

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.