From: Amit Shah <amit.shah@redhat.com>
To: qemu-devel@nongnu.org
Cc: Amit Shah <amit.shah@redhat.com>
Subject: [Qemu-devel] [PATCH 0/3] virtio-console: Add support for multiple ports for generic guest-host communication
Date: Mon, 12 Oct 2009 17:15:46 +0530 [thread overview]
Message-ID: <1255347949-32272-1-git-send-email-amit.shah@redhat.com> (raw)
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
next reply other threads:[~2009-10-12 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 11:45 Amit Shah [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1255347949-32272-1-git-send-email-amit.shah@redhat.com \
--to=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).