* xenbus callback probe...
@ 2008-12-11 3:14 Mukesh Rathor
2008-12-11 9:08 ` Keir Fraser
0 siblings, 1 reply; 5+ messages in thread
From: Mukesh Rathor @ 2008-12-11 3:14 UTC (permalink / raw)
To: xen-devel
Hi,
I'm trying to figure what causes a probe callback to happen, any quick example?
Thanks,
Mukesh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xenbus callback probe...
2008-12-11 3:14 xenbus callback probe Mukesh Rathor
@ 2008-12-11 9:08 ` Keir Fraser
2008-12-17 3:15 ` Mukesh Rathor
0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2008-12-11 9:08 UTC (permalink / raw)
To: mukesh.rathor, xen-devel
On 11/12/2008 03:14, "Mukesh Rathor" <mukesh.rathor@oracle.com> wrote:
> Hi,
>
> I'm trying to figure what causes a probe callback to happen, any quick
> example?
New directories appearing in xenstore under /local/domain/x/device/
-- Keir
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xenbus callback probe...
2008-12-11 9:08 ` Keir Fraser
@ 2008-12-17 3:15 ` Mukesh Rathor
2008-12-17 8:21 ` Keir Fraser
0 siblings, 1 reply; 5+ messages in thread
From: Mukesh Rathor @ 2008-12-17 3:15 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
Thanks. Now, that I played around a bit, am going in circles trying to
figure how to keep very simple in my messaging driver. Basically,
I'd like to keep it symmetric, no frontend/backend, just one file,
dynamically loadable, kernel driver. When a driver is loaded in domU, it
broadcasts ring-ref/event-chnl and causes dom0 callback to wake up and
act on it. Since domU can't write to /local/domain/0/blah/bleh, is there
some other generic way to broadcast it? I'd like to avoid a user level
script. It almost appears xenbus_watch_path() may allow me to set
callback on /local/domain/*/blah/bleh, but I don't have the
xenbus_device ptr as it seems provided by xenbus_driver{} callbacks.
Thanks in advance,
Mukesh
Keir Fraser wrote:
> On 11/12/2008 03:14, "Mukesh Rathor" <mukesh.rathor@oracle.com> wrote:
>
>> Hi,
>>
>> I'm trying to figure what causes a probe callback to happen, any quick
>> example?
>
> New directories appearing in xenstore under /local/domain/x/device/
>
> -- Keir
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xenbus callback probe...
2008-12-17 3:15 ` Mukesh Rathor
@ 2008-12-17 8:21 ` Keir Fraser
2008-12-17 19:58 ` Mukesh Rathor
0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2008-12-17 8:21 UTC (permalink / raw)
To: mukesh.rathor; +Cc: xen-devel
On 17/12/2008 03:15, "Mukesh Rathor" <mukesh.rathor@oracle.com> wrote:
> Thanks. Now, that I played around a bit, am going in circles trying to
> figure how to keep very simple in my messaging driver. Basically,
> I'd like to keep it symmetric, no frontend/backend, just one file,
> dynamically loadable, kernel driver. When a driver is loaded in domU, it
> broadcasts ring-ref/event-chnl and causes dom0 callback to wake up and
> act on it. Since domU can't write to /local/domain/0/blah/bleh, is there
> some other generic way to broadcast it?
No, the whole point is that a domU cannot disturb dom0 unless a rendezvous
point has been set up by the tool stack.
Who are the messages to be picked up by? Tool stack? In which case why not
just stuff messages via a well-known /local/domain/x/... xenstore node which
tools would watch for all alive domains x?
-- Keir
> I'd like to avoid a user level
> script. It almost appears xenbus_watch_path() may allow me to set
> callback on /local/domain/*/blah/bleh, but I don't have the
> xenbus_device ptr as it seems provided by xenbus_driver{} callbacks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xenbus callback probe...
2008-12-17 8:21 ` Keir Fraser
@ 2008-12-17 19:58 ` Mukesh Rathor
0 siblings, 0 replies; 5+ messages in thread
From: Mukesh Rathor @ 2008-12-17 19:58 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
Keir Fraser wrote:
> On 17/12/2008 03:15, "Mukesh Rathor" <mukesh.rathor@oracle.com> wrote:
>
>> Thanks. Now, that I played around a bit, am going in circles trying to
>> figure how to keep very simple in my messaging driver. Basically,
>> I'd like to keep it symmetric, no frontend/backend, just one file,
>> dynamically loadable, kernel driver. When a driver is loaded in domU, it
>> broadcasts ring-ref/event-chnl and causes dom0 callback to wake up and
>> act on it. Since domU can't write to /local/domain/0/blah/bleh, is there
>> some other generic way to broadcast it?
>
> No, the whole point is that a domU cannot disturb dom0 unless a rendezvous
> point has been set up by the tool stack.
>
> Who are the messages to be picked up by? Tool stack? In which case why not
> just stuff messages via a well-known /local/domain/x/... xenstore node which
> tools would watch for all alive domains x?
>
> -- Keir
Well, combination. Some messages could be picked up by tool stack,
database might be interested in other, and a file system/vol-manager
closely associated with the database interested in yet other messages
that are related to dynamically changing of resources. Things are still
being architected, with feedback from the DB folks. It must also be
supported on multiple platforms, and they'd want a uniform interface.
Anyways, I should be to do it in the current infrastructure,
/local/domain/x like you suggest, and prototype something.
As always, thanks for your prompt help.
Mukesh
>
>> I'd like to avoid a user level
>> script. It almost appears xenbus_watch_path() may allow me to set
>> callback on /local/domain/*/blah/bleh, but I don't have the
>> xenbus_device ptr as it seems provided by xenbus_driver{} callbacks.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-17 19:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 3:14 xenbus callback probe Mukesh Rathor
2008-12-11 9:08 ` Keir Fraser
2008-12-17 3:15 ` Mukesh Rathor
2008-12-17 8:21 ` Keir Fraser
2008-12-17 19:58 ` Mukesh Rathor
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.