Skip to content

add kvmtool support

Gerd Hoffmann kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvmtool: initial supportMakefile src/Kconfig src/fw/paravirt.c +3 more+78 -30 replies
2/3kvmtool: allow mmio for legacy bar 0src/hw/virtio-pci.c+12 -40 replies
3/3kvmtool: support larger virtio queuessrc/hw/virtio-ring.h+1 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH seabios 0/3] add kvmtool support

Hi,

The 1.11 seabios release which is just around the corner brings serial console support to seabios. Which is useful for kvmtool too. So I decided to undust my old kvmtool support patch series and check out where we stand.

Patch #1 adds the config option, wires up everything and adds ram detection for kvmtool. Patches #2 and #3 tweak the seabios virtio drivers so they work with kvmtool.

With that in place seabios works nicely. Loads grub from hard disk, allows to edit menu entries, loads and runs the linux kernel.

But there are also some known issues:

(1) ram detection is clumpsy (see patch #1) due to kvmtool not passing ram information to the firmware (on x86, seems other platforms use the device tree for that).

(2) kvmtool virtio implementation seems to have some bugs. specifically handing over the virtio-blk devices from seabios to the linux kernel doesn't work (see patch #3).

(3) when kernels are booted via seabios+grub all the command line args kvmtool adds to the kernel command line on direct kernel boot will not be passed to the kernel. Not sure how much of a problem that is in practice, due to (2) I didn't yet manage to boot a linux guest to the login prompt.

cheers,
Gerd

Gerd Hoffmann (3):
kvmtool: initial support
kvmtool: allow mmio for legacy bar 0
kvmtool: support larger virtio queues

 Makefile             |  1 +
 src/fw/paravirt.h    |  3 +++
 src/hw/virtio-ring.h |  2 +-
 src/fw/paravirt.c    | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/hw/virtio-pci.c  | 16 ++++++++++++----
 src/post.c           |  4 +++-
 src/sercon.c         |  2 ++
 src/Kconfig          | 23 +++++++++++++++++++++--
 8 files changed, 91 insertions(+), 8 deletions(-)
Signature · 1 line
2.9.3