Message ID | 1516064279-14816-7-git-send-email-minyard@acm.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A383F601E7 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 01:06:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93D6226E51 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 01:06:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8827227F7F; Tue, 16 Jan 2018 01:06:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1801B26E51 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 01:06:30 +0000 (UTC) Received: from localhost ([::1]:49903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1ebFht-00056H-Vi for patchwork-qemu-devel@patchwork.kernel.org; Mon, 15 Jan 2018 20:06:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1ebFZv-0007sW-E2 for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1ebFZu-0000mg-Hz for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:15 -0500 Received: from mail-ot0-x244.google.com ([2607:f8b0:4003:c0f::244]:36513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <tcminyard@gmail.com>) id 1ebFZu-0000mE-CP for qemu-devel@nongnu.org; Mon, 15 Jan 2018 19:58:14 -0500 Received: by mail-ot0-x244.google.com with SMTP id w4so12197186otg.3 for <qemu-devel@nongnu.org>; Mon, 15 Jan 2018 16:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=0F2xaRV+PnCJvXVpI6Att709KDACjJNoF2TNpF2bBMQ=; b=ZAH4YVsk/Nj//7iNwJ4wP5UGjVYx9S3M/UlQy+hdKKoinZ3tx2193K6DoQhv5d7Yuq U+ThGo/B1S1SN6SXR1vOP/CevyPub0opzFH3BSeFrWm3xgBOISHr7nJMGpw7V60MQG0P 9CFs+KLyD7icj3wAaOo64eZ+ulQihFvsbT0Fk4DWKwBF2lKrKEeUF66P0CPCiR2lw83e kFq4WmX5WcgMblLBqawJYS1I9/cg/1Ktepkdu6TRzww/zUwrxZJWu29qjEyvBnxqlbTy KAECBIQ9q+bakbN6evIeOQUV3waFxu25yPDod4P8Capic62MdZR94RPs9Q6MnS9odXfd KpFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=0F2xaRV+PnCJvXVpI6Att709KDACjJNoF2TNpF2bBMQ=; b=PCsMd56ft3c63SAREDtiOKrWS1leoj5qusHLW83cxyonm4cTGsFTvla90kqA998Dc8 pUNVQ9ELRwEVjI1lM5oSSn0PLh22Vc4JI5/0naf8r9HFecp4/ZYLrfKhjo8XGFEa4Qxz 7ivgYWqCWoag4yOk2rHmBHAoK4D62TdUY+GHXD35bJTQ9/jdraOf0SaQjkLbdcZt3wfp bXiGITC2Ig/Z8vJaHqwvipIvfiTGYUdXehtz1xArnFtBYADaptG8h+Ejethrw5HG3VYt ozfUfTduGo/JhQTvLuhpguRw9YnXOiSTIQm8eUXNck0j7EYoF/RNlRm2df0pg2YNUMBF 6Rhw== X-Gm-Message-State: AKwxytcEGbE1eaQ4pu4I9xKl3j68toQ83u18GExr8EAmiUJSabcJlynw ClvyXPBH5Mq9taVYmerOaw== X-Google-Smtp-Source: ACJfBov10iGzfqqaIIRLgIYHfu2ORYeyfhLUJSTmIKTSwuFG1REU1fOH9cEenmS2gqhzFB1m2Rl8fA== X-Received: by 10.157.44.101 with SMTP id f92mr16006924otb.205.1516064293594; Mon, 15 Jan 2018 16:58:13 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id j16sm483742oth.42.2018.01.15.16.58.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 16:58:12 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 6D43AB9B; Mon, 15 Jan 2018 18:58:07 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 309AC300968; Mon, 15 Jan 2018 18:58:04 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Mon, 15 Jan 2018 18:57:58 -0600 Message-Id: <1516064279-14816-7-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516064279-14816-1-git-send-email-minyard@acm.org> References: <1516064279-14816-1-git-send-email-minyard@acm.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::244 Subject: [Qemu-devel] [PATCH 6/7] ipmi: disable IRQ and ATN on an external disconnect X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@kaod.org>, Corey Minyard <cminyard@mvista.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c index abab3bb..58ade79 100644 --- a/hw/ipmi/ipmi_bmc_extern.c +++ b/hw/ipmi/ipmi_bmc_extern.c @@ -424,6 +424,11 @@ static void chr_event(void *opaque, int event) return; } ibe->connected = false; + /* + * Don't hang the OS trying to handle the ATN bit, other end will + * resend on a reconnect. + */ + k->set_atn(s, 0, 0); if (ibe->waiting_rsp) { ibe->waiting_rsp = false; ibe->inbuf[1] = ibe->outbuf[1] | 0x04;