Re: [opensuse-kernel] where is -factory's kernel-xen *source* ?

hi,
Ok. This is because you installed the kernel-source SRPM, not the kernel-source RPM. If you install that, you'll be on the right track.
trying to figure out why there's both a kernel-source SRPM & RPM makes my head ache! ;-)
Sorry for all the confusion.
np :-) (tho' all of this could be avoided if y'all would just compile back in -- as opposed to module -- the pciback support) sooo ... DL'ing the RPM as we speak. will report back. thanks! -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 snowcrash+opensuse wrote:
hi,
Ok. This is because you installed the kernel-source SRPM, not the kernel-source RPM. If you install that, you'll be on the right track.
trying to figure out why there's both a kernel-source SRPM & RPM makes my head ache! ;-)
Hehe. The reason for this is that we save a *lot* of space on the media this way. Otherwise, we'd end up with kernel-default.src.rpm, kernel-xen.src.rpm, kernel-debug.src.rpm, which would be identical to, and conflict with, one another.
Sorry for all the confusion.
np :-)
(tho' all of this could be avoided if y'all would just compile back in -- as opposed to module -- the pciback support)
Why? What happens when you load the module? - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0kP8ACgkQLPWxlyuTD7LWeACfb/7tWTmz2RNY5V1bLw2IB16X SScAoIp3jPxnnke14gpFm0GJXA4MbyxR =DQqO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

