All of lore.kernel.org
 help / color / mirror / Atom feed
* ioctl and Xen
@ 2009-08-07 17:54 Derek Riley
       [not found] ` <f9611b0f0908071229r412309f2r113c05d68426683b@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Derek Riley @ 2009-08-07 17:54 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 351 bytes --]

Hello developers-
I am trying to modify the Xen Hypervisor kernel to pass information to and
from a user space program to the domain scheduler (sched_credit), and I was
wondering if it would be possible to use ioctl to do this?  I am somewhat
new to Linux kernel modification, so please point out the obvious if I am
missing something.
Thanks
--Derek

[-- Attachment #1.2: Type: text/html, Size: 369 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: ioctl and Xen
       [not found] ` <f9611b0f0908071229r412309f2r113c05d68426683b@mail.gmail.com>
@ 2009-08-07 19:36   ` Derek Riley
  2009-08-07 20:22     ` Dulloor
  0 siblings, 1 reply; 5+ messages in thread
From: Derek Riley @ 2009-08-07 19:36 UTC (permalink / raw)
  To: Marco Tizzoni, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1020 bytes --]

Thanks for your reply.  I am familiar with the files you listed, but they do
not do what I need, nor do I see how they could be modified to do what I
want (although I may be missing something).

I am trying to pass simple information in and out of the scheduler while it
is running to a user process for monitoring and control.  I just need an IPC
method that is fast so it won't bog down the scheduler or the user space
process.  Any thoughts?  Thanks
--Derek

On Fri, Aug 7, 2009 at 2:29 PM, Marco Tizzoni <marco.tizzoni@gmail.com>wrote:

> On Fri, Aug 7, 2009 at 7:54 PM, Derek
> Riley<derek.riley@isis.vanderbilt.edu> wrote:
> > Hello developers-
> > I am trying to modify the Xen Hypervisor kernel to pass information to
> and
> > from a user space program to the domain scheduler (sched_credit),
>
> I'm not experienced but I think you could have a look at:
>
> xen/include/public/domctl.h
> xen/include/public/sched.h
> xen/include/public/sched-if.h
> xen/common/sched_credit.c
> tools/libxc/xc_csched.c
>
> m-
>

