public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH seabios 0/3] add kvmtool support
@ 2017-11-02 15:50 Gerd Hoffmann
  2017-11-02 15:50 ` [PATCH seabios 1/3] kvmtool: initial support Gerd Hoffmann
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2017-11-02 15:50 UTC (permalink / raw)
  To: seabios, kvm; +Cc: Gerd Hoffmann

  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(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-06 14:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-02 15:50 [PATCH seabios 0/3] add kvmtool support Gerd Hoffmann
2017-11-02 15:50 ` [PATCH seabios 1/3] kvmtool: initial support Gerd Hoffmann
2017-11-02 15:50 ` [PATCH seabios 2/3] kvmtool: allow mmio for legacy bar 0 Gerd Hoffmann
2017-11-02 15:50 ` [PATCH seabios 3/3] kvmtool: support larger virtio queues Gerd Hoffmann
2017-11-03 13:49   ` Jean-Philippe Brucker
2017-11-03 15:34     ` Gerd Hoffmann
2017-11-03 19:42       ` Jean-Philippe Brucker
2017-11-06 14:54         ` Jean-Philippe Brucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox