From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9lZY-0007vZ-G2 for qemu-devel@nongnu.org; Wed, 05 May 2010 16:52:00 -0400 Received: from [140.186.70.92] (port=50914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9lZW-0007uH-P7 for qemu-devel@nongnu.org; Wed, 05 May 2010 16:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9lZS-0001ye-Os for qemu-devel@nongnu.org; Wed, 05 May 2010 16:51:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26036) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9lZS-0001yT-G7 for qemu-devel@nongnu.org; Wed, 05 May 2010 16:51:54 -0400 From: Amit Shah Date: Thu, 6 May 2010 02:20:06 +0530 Message-Id: <1273092606-23099-2-git-send-email-amit.shah@redhat.com> In-Reply-To: <1273092606-23099-1-git-send-email-amit.shah@redhat.com> References: <1273092606-23099-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] virtio-console: Notify guest of console size resize List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Amit Shah , Kusanagi Kouichi , qemu list From: Kusanagi Kouichi When we receive a CHR_EVENT_RESIZE notification, let the guest know of the console size update. Signed-off-by: Kusanagi Kouichi Signed-off-by: Amit Shah --- 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