linux-kvm: please support kexec

Bug #1799791 reported by Steve Langasek on 2018-10-24
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-kvm (Ubuntu)
Medium
Unassigned
Cosmic
Medium
Unassigned

Bug Description

linux-kvm doesn't support kexec.

Adding support for kexec would enable other interesting uses of linux-kvm, such as for a linuxboot embedded kernel in kvm.

Please enable CONFIG_KEXEC=y, CONFIG_KEXEC_FILE=y in linux-kvm.

Changed in linux-kvm (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in linux-kvm (Ubuntu Bionic):
status: New → Triaged
importance: Undecided → Medium
Changed in linux-kvm (Ubuntu Cosmic):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux-kvm (Ubuntu Bionic):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux-kvm (Ubuntu Cosmic):
status: Triaged → In Progress
Changed in linux-kvm (Ubuntu Bionic):
status: Triaged → In Progress
no longer affects: linux-kvm (Ubuntu Bionic)
Joseph Salisbury (jsalisbury) wrote :

I built a test kernel from the linux-kvm repo. This repo already has those two options enabled:

https://paste.ubuntu.com/p/b89KnWhdqq/

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1799791

Ryan Harper (raharper) wrote :

The virtio configuration in this new kernel build changed, can it get reverted to what the -kvm kernel currently has?

% grep VIRTIO /boot/config-*kvm
CONFIG_BLK_MQ_VIRTIO=y
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_RPMSG_VIRTIO is not set
CONFIG_SCSI_VIRTIO=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_BLK=y
# CONFIG_VIRTIO_BLK_SCSI is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_VIRTIO_INPUT is not set
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_LEGACY=y

Joseph Salisbury (jsalisbury) wrote :

Sure, I'll take a look and build a new kernel.

Joseph Salisbury (jsalisbury) wrote :

I posted another test kernel built using the linux-kvm tree, with no changes made.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1799791

This is the output from the default config files in this repo:

https://paste.ubuntu.com/p/79TsTgpXWt/

Ryan Harper (raharper) wrote :

Could you re-apply the KEXEC config changes to the linux-kvm tree build?

Joseph Salisbury (jsalisbury) wrote :

The CONFIG_KEXEC and CONFIG_KEXEC_FILE config options are already enabled for the linux-kvm repo. Here is a grep of the config directory:

https://paste.ubuntu.com/p/w84BrTZKVc/

This tree was cloned from:
lp:~canonical-kernel/ubuntu/+source/linux-kvm/+git/cosmic

Do you see these options enabled on your test environment after installing that kernel?

Changed in linux-kvm (Ubuntu Cosmic):
status: In Progress → Confirmed
Changed in linux-kvm (Ubuntu):
status: In Progress → Confirmed
assignee: Joseph Salisbury (jsalisbury) → nobody
Changed in linux-kvm (Ubuntu Cosmic):
assignee: Joseph Salisbury (jsalisbury) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers