[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] virtio-console: Notify guest of console size re
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH 2/2] virtio-console: Notify guest of console size resize |
Date: |
Thu, 6 May 2010 02:20:06 +0530 |
From: Kusanagi Kouichi <address@hidden>
When we receive a CHR_EVENT_RESIZE notification, let the guest know of
the console size update.
Signed-off-by: Kusanagi Kouichi <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
---
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