Mailinglist Archive: opensuse-factory (1324 mails)

< Previous Next >
[opensuse-factory] Use pvops-enabled kernel for Xen (fate#315712)
Hi,

you have probably noticed that the SUSE virtualization developers have
been working on porting features from the kernel-source patches.xen
series to the upstream Xen implementation. This mostly works nowadays,
so at the SUSE Labs Conference last month, we agreed to finally get rid
of kernel-xen in Factory and instead use kernel-default with CONFIG_XEN
(the mainline option) enabled. I prepared a branch on github

https://github.com/michal42/kernel-source stable-noxen

which does exactly this. Test packages are building here:

https://build.opensuse.org/project/show/home:michal-m:kernel-stable-noxen

The kernel boots and works on my machine, both on bare metal and under
the hypervisor (*), but there is some integration work to be done before
it can be submitted to Factory:

- The installer needs to cope with kernel-xen not available and choose
kernel-default. Something like the attached patch should fix it
(untested).
- perl-Bootloader: Right now, it creates a Xen multiboot entry if the
kernel is named -xen, otherwise it creates a regular linux entry.
Create both entries if the Xen hypervisor is installed?
- kernel-xen needs to be dropped from the patterns, but that's trivial
- We have been building a kernel-obs-build-xen package for the OBS
workers, which now disappears.

Of course, there is lot more work to be done in making the xen -> pvops
transition seamless in all corner cases. But that should not be a
barrier to pushing the kernel to factory.

(*) With the -default kernel, I do not see the kernel messages on the
serial console with

kernel /boot/xen.gz com1=115200 console=com1,vga
module /boot/vmlinuz-4.2.2-0.g980fcdb-default ... console=tty0
console=ttyS0,115200

while I see them with kernel-xen.

Michal
From 557411efbc98aa36157a0d63d72452a04f783553 Mon Sep 17 00:00:00 2001
From: Michal Marek <mmarek@xxxxxxxx>
Date: Mon, 21 Sep 2015 16:12:25 +0200
Subject: [PATCH] Kernel: Fall back to kernel-default on Xen

If kernel-xen is not available, assume that kernel-default is able to
run under Xen.
---
library/system/src/modules/Kernel.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/library/system/src/modules/Kernel.rb
b/library/system/src/modules/Kernel.rb
index 94c9f9b57717..b4b2f54d8a19 100644
--- a/library/system/src/modules/Kernel.rb
+++ b/library/system/src/modules/Kernel.rb
@@ -352,7 +352,12 @@ module Yast
@kernel_packages = ["kernel-um"]
elsif Arch.is_xen
# kernel-xen contains PAE kernel (since oS11.0)
- @kernel_packages = ["kernel-xen"]
+ if Pkg.PkgAvailable("kernel-xen")
+ @kernel_packages = ["kernel-xen"]
+ else
+ # kernel-xen got replaced by pvops-xen enabled kernel-default
+ @kernel_packages = ["kernel-default"]
+ end
elsif Arch.i386
# get flags from WFM /proc/cpuinfo (for pae and tsc tests below)

--
2.1.4

< Previous Next >
This Thread