(tho' all of this could be avoided if y'all would just compile back in -- as opposed to module -- the pciback support)
Why? What happens when you load the module?
@boot, grub-defined kernel-xen options for pci-passthrough fail, reporting @dmesg, Unknown boot option `pciback.permissive': ignoring Unknown boot option `pciback.hide=(##:##.#)(##:##.#)': ignoring to fix (fairly widely discussed in xen- and RH-lands) the pciback (CONFIG_XEN_PCIDEV_BACKEND) module must be compiled into the dom0 kernel, & the pcifront (CONFIG_XEN_PCIDEV_FRONTEND) module must be compiled into the domU kernel or, if using a single/unified kernel-xen, then both must be compiled in. and, as you can see, in release, grep PCIDEV /boot/config-2.6.25.4-2-xen CONFIG_XEN_PCIDEV_FRONTEND=y # CONFIG_XEN_PCIDEV_FE_DEBUG is not set CONFIG_XEN_PCIDEV_BACKEND=m <------ CONFIG_XEN_PCIDEV_BACKEND_VPCI=y # CONFIG_XEN_PCIDEV_BACKEND_PASS is not set # CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set # CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set # CONFIG_XEN_PCIDEV_BE_DEBUG is not set that's not the case. so as to avoid that and any add'l module-vs-compile "surprises" i'm trying to "de-modularize" xen, ------------------------------------------ [*] Privileged Guest (domain 0) <*> Backend driver support <*> Block-device backend driver <*> Block-device tap backend driver <*> Network-device backend driver [ ] Pipelined transmitter (DANGEROUS) <*> Network-device loopback driver <*> PCI-device backend driver PCI Backend Mode (Virtual PCI) ---> [*] PCI Backend Debugging <*> TPM-device backend driver <*> Block-device frontend driver <*> Network-device frontend driver <*> Network-device frontend driver acceleration for Solarflare NICs <*> User-space granted page access driver <*> Framebuffer-device frontend driver <*> Keyboard-device frontend driver [*] Xen virtual console [*] Scrub memory before freeing it to Xen [ ] Disable serial port drivers <*> Export Xen attributes in sysfs Xen version compatibility (3.0.4 and later) ---> ------------------------------------------ and also (haven't gotten there yet ...), build a dual-use kernel (Dom0 & DomU), which I think requires also, CONFIG_XEN_PRIVILEGED_GUEST=y --- # CONFIG_XEN_UNPRIVILEGED_GUEST is not set +++ CONFIG_XEN_UNPRIVILEGED_GUEST=y but 'make menuconfig' seems to not allow both. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

fyi, http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/ ... 5.3.1.1 Compile-Time Setup To use this functionality, ensure that the PCI Backend is compiled in to a privileged domain (e.g. domain 0) and that the domains which will be assigned PCI devices have the PCI Frontend compiled in. In XenLinux, the PCI Backend is available under the Xen configuration section while the PCI Frontend is under the architecture-specific "Bus Options" section. You may compile both the backend and the frontend into the same kernel; they will not affect each other. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

On Wed, May 21, 2008 at 02:38:35PM -0700, snowcrash+opensuse wrote:
fyi,
http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/ ... 5.3.1.1 Compile-Time Setup To use this functionality, ensure that the PCI Backend is compiled in to a privileged domain (e.g. domain 0) and that the domains which will be assigned PCI devices have the PCI Frontend compiled in. In XenLinux, the PCI Backend is available under the Xen configuration section while the PCI Frontend is under the architecture-specific "Bus Options" section. You may compile both the backend and the frontend into the same kernel; they will not affect each other.
If this is a problem, please file a bug and our Xen developers can either give the rationale for why it is not built in, or they can fix the kernel config. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

If this is a problem, please file a bug and our Xen developers can either give the rationale for why it is not built in, or they can fix the kernel config.
done. --> https://bugzilla.novell.com/show_bug.cgi?id=393379 thanks! -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

i've cd /usr/src/packages/RPMS/x86_64/ wget http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/x8... rpm -ivh --force kernel-source-2.6.25.4-2.x86_64.rpm checking, ls -al /usr/src/linux/arch/x86_64/defconfig.xen -rw-r--r-- 1 root root 81849 2008-05-17 12:47 /usr/src/linux/arch/x86_64/defconfig.xen is, now, "there". what's the right next step(s)? is it: ls -ld /usr/src/linux lrwxrwxrwx 1 root root 16 2008-05-20 06:20 /usr/src/linux -> linux-2.6.25.4-2/ cd /usr/src/linux cp /usr/src/linux/arch/x86_64/defconfig.xen .config make clean make menuconfig echo "xen" > extra-symbols <-- DO I STILL NEED THIS? rpmbuild -bb kernel-source.spec ? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

hi jeff, following the steps as above, @ rpmbuild -bb kernel.spec i get, error: File /usr/src/packages/SOURCES/kernel-2.6.25.42xenCUSTOM.tar.gz: No such file or directory checking, grep CUSTOM * kernel.spec:Version: 2.6.25.42xenCUSTOM kernel.spec:Source: kernel-2.6.25.42xenCUSTOM.tar.gz kernel.spec:Provides: kernel-2.6.25.4-2-xenCUSTOM kernel.spec:cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/efi/vmlinuz-2.6.25.4-2-xenCUSTOM kernel.spec:ln -s efi/vmlinuz-2.6.25.4-2-xenCUSTOM $RPM_BUILD_ROOT/boot/ kernel.spec:cp arch/powerpc/boot/$KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.25.4-2-xenCUSTOM kernel.spec:cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.25.4-2-xenCUSTOM kernel.spec:cp System.map $RPM_BUILD_ROOT/boot/System.map-2.6.25.4-2-xenCUSTOM kernel.spec:cp .config $RPM_BUILD_ROOT/boot/config-2.6.25.4-2-xenCUSTOM kernel.spec:/lib/modules/2.6.25.4-2-xenCUSTOM which is a result, i presume, of @ make menuconfig -> General Setup settings, [*] Prompt for development and/or incomplete code/drivers --> (-xenCUSTOM) Local version - append to kernel release [ ] Automatically append version information to the version string 'good practice' sez rename the kernel ... not ok to do so here? or, to be done in other fashion? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

nm on this one ... seems that zypper remove linux-kernel-headers kernel-xen kernel-source was not sufficient, as /usr/src/ was not 'cleaned', leaving references to *xenCUSTOM* in /usr/src/linux-... an additional, rm -rf /usr/src/linux* zypper install -y gcc make patch ncurses-devel before reinstalling from fresh rpm's gets me back to a clean starting point. continuing on now ... -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 snowcrash+opensuse wrote:
nm on this one ...
seems that
zypper remove linux-kernel-headers kernel-xen kernel-source
was not sufficient, as
/usr/src/
was not 'cleaned', leaving references to *xenCUSTOM* in
/usr/src/linux-...
an additional,
rm -rf /usr/src/linux* zypper install -y gcc make patch ncurses-devel
before reinstalling from fresh rpm's gets me back to a clean starting point.
continuing on now ...
This is the correct and desired behavior. Users, including myself, would be pretty angry if packages started removing files they didn't install or create! - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0ry4ACgkQLPWxlyuTD7LrhgCghM+iGdja6RnYiBGuXQmPHmez bcUAnRcz8Cb/UbK11j9bsngCkD1A/veU =BLYp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (3)
-
Greg KH
-
Jeff Mahoney
-
snowcrash+opensuse