[-- Attachment #1.2: Type: text/html, Size: 1468 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: ioctl and Xen
  2009-08-07 19:36   ` Derek Riley
@ 2009-08-07 20:22     ` Dulloor
  2009-08-07 20:59       ` Derek Riley
  0 siblings, 1 reply; 5+ messages in thread
From: Dulloor @ 2009-08-07 20:22 UTC (permalink / raw)
  To: Derek Riley; +Cc: xen-devel, Marco Tizzoni


[-- Attachment #1.1: Type: text/plain, Size: 1411 bytes --]

You can look at the way trace-bufs are implemented in xentrace. You will
find xentrace in xen/tools.

-dulloor

On Fri, Aug 7, 2009 at 3:36 PM, Derek Riley <derek.riley@isis.vanderbilt.edu
> wrote:

> Thanks for your reply.  I am familiar with the files you listed, but they
> do not do what I need, nor do I see how they could be modified to do what I
> want (although I may be missing something).
>
> I am trying to pass simple information in and out of the scheduler while it
> is running to a user process for monitoring and control.  I just need an IPC
> method that is fast so it won't bog down the scheduler or the user space
> process.  Any thoughts?  Thanks
> --Derek
>
> On Fri, Aug 7, 2009 at 2:29 PM, Marco Tizzoni <marco.tizzoni@gmail.com>wrote:
>
>> On Fri, Aug 7, 2009 at 7:54 PM, Derek
>> Riley<derek.riley@isis.vanderbilt.edu> wrote:
>> > Hello developers-
>> > I am trying to modify the Xen Hypervisor kernel to pass information to
>> and
>> > from a user space program to the domain scheduler (sched_credit),
>>
>> I'm not experienced but I think you could have a look at:
>>
>> xen/include/public/domctl.h
>> xen/include/public/sched.h
>> xen/include/public/sched-if.h
>> xen/common/sched_credit.c
>> tools/libxc/xc_csched.c
>>
>> m-
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

[-- Attachment #1.2: Type: text/html, Size: 2254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: ioctl and Xen
  2009-08-07 20:22     ` Dulloor
@ 2009-08-07 20:59       ` Derek Riley
  2009-08-08 10:57         ` Kuriakose Mathew
  0 siblings, 1 reply; 5+ messages in thread
From: Derek Riley @ 2009-08-07 20:59 UTC (permalink / raw)
  To: Dulloor; +Cc: xen-devel, Marco Tizzoni


[-- Attachment #1.1: Type: text/plain, Size: 1934 bytes --]

Thanks for the suggestion.  It appears to me that the xentrace only
implements one-way communication between the kernel and user space, but I
need 2 way communication.

I know it is not the "right" way to do it, but is there a way to read/write
a file within the scheduler?  I am working on a 1-off implementation for a
specialized project that will never make it into the main kernel.

Thanks
--Derek

On Fri, Aug 7, 2009 at 3:22 PM, Dulloor <dulloor@gmail.com> wrote:

> You can look at the way trace-bufs are implemented in xentrace. You will
> find xentrace in xen/tools.
>
> -dulloor
>
> On Fri, Aug 7, 2009 at 3:36 PM, Derek Riley <
> derek.riley@isis.vanderbilt.edu> wrote:
>
>> Thanks for your reply.  I am familiar with the files you listed, but they
>> do not do what I need, nor do I see how they could be modified to do what I
>> want (although I may be missing something).
>>
>> I am trying to pass simple information in and out of the scheduler while
>> it is running to a user process for monitoring and control.  I just need an
>> IPC method that is fast so it won't bog down the scheduler or the user space
>> process.  Any thoughts?  Thanks
>> --Derek
>>
>> On Fri, Aug 7, 2009 at 2:29 PM, Marco Tizzoni <marco.tizzoni@gmail.com>wrote:
>>
>>> On Fri, Aug 7, 2009 at 7:54 PM, Derek
>>> Riley<derek.riley@isis.vanderbilt.edu> wrote:
>>> > Hello developers-
>>> > I am trying to modify the Xen Hypervisor kernel to pass information to
>>> and
>>> > from a user space program to the domain scheduler (sched_credit),
>>>
>>> I'm not experienced but I think you could have a look at:
>>>
>>> xen/include/public/domctl.h
>>> xen/include/public/sched.h
>>> xen/include/public/sched-if.h
>>> xen/common/sched_credit.c
>>> tools/libxc/xc_csched.c
>>>
>>> m-
>>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 3141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: ioctl and Xen
  2009-08-07 20:59       ` Derek Riley
@ 2009-08-08 10:57         ` Kuriakose Mathew
  0 siblings, 0 replies; 5+ messages in thread
From: Kuriakose Mathew @ 2009-08-08 10:57 UTC (permalink / raw)
  To: xen-devel; +Cc: Derek Riley


[-- Attachment #1.1: Type: text/plain, Size: 2708 bytes --]

Hi
   Even I am looking for something similar. I came upon xenstore , through
which we can write a particular value to a key and then read the
corresponding value. Even there is a concept of watch in xenstore which
gives a notification as to ,a value corresponding to a key has changed. But
I could read and write only from the userspace. If you could read a key's
value from kernel space , you are done. If you get anything in this
direction do inform.


-Mathew

On Sat, Aug 8, 2009 at 2:29 AM, Derek Riley <derek.riley@isis.vanderbilt.edu
> wrote:

> Thanks for the suggestion.  It appears to me that the xentrace only
> implements one-way communication between the kernel and user space, but I
> need 2 way communication.
>
> I know it is not the "right" way to do it, but is there a way to read/write
> a file within the scheduler?  I am working on a 1-off implementation for a
> specialized project that will never make it into the main kernel.
>
> Thanks
> --Derek
>
>
> On Fri, Aug 7, 2009 at 3:22 PM, Dulloor <dulloor@gmail.com> wrote:
>
>> You can look at the way trace-bufs are implemented in xentrace. You will
>> find xentrace in xen/tools.
>>
>> -dulloor
>>
>> On Fri, Aug 7, 2009 at 3:36 PM, Derek Riley <
>> derek.riley@isis.vanderbilt.edu> wrote:
>>
>>> Thanks for your reply.  I am familiar with the files you listed, but they
>>> do not do what I need, nor do I see how they could be modified to do what I
>>> want (although I may be missing something).
>>>
>>> I am trying to pass simple information in and out of the scheduler while
>>> it is running to a user process for monitoring and control.  I just need an
>>> IPC method that is fast so it won't bog down the scheduler or the user space
>>> process.  Any thoughts?  Thanks
>>> --Derek
>>>
>>> On Fri, Aug 7, 2009 at 2:29 PM, Marco Tizzoni <marco.tizzoni@gmail.com>wrote:
>>>
>>>> On Fri, Aug 7, 2009 at 7:54 PM, Derek
>>>> Riley<derek.riley@isis.vanderbilt.edu> wrote:
>>>> > Hello developers-
>>>> > I am trying to modify the Xen Hypervisor kernel to pass information to
>>>> and
>>>> > from a user space program to the domain scheduler (sched_credit),
>>>>
>>>> I'm not experienced but I think you could have a look at:
>>>>
>>>> xen/include/public/domctl.h
>>>> xen/include/public/sched.h
>>>> xen/include/public/sched-if.h
>>>> xen/common/sched_credit.c
>>>> tools/libxc/xc_csched.c
>>>>
>>>> m-
>>>>
>>>
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
>>>
>>>
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

[-- Attachment #1.2: Type: text/html, Size: 4469 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2009-08-08 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07 17:54 ioctl and Xen Derek Riley
     [not found] ` <f9611b0f0908071229r412309f2r113c05d68426683b@mail.gmail.com>
2009-08-07 19:36   ` Derek Riley
2009-08-07 20:22     ` Dulloor
2009-08-07 20:59       ` Derek Riley
2009-08-08 10:57         ` Kuriakose Mathew

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.