From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJb08-00060K-PH for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:27:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJb08-000602-8R for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:27:00 -0400 Received: from [199.232.76.173] (port=37618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJb08-0005zu-5l for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:27:00 -0400 Received: from e4.ny.us.ibm.com ([32.97.182.144]:41329) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJb08-0005ex-5A for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:27:00 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m6HLK7NG020467 for ; Thu, 17 Jul 2008 17:20:07 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6HLK7pG221694 for ; Thu, 17 Jul 2008 17:20:07 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m6HLK7kS024760 for ; Thu, 17 Jul 2008 17:20:07 -0400 From: Anthony Liguori Date: Thu, 17 Jul 2008 16:19:35 -0500 Message-Id: <1216329580-20804-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 1/6] kvm: qemu: fix screendump with multiple consoles Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori From: Avi Kivity pretend to be the active console while a screendump takes place. Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori diff --git a/console.c b/console.c index a1bc769..061135f 100644 --- a/console.c +++ b/console.c @@ -167,10 +167,15 @@ void vga_hw_invalidate(void) void vga_hw_screen_dump(const char *filename) { + TextConsole *previous_active_console; + + previous_active_console = active_console; + active_console = consoles[0]; /* There is currently no was of specifying which screen we want to dump, so always dump the dirst one. */ if (consoles[0]->hw_screen_dump) consoles[0]->hw_screen_dump(consoles[0]->hw, filename); + active_console = previous_active_console; } void vga_hw_text_update(console_ch_t *chardata)