[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Unable to include xen/sched.h



On Monday 12 November 2007, ashutosh mehra wrote:
> Can't I access it in a module running in dom0? Do I have to move the
> module's code to the hypervisor?

Depending on what you're trying to do, you could run the part of the code 
which gets the list of domain details in userspace.  You can invoke domctl / 
sysctl calls from there, so you should be able to get the domain list just by 
calling an xc library function.

If you really need a kernel component, you could either abuse the domctl / 
sysctls in kernel (if you use these from kernelspace then your kernel may be 
tied to a specific version of Xen when those change), or a userspace 
component could access those APIs and then communicate the relevant 
information to your kernel module.

Hope that helps,
Cheers,
Mark

> On Nov 12, 2007 1:42 PM, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > >I'm unable to include xen/sched.h in my kernel module, although
> > >xen/xenbus.h, etc work fine. I get an error - xen/sched.h - no such
> > > file.
> >
> > I
> >
> > >need to access the for_each_domain macro. Please help!
> >
> > The macro and header file are for hypervisor.
> > Guest kernel cannot use the macro and domain_list.
> >
> > Best Regards,
> >
> > Akio Takebe



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.