qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] virtio-console: Add support for multiple ports for generic guest-host communication
@ 2009-10-12 11:45 Amit Shah
  2009-10-12 11:45 ` [Qemu-devel] [PATCH 1/3] qdev: add string property Amit Shah
  0 siblings, 1 reply; 4+ messages in thread
From: Amit Shah @ 2009-10-12 11:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Amit Shah

Hello,

These are the newest patches that address all the previous comments.

In particular, the problem of maintaining backward compat with old
kernel and new qemu is handled by reserving port #0 for a console
port.

The old way of invocation,

    -virtconsole ...

is still acceptable but to use multiple ports, the new invocation
method is preferred:

    -device virtio-serial-pci \
    -device virtconsole...    \
    -device virtserialport...

In case of no '-device virtconsole' specified in the new form of
invocation, an older guest kernel will assume that a virtio-console
port exists. Any writes to such a port end up being ignored.

For requirements, use-cases and some history see

    http://www.linux-kvm.org/page/VMchannel_Requirements

I've also been testing all the features that are presented here by a
small program that is to be run in the guest. It's an interactive
program, available here:

    http://fedorapeople.org/gitweb?p=amitshah/public_git/test-virtserial.git

The automated version of the program will also be put up in the same
repo.

These patches are based on top of the char patches I've sent
previously (and are in Anthony's queue).

Amit Shah (2):
  virtio-console: Add a virtio-serial bus, support for multiple ports
  virtio-console: Add a new virtserialport device for generic serial
    port support

Gerd Hoffmann (1):
  qdev: add string property.

 Makefile.target        |    2 +-
 hw/pc.c                |    9 -
 hw/ppc440_bamboo.c     |    7 -
 hw/qdev-properties.c   |   28 ++
 hw/qdev.c              |    8 +-
 hw/qdev.h              |    4 +
 hw/virtio-console.c    |  206 +++++++-------
 hw/virtio-console.h    |   19 --
 hw/virtio-pci.c        |    8 +-
 hw/virtio-serial-bus.c |  757 ++++++++++++++++++++++++++++++++++++++++++++++++
 hw/virtio-serial.h     |  220 ++++++++++++++
 hw/virtio.h            |    2 +-
 qemu-options.hx        |    6 +-
 sysemu.h               |    6 -
 vl.c                   |   65 +++--
 15 files changed, 1168 insertions(+), 179 deletions(-)
 delete mode 100644 hw/virtio-console.h
 create mode 100644 hw/virtio-serial-bus.c
 create mode 100644 hw/virtio-serial.h

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

end of thread, other threads:[~2009-10-12 11:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 11:45 [Qemu-devel] [PATCH 0/3] virtio-console: Add support for multiple ports for generic guest-host communication Amit Shah
2009-10-12 11:45 ` [Qemu-devel] [PATCH 1/3] qdev: add string property Amit Shah
2009-10-12 11:45   ` [Qemu-devel] [PATCH 2/3] virtio-console: Add a virtio-serial bus, support for multiple ports Amit Shah
2009-10-12 11:45     ` [Qemu-devel] [PATCH 3/3] virtio-console: Add a new virtserialport device for generic serial port support Amit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).