From patchwork Thu Sep 16 19:21:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Volker_R=C3=BCmelin?= X-Patchwork-Id: 1529017 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H9Rmz70qLz9sPf for ; Fri, 17 Sep 2021 05:22:42 +1000 (AEST) Received: from localhost ([::1]:41494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQwxy-0005yy-Sf for incoming@patchwork.ozlabs.org; Thu, 16 Sep 2021 15:22:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQwxd-0005yb-RK for qemu-devel@nongnu.org; Thu, 16 Sep 2021 15:22:17 -0400 Received: from mailout07.t-online.de ([194.25.134.83]:36862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQwxc-0005Qz-36 for qemu-devel@nongnu.org; Thu, 16 Sep 2021 15:22:17 -0400 Received: from fwd88.dcpf.telekom.de (fwd88.aul.t-online.de [10.223.144.114]) by mailout07.t-online.de (Postfix) with SMTP id C8F48FE81; Thu, 16 Sep 2021 21:21:17 +0200 (CEST) Received: from [192.168.211.200] ([79.208.16.31]) by fwd88.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1mQwwd-19b2Vl0; Thu, 16 Sep 2021 21:21:16 +0200 From: =?utf-8?q?Volker_R=C3=BCmelin?= Subject: [PATCH v2 0/4] ui/console: chardev backend improvements To: Gerd Hoffmann Message-ID: Date: Thu, 16 Sep 2021 21:21:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Language: en-US X-TOI-EXPURGATEID: 150726::1631820076-0000F120-1D842ABE/0/0 CLEAN NORMAL X-TOI-MSGID: 892ef5c4-9c94-4174-854e-8271333258ae Received-SPF: none client-ip=194.25.134.83; envelope-from=vr_qemu@t-online.de; helo=mailout07.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" A few things I learnt while writing a fix for a chardev bug in the GTK backend. v2: Patch "ui/console: replace QEMUFIFO with Fifo8". Renamed the variable free to num_free to help reading the code. (Marc-André) New patch "ui/console: prevent use after free error". ui/gtk.c needs a similar patch. I'll take care of it. Volker Rümelin (4):   ui/console: replace QEMUFIFO with Fifo8   ui/console: replace kbd_timer with chr_accept_input callback   ui/console: remove chardev frontend connected test   ui/console: prevent use after free error  ui/console.c | 110 ++++++++++++++-------------------------------------  1 file changed, 30 insertions(+), 80 deletions(-)