Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xen dom0 kernel [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 6:38 am    Post subject: xen dom0 kernel [SOLVED] Reply with quote

Hi. I have small problem with kernel. I emerged xen and xen-tools than I tried to add xen to my kernel. But... I have this...

Code:

# cat /usr/src/linux-3.8.13-gentoo/.config | grep XEN
NOTHING!!!


How to fix it? Why is it going on?


Last edited by umka69 on Sat Aug 17, 2013 5:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Aug 17, 2013 7:32 am    Post subject: Reply with quote

How did you add xen to the kernel?
Back to top
View user's profile Send private message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 2:19 pm    Post subject: Reply with quote

I am going to do it, but there aren't any xen options in kernel sources. How can I get gentoo-sources with xen?
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Aug 17, 2013 3:20 pm    Post subject: Reply with quote

You need to search for XEN with the / key and then see what it depends on, probably one of its dependencies hasn't been enabled.
Back to top
View user's profile Send private message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 3:48 pm    Post subject: Reply with quote

Can you explain about /? How can I search for dependences? I don't understand.

If it matters... I already add use flag xen and update my system.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Aug 17, 2013 4:05 pm    Post subject: Reply with quote

umka69 wrote:
Can you explain about /? How can I search for dependences? I don't understand.


If you press that key in the menuconfig, it will allow you type XEN and then you can hit enter and see search results (scroll with the page down key). Then for the XEN config variables you will see information about what it depends on. So, let's say it lists that it wants A && B && !C || D && !F then that means that it will become available if you have 1) A enabled, B enabled and C disabled or when you have 2) D enabled and F disabled. So, then you could for example pick option 2 and then you need to go ensure that D is enabled and F is disabled in your kernel; after that, you will be able to enable the option.

So, for XEN on x86 on amd64 you will find that it needs PARAVIRT && (X86_64 || (X86_32 && X86_PAE && !X86_VISWS)) && X86_TSC. Thus, as a start enable PARAVIRT and X86_TSC, then only if you plan to run a 32-bit kernel you will also need to ensure that X86_PAE is enabled and X86_VISWS is disabled.
Back to top
View user's profile Send private message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 4:21 pm    Post subject: Reply with quote

Ok. I acted this way. / shows, for example, this:

Code:

  │ Symbol: XEN_COMPAT_XENFS [=n]                                                                                     
  │ Type  : boolean                                                                                                                   
  │ Prompt: Create compatibility mount point /proc/xen                                                                 
  │   Defined at drivers/xen/Kconfig:99                                                                               
  │   Depends on: XEN [=n] && XENFS [=n]                                                                             
  │   Location:                                                                                                       
  │ (1) -> Device Drivers                                                                                         
  │       -> Xen driver support                                                                                       
  │         -> Xen filesystem (XENFS [=n]


But there isn't any Xen driver support in Device Drivers... 8O
This is the problem.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Aug 17, 2013 4:33 pm    Post subject: Reply with quote

Because of

Quote:
Depends on: XEN [=n] && XENFS [=n]


so you need to enable XEN and XENFS first before you can enable XEN_COMPAT_XENFS.
Back to top
View user's profile Send private message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 4:43 pm    Post subject: Reply with quote

How can I do this? Can I just add [code below] to .config or is it located in menuconfig?

Code:
 /usr/src/linux/.config
...
CONFIG_XEN=y
CONFIG_XENFS=y
...


Last edited by umka69 on Sat Aug 17, 2013 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Aug 17, 2013 4:46 pm    Post subject: Reply with quote

umka69 wrote:
How can I do this?


As explained above.

umka69 wrote:
Can I just add these to .config or is it located in menuconfig?


The .config explicitly states not to change it, they are located in the menuconfig.
Back to top
View user's profile Send private message
umka69
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2013
Posts: 124

PostPosted: Sat Aug 17, 2013 5:01 pm    Post subject: Reply with quote

Thank you a lot! I've got it! :D

My mistake was not enough knowledges about menuconfig. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum