Message ID | 20210507180953.8530-2-vr_qemu@t-online.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=65fW=KC=nongnu.org=qemu-devel-bounces+qemu-devel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FE1EC433B4 for <qemu-devel@archiver.kernel.org>; Fri, 7 May 2021 18:28:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 930C5600D1 for <qemu-devel@archiver.kernel.org>; Fri, 7 May 2021 18:28:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 930C5600D1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=t-online.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org>) id 1lf5D4-0005AV-2H for qemu-devel@archiver.kernel.org; Fri, 07 May 2021 14:28:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <volker.ruemelin@t-online.de>) id 1lf51B-0000b2-PC for qemu-devel@nongnu.org; Fri, 07 May 2021 14:16:05 -0400 Received: from mailout07.t-online.de ([194.25.134.83]:59592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <volker.ruemelin@t-online.de>) id 1lf4vJ-0001Tp-K2 for qemu-devel@nongnu.org; Fri, 07 May 2021 14:10:03 -0400 Received: from fwd31.aul.t-online.de (fwd31.aul.t-online.de [172.20.26.136]) by mailout07.t-online.de (Postfix) with SMTP id 091D55E43D; Fri, 7 May 2021 20:10:00 +0200 (CEST) Received: from linpower.localnet (r96bMOZdYh-IEO0vmUANlP1hbLhibwiRumDzALFwqHabGnBB+aKb+GkvQtFT8JNZYX@[46.86.52.8]) by fwd31.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1lf4vE-0Ii9L60; Fri, 7 May 2021 20:09:56 +0200 Received: by linpower.localnet (Postfix, from userid 1000) id 604092006E6; Fri, 7 May 2021 20:09:53 +0200 (CEST) From: =?utf-8?q?Volker_R=C3=BCmelin?= <vr_qemu@t-online.de> To: "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@redhat.com> Subject: [PATCH v2 02/11] ps2: don't raise an interrupt if queue is full Date: Fri, 7 May 2021 20:09:44 +0200 Message-Id: <20210507180953.8530-2-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <a898b0d5-7086-9699-ae8b-9524ad319b01@t-online.de> References: <a898b0d5-7086-9699-ae8b-9524ad319b01@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ID: r96bMOZdYh-IEO0vmUANlP1hbLhibwiRumDzALFwqHabGnBB+aKb+GkvQtFT8JNZYX X-TOI-EXPURGATEID: 150726::1620410996-000102A7-7669BDC4/0/0 CLEAN NORMAL X-TOI-MSGID: 4b1f7d64-fcd8-44c0-895a-e351692ced7a Received-SPF: none client-ip=194.25.134.83; envelope-from=volker.ruemelin@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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> |
Series |
PS/2 controller related fixes
|
expand
|
diff --git a/hw/input/ps2.c b/hw/input/ps2.c index d9f79e8260..55a81a0c51 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -212,6 +212,10 @@ void ps2_raise_irq(PS2State *s) void ps2_queue(PS2State *s, int b) { + if (PS2_QUEUE_SIZE - s->queue.count < 1) { + return; + } + ps2_queue_noirq(s, b); s->update_irq(s->update_arg, 1); }