From: Amit Shah <amit.shah@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Amit Shah <amit.shah@redhat.com>,
Kusanagi Kouichi <slash@ac.auone-net.jp>,
qemu list <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH 2/2] virtio-console: Notify guest of console size resize
Date: Thu, 6 May 2010 02:20:06 +0530 [thread overview]
Message-ID: <1273092606-23099-2-git-send-email-amit.shah@redhat.com> (raw)
In-Reply-To: <1273092606-23099-1-git-send-email-amit.shah@redhat.com>
From: Kusanagi Kouichi <slash@ac.auone-net.jp>
When we receive a CHR_EVENT_RESIZE notification, let the guest know of
the console size update.
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
hw/virtio-console.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/virtio-console.c b/hw/virtio-console.c
index caea11f..58246d1 100644
--- a/hw/virtio-console.c
+++ b/hw/virtio-console.c
@@ -55,6 +55,9 @@ static void chr_event(void *opaque, int event)
case CHR_EVENT_CLOSED:
virtio_serial_close(&vcon->port);
break;
+ case CHR_EVENT_RESIZE:
+ virtio_serial_resize_console(&vcon->port, vcon->chr->rows, vcon->chr->cols);
+ break;
}
}
--
1.6.2.5
prev parent reply other threads:[~2010-05-05 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 20:50 [Qemu-devel] [PATCH 1/2] char: Handle resize Amit Shah
2010-05-05 20:50 ` Amit Shah [this message]
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=1273092606-23099-2-git-send-email-amit.shah@redhat.com \
--to=amit.shah@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--cc=slash@ac.auone-net.jp \
/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).