From patchwork Thu Dec 7 21:30:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121081 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8889766qgn; Thu, 7 Dec 2017 13:35:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMbVW35KAVFeYb4MF0lvFTUuQpH/hTZwwx8xFDhoX+PAB47bObmq+Huiot/HVdqwjkYRDPzM X-Received: by 10.37.50.14 with SMTP id y14mr17953809yby.485.1512682543652; Thu, 07 Dec 2017 13:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682543; cv=none; d=google.com; s=arc-20160816; b=KY7lW1DyMzz6DVqkwVruDE8FrVdGljDcn0uN2aUmMYJvNgNE3tYVXtda87tYB/zIE+ CIP4Y9heYiGZqw3fxkGOYFxVnObcanPtqlXjn3FC4hdpJDQ0Ot+VyuaOlLVX4VRlAevg tsZ9To57hV6cYUXhndJPhYL2LgL3PGNrKW5si5SdlqkTjqjjMDXT94d8d//YclGJW0hX zprRPm43HZBV9STazZ0Mf4od4uniYMAGbERQ2gJElruzmMFPjNqCvuqyEZlkHGuFKEtB ERxS7wCoxkKJDPAiL+cekNSBEGyzvvgacirZ3RR1ntVNxKegvDv0UoYciBd2PvwZQsEN JNAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=jmzH2z0CXlbfvKwGIIfCT7OTxRnoGQ69+jr/Ppt8TGpQfe9rTjhvHnUA5LQyQmr1d+ a0Sui3b0TrQcq41nmrBDzJ1mptBh7XqnK1PcUNpLISuJHsJLHJCWDCvWjj+Q+j/G4jhd Ie4tWHkI8g7lqyVQyYAeqFiqrmI7ZECTmX9zksvNVGbH0z0VFd8luGpofmnsBmPoYxzH bd4X8+07wAxcDC9U4+mCta7P4PI8lMEJtbtNw1UuqcrzOmGkN7gtZW0WoeQz81QLU+VH 2N6hF2/i289CYQ9qvmLQpjWYEF0F+/GIFJ8xwo7GhI8SKk4gdXnFwMif33qyO8XForYb c4fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JM6cl0Ty; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o73si1366116ywd.318.2017.12.07.13.35.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:35:43 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JM6cl0Ty; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3pX-0001aa-50 for patch@linaro.org; Thu, 07 Dec 2017 16:35:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kS-0005YV-Ob for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kO-0001uV-Eb for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:27 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:37619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kO-0001tP-85 for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:24 -0500 Received: by mail-pf0-x243.google.com with SMTP id n6so5653091pfa.4 for ; Thu, 07 Dec 2017 13:30:24 -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 :mime-version:content-transfer-encoding; bh=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=JM6cl0TyX0niGQoWXZaEibpniA5XEaKtzdjXv1E+cXKQPvy7YAL/oDwH6rvJISKvm5 NeQ+wFIwdWLBZCvxLS9+q5kscwyad9L8ZLMKuaKbHR1/rDl/LLWb4ckeLQdL1iPAcl8I X2RG2AeFh4nJx8R9kT/PWGRD6H7aFFxyhrIGaV5pQnF942zyC0V3Rgw86vRUqzLQ3QEi ZKGty75rslsOo/O08VVaoTh4rRvRTClgHFlTlIwW0t0cgRoDthUDwy836YtI/pY1nHNK 60Q3I/gE+IHIIQc3T3wBjq3Amopgf9lve9iVC0A5cG7/Gs+sI8Zy0nOv+f5lrn6FEbZ5 /LYw== 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:mime-version:content-transfer-encoding; bh=WTeBqdQtfRYcWqJwQfs3vBs8+Sgu29U16AqBLX3IgL8=; b=U7oLmWVdjJkUTFZN8DxqIUrgpOVHDaxeGSeN06zEG2EWjmG7LDtZ/2q2Yh2UBWaaXs lxMZs9xmCbi3AEfLVoMAQgmNaGIeFRkRH43Khe7bWXbH6rMM28q9AHEVjV1mFNGtMOsp cqilOmkzaiaxKtIoTMX/J3jWQyHWMhCFTpkJuni4qfMT9wdtNnKKVw+GEOHlaLSqX45O KoQ3g5shZaksRgEEmzyjYPIsKk1TVnxQca4q14tWpyc4wFFE128gBoEmbiFfD1WIQMVL zeGIH/o6TUPaXu/2xIiQMJn6wLv3CPsyq44QYRnW1iPDLK8/BvG2VK30y6eyzG8xUiHI gVSw== X-Gm-Message-State: AJaThX6ORSOrNZHROCiMJYT4mu8Mb40eFGrNvsl+6tw0VGbYYSh/8rNk oWkNO6osaLfJ6k0HeBaSbA== X-Received: by 10.84.133.111 with SMTP id 102mr27485178plf.136.1512682223080; Thu, 07 Dec 2017 13:30:23 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id k80sm12678231pfh.30.2017.12.07.13.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:22 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 09DAB96; Thu, 7 Dec 2017 15:30:19 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id A787430007F; Thu, 7 Dec 2017 15:30:17 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:06 -0600 Message-Id: <1512682213-4354-2-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-1-git-send-email-minyard@acm.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::243 Subject: [Qemu-devel] [PATCH 1/8] ipmi: Fix SEL get/set time commands X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard The minimum message size was on the wrong commands, for getting the time it's zero and for setting the time it's 6. Signed-off-by: Corey Minyard Reviewed-by: Cédric Le Goater --- hw/ipmi/ipmi_bmc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Reviewed-by: Marc-André Lureau diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index 277c28c..cc068f2 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -1802,8 +1802,8 @@ static const IPMICmdHandler storage_cmds[] = { [IPMI_CMD_GET_SEL_ENTRY] = { get_sel_entry, 8 }, [IPMI_CMD_ADD_SEL_ENTRY] = { add_sel_entry, 18 }, [IPMI_CMD_CLEAR_SEL] = { clear_sel, 8 }, - [IPMI_CMD_GET_SEL_TIME] = { get_sel_time, 6 }, - [IPMI_CMD_SET_SEL_TIME] = { set_sel_time }, + [IPMI_CMD_GET_SEL_TIME] = { get_sel_time }, + [IPMI_CMD_SET_SEL_TIME] = { set_sel_time, 6 }, }; static const IPMINetfn storage_netfn = { From patchwork Thu Dec 7 21:30:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121080 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8887513qgn; Thu, 7 Dec 2017 13:33:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMamPZOEZGGiMMVXkpHjdQNTbdhUDDbVgER15nqsdbwO73zhO5dUvr6h0ubFHL39WBpIF9d+ X-Received: by 10.129.101.138 with SMTP id z132mr19055011ywb.43.1512682408598; Thu, 07 Dec 2017 13:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682408; cv=none; d=google.com; s=arc-20160816; b=u3j5dIwxwjMHk77ymXgz+xbBKQ879JLizfRhOptEj/V+erv6o8Ya96i61m9+/tQTpt 9ofvaj/z7eakvra4+qK8QkSUkqtseNQ+wOlHsrGPrBvYeYYlskKcl+g7GTc3zxEQtkn2 JjzS7Zl3aCpzQsdpE7MoTDsIoEr6ZPLrJ9P7SMmmSNrFtl16oKUJyNaK9xW9Bc0hsp52 G225llykCayX9e2CKXQHekaO9POUrlt+LnLFWpuvz7xP6B5+iPIv291WvLNonjNNOCR8 Fl3BdC+19rmHx0Mf9PK3y6tssdFplkU/SwzIuX0XIFMC9rtd2V16fQNwhWniIJql7FUc JR/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=xEV6SmV/vklWlR0FbWcQCRcVYfv2IMVPXqrDvll5yxI=; b=q3TtOI5kLa0ceVfLj2x0ikL3H3la6/C/wp8cLDhhk6NCy0j8Xp8hX5PY3ejNSq8qYk hK+Mv2vejEnmJvS8r8urK1yS0JZtQiHTFuiw7thDIdcuQk0BPF8dNRiI7BfnxUAFWNhw dlNrCrTSdRXrCtFfW83dTUIUWJZ2w/znYbAxKZ5uT/QGGcPWtI7ktJXfVl19Dz26inDh 4ZEE7wbS3YOXVaUqkUSVRN8ecxQlE/fYXt0+Pzuwzfb15saJRdpVnZm0xo1NGXCElj2R xRXZ0pG3e2i4xhK2rOfb6RYclDN2axOYh5V6XtM7RiK8j9CeKLW+5RCnV+Gzer0C4BkQ mEMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UXUEolZn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 190si1311918ybi.585.2017.12.07.13.33.28 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UXUEolZn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3nM-0006hn-3L for patch@linaro.org; Thu, 07 Dec 2017 16:33:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kS-0005YW-OZ for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kQ-0001w4-IM for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:27 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:44678) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kP-0001vK-TA for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:26 -0500 Received: by mail-pg0-x243.google.com with SMTP id j9so5352150pgc.11 for ; Thu, 07 Dec 2017 13:30:25 -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 :mime-version:content-transfer-encoding; bh=xEV6SmV/vklWlR0FbWcQCRcVYfv2IMVPXqrDvll5yxI=; b=UXUEolZncxDn0BUGaWiGJEazVdhyzLRRERMw/C1HqucXd3LFJinv9N2+aPmO+NhEBe 6gtK0Gr183CY0WywSKh8IgU0gpi92zZSbkf567PDKQEavOwph7pM4uN1UGVICXUyDlZ4 9wIDtXxOUoaClfkUyFtQgyHmPZ5MoxwByOBvNBos1a+PDVwLnWuk16nz03yhypXwDgOU 1ZNi9lPOr5PVo8SPDdwwQLEt27MuXiNu6h5GLwpH1JQdMeCzeN5XAuAtsH0O/xT9Pw4I fptxwWLKmC2Ac3mYgY/ZQ0UK8TrsU6U83KQD/cqQDnyrUq1pTLTgZCuI9OznwtKqHXgI +KkQ== 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:mime-version:content-transfer-encoding; bh=xEV6SmV/vklWlR0FbWcQCRcVYfv2IMVPXqrDvll5yxI=; b=LxBa8Dpbt2JCJpQyQkwDKad/xr0k7AZmwjPHdWgs7j3ZZu1+w09JBSPifIZewSJFjH aYAThEyrBRxPnrKI2xOX9emG9nLH4Ptdv6IMCRCWBc0YcnoOupQEZHopVGMHJ3w22j7q 4NxygBaZBT3RHoeQvPmHlkeoMbuShjO6Gm7IkLuJkGiI+apvDaqx9YGt/PC1dZgBwxPt PSPzabhhk4/tMN9lJhnaZm9gXv6haXt7UTZUee91YiprJ+QuOOe2GtYP8uria/lNg9C0 ypMqLqlxQjpXW9DlPKkGefrMBdpz37NmsZ69Uw+e+EgJ3lUfaoZ5UDDiPW1eU0Q5Y5JC OMZA== X-Gm-Message-State: AJaThX5nQXTAkFBLhHDGiQw7026DUhIxGxOZ1mK4zz4e+jN4XHgzLcas A0LX1r050I/hZZouezJZVD4NJp0= X-Received: by 10.99.121.4 with SMTP id u4mr27365483pgc.235.1512682224805; Thu, 07 Dec 2017 13:30:24 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id o184sm9349744pga.3.2017.12.07.13.30.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:23 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id A7F42B76; Thu, 7 Dec 2017 15:30:20 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 89B71302366; Thu, 7 Dec 2017 15:30:17 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:07 -0600 Message-Id: <1512682213-4354-3-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-1-git-send-email-minyard@acm.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH 2/8] ipmi: Don't set the timestamp on add events that don't have it X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard According to the spec, from section "32.3 OEM SEL Record - Type E0h-FFh", event types from 0x0e to 0xff do not have a timestamp. So don't set it when adding those types. This required putting the timestamp in a temporary buffer, since it's still required to set the last addition time. Signed-off-by: Corey Minyard Reviewed-by: Cédric Le Goater --- hw/ipmi/ipmi_bmc_sim.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index cc068f2..a0bbfd5 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -443,16 +443,21 @@ static void sel_inc_reservation(IPMISel *sel) /* Returns 1 if the SEL is full and can't hold the event. */ static int sel_add_event(IPMIBmcSim *ibs, uint8_t *event) { + uint8_t ts[4]; + event[0] = 0xff; event[1] = 0xff; - set_timestamp(ibs, event + 3); + set_timestamp(ibs, ts); + if (event[2] < 0xe0) { /* Don't set timestamps for type 0xe0-0xff. */ + memcpy(event + 3, ts, 4); + } if (ibs->sel.next_free == MAX_SEL_SIZE) { ibs->sel.overflow = 1; return 1; } event[0] = ibs->sel.next_free & 0xff; event[1] = (ibs->sel.next_free >> 8) & 0xff; - memcpy(ibs->sel.last_addition, event + 3, 4); + memcpy(ibs->sel.last_addition, ts, 4); memcpy(ibs->sel.sel[ibs->sel.next_free], event, 16); ibs->sel.next_free++; sel_inc_reservation(&ibs->sel); From patchwork Thu Dec 7 21:30:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121078 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8884882qgn; Thu, 7 Dec 2017 13:31:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMYY4/zHBj+ywzBhLZ4mhLQFuMoobYbrYI0cbDWKxv9zvRs+W7ngLZEeqWX1GOzJ9JvUcFia X-Received: by 10.13.242.196 with SMTP id b187mr19068688ywf.16.1512682262690; Thu, 07 Dec 2017 13:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682262; cv=none; d=google.com; s=arc-20160816; b=CSmnsFp/+Z7pYok2dMoPmhryURC9DRfYZQDzccj+7b2QY7S2w+g+obW5vGJvKFWUDe chUTDSaTy1LgDoIyJ2ddgHzZJ2Acxu8XqmM5tjgHHRJc5BLZNbalJC2C8zNFhiZ8waRN a0F30AznDpxzX+FbseJYbETYcjaa2OqS5Aq4XLmrOniTQnQvRbtVffbtg9wbZR9XzsPT SzdAyIT3qYJ4dsb6HaQzNGCYSG+KO1j5S1jnDyicdkLBI3KbK2e7vZHImX65cm2WGF2B zUonr14Mz1iiZWtPHUzDNHASeBlTnHJmcDkd62zKnknKzYLrOkbY0ISLJZCKO46d3DPB /6DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=789edMDauOWZHbsNILLacYVL9cPRbrYiExCSkLdLCNY=; b=mpJUN4qmKBuzMrzXwDjVb+CE4+GwBbZ4sr0SE+MvvvMvMSE2nLIUcdgJHJ0PdNmeVt 2DmGeK938rzqEiWCgCPpkIFDzmM7fiBH2dJGuuZ6L58s1EMdCBG8+cwQNxmWV0g6pO3L Lk3g/sFAFV3KC0HJnwheCfZHkk7JRig4OTULDHjhjUqdYuyMZMTkqKpmTW+ZwJpGnhV3 JAv8iayZHq0tpvhOhWlpZU4/ZLDJCbpHbplk29UN1Prk+rqMM4SLlDhnnv9vi1IBp7WF MLIDI6ab6AsRni2c1tzONlM0nG5I0EZwDmYcP9+KLmM4Bo/iwzwqKa7rm7uxewfqZ/vp zTHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HwPT+Oth; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d71si1242790ybf.763.2017.12.07.13.31.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HwPT+Oth; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3l0-0005c0-3P for patch@linaro.org; Thu, 07 Dec 2017 16:31:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kU-0005ZW-PL for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kT-0001yf-Ol for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:30 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:40948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kT-0001xq-GD for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:29 -0500 Received: by mail-pf0-x241.google.com with SMTP id v26so5642460pfl.7 for ; Thu, 07 Dec 2017 13:30:29 -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 :mime-version:content-transfer-encoding; bh=789edMDauOWZHbsNILLacYVL9cPRbrYiExCSkLdLCNY=; b=HwPT+OthMbjNo3511agb2NJ/abeg2ChdcBgJsAWSEHFekJZlGat8+2+7xA4zdx5tK1 13U7EPC1ovuEdz6DnQhQfc4vUvixRBQrlazqIxI5NZieDWAsQLXM+nPdszDGHzKgEmdG bRoUkspIhABRZUw67OiFx5huLhG+oY1yijU6NYWyyuTBP08anF471vut4UwxUM9SnB+p 7czJeZwbfbYUIdQbElGaHL5bruuYBMMGCt1PU3dQrNJxtmNhnnokLUTuzsEohzkzxhwO IaOtKk5GdyXKVnbD2c0NpGLprkU3AsQiPAbREzyg/uZkx+Az4htVjg2Me6KJKmA2IEpr xwqA== 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:mime-version:content-transfer-encoding; bh=789edMDauOWZHbsNILLacYVL9cPRbrYiExCSkLdLCNY=; b=Vu8QqcZTb3RbXB4IEjkxZaWl4JnrEwrc4iUm7deA70AGK632O1y7iqbL290Ro/ZfnQ nyw4qcbVQZnsDsuPUaNFjSLweqvMHzuiu6kX+HyK5Y+iLo4iHe+fWhKOFFQ3pNqejJAt bOmMXY7Z6sxwuzx0p1B+CbnZwWcMsPzPFq9i8Kv8Oe7CjkZPTcMTY1Rd5cTADXXKvlei 2e4yxJm8rdqZJyfmzpzhWD8rdlhYT8xf+SHUp4TfTwkPtpHYSerXdJX9dsAfv7tbYCYK K2EOtexXdMcFUE4xAtUh96dVsNzMQWLwkmDNQIpdQSky6nrgMMhK15Jxyhfj3AdFDeep a6Vg== X-Gm-Message-State: AJaThX5WGqjmVVVoQuIKZuNWi/iQXMX4epan0kmendWqBPhdVqMSLCgo d7HUXZ2k9RE9dOaXjMzhgk72QOY= X-Received: by 10.101.77.201 with SMTP id q9mr26506669pgt.226.1512682228379; Thu, 07 Dec 2017 13:30:28 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id y79sm10362139pfb.113.2017.12.07.13.30.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:26 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 65B8BDF0; Thu, 7 Dec 2017 15:30:21 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id BCE9030007E; Thu, 7 Dec 2017 15:30:17 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:08 -0600 Message-Id: <1512682213-4354-4-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-1-git-send-email-minyard@acm.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 Subject: [Qemu-devel] [PATCH 3/8] ipmi: Add the platform event message command X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard This lets an event be added to the SEL as if a sensor had generated it. The OpenIPMI driver uses it for storing panic event information. Signed-off-by: Corey Minyard Reviewed-by: Cédric Le Goater --- hw/ipmi/ipmi_bmc_sim.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.7.4 diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index a0bbfd5..e84d710 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -38,6 +38,7 @@ #define IPMI_NETFN_SENSOR_EVENT 0x04 +#define IPMI_CMD_PLATFORM_EVENT_MSG 0x02 #define IPMI_CMD_SET_SENSOR_EVT_ENABLE 0x28 #define IPMI_CMD_GET_SENSOR_EVT_ENABLE 0x29 #define IPMI_CMD_REARM_SENSOR_EVTS 0x2a @@ -1581,6 +1582,28 @@ static void set_sel_time(IPMIBmcSim *ibs, ibs->sel.time_offset = now.tv_sec - ((long) val); } +static void platform_event_msg(IPMIBmcSim *ibs, + uint8_t *cmd, unsigned int cmd_len, + RspBuffer *rsp) +{ + uint8_t event[16]; + + event[2] = 2; /* System event record */ + event[7] = cmd[2]; /* Generator ID */ + event[8] = 0; + event[9] = cmd[3]; /* EvMRev */ + event[10] = cmd[4]; /* Sensor type */ + event[11] = cmd[5]; /* Sensor number */ + event[12] = cmd[6]; /* Event dir / Event type */ + event[13] = cmd[7]; /* Event data 1 */ + event[14] = cmd[8]; /* Event data 2 */ + event[15] = cmd[9]; /* Event data 3 */ + + if (sel_add_event(ibs, event)) { + rsp_buffer_set_error(rsp, IPMI_CC_OUT_OF_SPACE); + } +} + static void set_sensor_evt_enable(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, RspBuffer *rsp) @@ -1757,6 +1780,7 @@ static const IPMINetfn chassis_netfn = { }; static const IPMICmdHandler sensor_event_cmds[] = { + [IPMI_CMD_PLATFORM_EVENT_MSG] = { platform_event_msg, 10 }, [IPMI_CMD_SET_SENSOR_EVT_ENABLE] = { set_sensor_evt_enable, 4 }, [IPMI_CMD_GET_SENSOR_EVT_ENABLE] = { get_sensor_evt_enable, 3 }, [IPMI_CMD_REARM_SENSOR_EVTS] = { rearm_sensor_evts, 4 }, From patchwork Thu Dec 7 21:30:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121077 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8884776qgn; Thu, 7 Dec 2017 13:30:57 -0800 (PST) X-Google-Smtp-Source: AGs4zMY9URAd1GRJfCs9QRMtf4WNwnf42aafO5SOsESruid/4rcOxuVjhllJqAARmXxzRuy1REBz X-Received: by 10.13.254.131 with SMTP id o125mr3549117ywf.154.1512682257442; Thu, 07 Dec 2017 13:30:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682257; cv=none; d=google.com; s=arc-20160816; b=iHuOu0OH7nhKomgXyF14g899SSOJQtqqnkznT24tyuifzZfVGD2z3DhpdTeVZYK5xE Yh9Dw8y099dDSgTBUo779154FdxTAM7jo/45ud9XjAr2ziO4PQKqLAplEIAR+lcqi6WW T37w1bAbaBAQQH2ihIfFStDw5RBfVk6Md86XDzB226GTx0xxeWi3a/ZKwbxk2WFC5GJ3 Wk9bbTFpm9basoG0f4SgDqUBHSxzYDBUXXzP5XAFL2+3BE3g3bs4aO/ULYpuJqe/OVgb ErOhdL7e01PHpZyj2ugN+rUF/dkmqKO1h9Ooo4BIVpNNQrK7JtiQVRqDxbtIGud4zedu IM8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=FPvbIQAJwDholvfOTmxL4gvQanZKI49FHyohI781HTI=; b=jR5NIxS/AMFgBKJLm58Xsf7F3S415bxgKQnYyibQ41zaW53JzRXbKyV7poQlwgQ0Cm lhIpSL6M6FR43gvfwnUcMeAh68H3et5hSudcg6lwCXhsE27piMK7MIugKakhDuib75hK 6jJCGDV+sRY2qRmQrQ2wsqlGRlOZ3J2pYSJSxagPrXP2pkVAf3sN6SfcNstwsamFBS79 JEMMpes0/PD+vRM/0mq7kUbMXDt4Os6hBb2onycRpnTDN00PyvINoeMtOBlrUkMvoxki UMhk7NqZlrRCnj8M2+tJq5uUX9S2Mj/j9jIW8mUgNqYBhbMA2lKOW5Pz9umBzK+vU+HY h35w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZagYmN3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b184si1329590ybb.774.2017.12.07.13.30.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:30:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZagYmN3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3ku-0005Zv-PC for patch@linaro.org; Thu, 07 Dec 2017 16:30:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kS-0005YX-28 for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kQ-0001wL-T0 for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:28 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:32916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kQ-0001vq-M6 for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:26 -0500 Received: by mail-pf0-x243.google.com with SMTP id y89so5652856pfk.0 for ; Thu, 07 Dec 2017 13:30:26 -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=FPvbIQAJwDholvfOTmxL4gvQanZKI49FHyohI781HTI=; b=ZagYmN3aAolNkpqx5hAJ876JZmE5ZHPB+dXxnn+yqqLwwVx+eyAVe9rM6k3YMdekA7 VgLBbRIp1j2V8kTglFM3tSMVNaBejBKrtCzdLqOXpWn6gsu05aAwgZ+1JoRkBZOfgUwF /Kn6YoioVqZJalUMIKso2FT4uU4LKoHWquViHB88IwJYYATFefrFpe3T9EtbxgRqDKGc rA7kgeNrf6oXwhAUewTBSZy96cocmiAxM/FlSNOHWEKZvODZX8xphpXTAZjbYswkFv9M BXfGscPKdpUTgKegee4Lml32Acl0zbOgUBmVpBdUoZeeAXSLLE3LzC6h9UmTUdgeDyJ2 3gMQ== 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=FPvbIQAJwDholvfOTmxL4gvQanZKI49FHyohI781HTI=; b=akZuXZzGS2C7VYRMUwcecZDOAl5Ojf0eTMwz3WUJJOmFg/iWFY0dAtYuGC5lzy9eMd YucbNFXBkJSWNi/Bv4X69xdXL+lx9GEUYW+RuRQUDknANqS9Kg4S75fxoxEua6sJRhXp 0zOtVZhEmfqrd45nD1HOjE2zvLIi5DbiBAKvO9sjhVvC7oZpiLg0COXYErQqYWfrVttm 015/6MAn6R3k3GB+0eZmCGvUxRm3u8hL9Gc1pv7q903SDQifzwGxAUMyvPd8nItw1i7L YjkHkslSYHmLC87oRGBe1LDuUfi8AVLQshL0tXrv7kcTNoKTWIKkMnt9MrLgP0pFw8Dp o4aw== X-Gm-Message-State: AJaThX5qtV2oAESBWFoGXZEHQcwF2yOLOR/meKseOLr84z+hnuMFNlj6 BPwEPEQ+Cq76qa6VfsrXqQ== X-Received: by 10.99.97.200 with SMTP id v191mr25608159pgb.300.1512682225630; Thu, 07 Dec 2017 13:30:25 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id b6sm11067995pfe.57.2017.12.07.13.30.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:23 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 3D4B2BD7; Thu, 7 Dec 2017 15:30:21 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 4E86630000E; Thu, 7 Dec 2017 15:30:18 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:09 -0600 Message-Id: <1512682213-4354-5-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-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:400e:c00::243 Subject: [Qemu-devel] [PATCH 4/8] ipmi: Fix macro issues X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Macro parameters should almost always have () around them when used. llvm reported an error on this. Remove redundant parenthesis and put parenthesis around the entire macros with assignments in case they are used in an expression. The macros were doing ((v) & 1) for a binary input, but that only works if v == 0 or if v & 1. Changed to !!(v) so they work for all values. Remove some unused macros. Reported in https://bugs.launchpad.net/bugs/1651167 An audit of these changes found no semantic changes; this is just cleanups for proper style and to avoid a compiler warning. Signed-off-by: Corey Minyard Reviewed-by: Eric Blake --- hw/ipmi/isa_ipmi_bt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c index 2fcc3d2..13a8c09 100644 --- a/hw/ipmi/isa_ipmi_bt.c +++ b/hw/ipmi/isa_ipmi_bt.c @@ -46,21 +46,21 @@ #define IPMI_BT_B2H_ATN_MASK (1 << IPMI_BT_B2H_ATN_BIT) #define IPMI_BT_GET_B2H_ATN(d) (((d) >> IPMI_BT_B2H_ATN_BIT) & 0x1) #define IPMI_BT_SET_B2H_ATN(d, v) ((d) = (((d) & ~IPMI_BT_B2H_ATN_MASK) | \ - (((v) & 1) << IPMI_BT_B2H_ATN_BIT))) + (!!(v) << IPMI_BT_B2H_ATN_BIT))) #define IPMI_BT_SMS_ATN_MASK (1 << IPMI_BT_SMS_ATN_BIT) #define IPMI_BT_GET_SMS_ATN(d) (((d) >> IPMI_BT_SMS_ATN_BIT) & 0x1) #define IPMI_BT_SET_SMS_ATN(d, v) ((d) = (((d) & ~IPMI_BT_SMS_ATN_MASK) | \ - (((v) & 1) << IPMI_BT_SMS_ATN_BIT))) + (!!(v) << IPMI_BT_SMS_ATN_BIT))) #define IPMI_BT_HBUSY_MASK (1 << IPMI_BT_HBUSY_BIT) #define IPMI_BT_GET_HBUSY(d) (((d) >> IPMI_BT_HBUSY_BIT) & 0x1) #define IPMI_BT_SET_HBUSY(d, v) ((d) = (((d) & ~IPMI_BT_HBUSY_MASK) | \ - (((v) & 1) << IPMI_BT_HBUSY_BIT))) + (!!(v) << IPMI_BT_HBUSY_BIT))) #define IPMI_BT_BBUSY_MASK (1 << IPMI_BT_BBUSY_BIT) #define IPMI_BT_SET_BBUSY(d, v) ((d) = (((d) & ~IPMI_BT_BBUSY_MASK) | \ - (((v) & 1) << IPMI_BT_BBUSY_BIT))) + (!!(v) << IPMI_BT_BBUSY_BIT))) /* Mask register */ @@ -70,12 +70,12 @@ #define IPMI_BT_B2H_IRQ_EN_MASK (1 << IPMI_BT_B2H_IRQ_EN_BIT) #define IPMI_BT_GET_B2H_IRQ_EN(d) (((d) >> IPMI_BT_B2H_IRQ_EN_BIT) & 0x1) #define IPMI_BT_SET_B2H_IRQ_EN(d, v) ((d) = (((d) & ~IPMI_BT_B2H_IRQ_EN_MASK) |\ - (((v) & 1) << IPMI_BT_B2H_IRQ_EN_BIT))) + (!!(v) << IPMI_BT_B2H_IRQ_EN_BIT))) #define IPMI_BT_B2H_IRQ_MASK (1 << IPMI_BT_B2H_IRQ_BIT) #define IPMI_BT_GET_B2H_IRQ(d) (((d) >> IPMI_BT_B2H_IRQ_BIT) & 0x1) #define IPMI_BT_SET_B2H_IRQ(d, v) ((d) = (((d) & ~IPMI_BT_B2H_IRQ_MASK) | \ - (((v) & 1) << IPMI_BT_B2H_IRQ_BIT))) + (!!(v) << IPMI_BT_B2H_IRQ_BIT))) typedef struct IPMIBT { IPMIBmc *bmc; From patchwork Thu Dec 7 21:30:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121079 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8887412qgn; Thu, 7 Dec 2017 13:33:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZVlTyUQxYNWt5kc8Us8//l2/OCuocTeb3h8gUiYZMGm/yJDCDWJT2S924yuLvVaFcE7U8S X-Received: by 10.37.44.149 with SMTP id s143mr5390930ybs.280.1512682403715; Thu, 07 Dec 2017 13:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682403; cv=none; d=google.com; s=arc-20160816; b=0Lnt7zsO/nQhEsZNhe6r5etZ+JX01XeQN04iyrzqoBMeAfeuqx9EbNmH9yrwu1uGov aZftNdPP+pStKWjmvw1vJzYtHrq3kx0O0Sbie/fKOtn8A69FHNMyZZR+GNUra50JqeXR Co0Gd8wt7FHIlewrAKoQSC+p+zZ7CWYoxzRuxNcq4i7pku4U6N3Fn7eMjHziD2r20gqT ypn2W7onWV94cBqgA2csJK841x4iBgXUn+IQ5x2V7/VTBKIPz+7ZvD03IXn9lI1ba1Fl MSLocqcxG16HlwT+E4Mw0E25a+WzKrFdbDXL7KRR2kzeRJPOACWKhE9iZlgNJnS3xvUA FQDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=0F2xaRV+PnCJvXVpI6Att709KDACjJNoF2TNpF2bBMQ=; b=Y+2tcd1UtMKwKJeEmHSD32W0D9pIa+6rIIQfqfY7gtxiht9ORE8REWYisyw3J7axTD 9vhdExkVTSCHy7jASD6C3Rx/WJhZ68duogv60oon3yLhYqkXrKQXgPswOUi8+YvR3mk+ ykoHXh7B/gk537v2ebcgWrZKAAy/+VB3jkSPECIgnaO2pP4u1nuUbNC8CtwC61EKdOOg rJzhnaqeyoREoHLr0/DEQUguOPIo0YddgXXo6OYHcmFLFiAQKeP5yBBZKS0K9bPD2zCD +jqmJ11lHEjxeX2vwHJp1rF80Y1s1iUZdx/Y3qQDUhgp/rZgMcXDLUX1+J3m6DkC+KpA q1AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rBynui1B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t2si1295751ybf.104.2017.12.07.13.33.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:33:23 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rBynui1B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3nG-0006el-Fb for patch@linaro.org; Thu, 07 Dec 2017 16:33:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kR-0005YU-RN for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kP-0001vE-4A for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:27 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:35133) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kO-0001uS-UL for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:25 -0500 Received: by mail-pg0-x241.google.com with SMTP id q20so5367460pgv.2 for ; Thu, 07 Dec 2017 13:30:24 -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=rBynui1BWvAQbmQJGLXMHPfJKT8j+ILZ5vxFAoXOtimJn2nnUfLryVeiILgDsBGFg/ bDcdT3uQHzo0OoVCbPW9cbw6sIX8g4vkv9gv9F/DgD26/jQSgloJ4rYe6mEfy+liNjhb F3hqPKx1vqqkvyEzI72PICv3+9nY2fz9sJ+eMBEFQu+NR2psktPw7rW+6/4Ltqcfb1vS YtTDWxrtOMZXFNsxxHFh0RNLQMaflSuHkNoyLxKZsh+sZwzgndToQjmFKVClFP0m0wL6 bhFWxXKfVFvMJvVLPPchv3KhJZbVt2DDhBqyMEgW0zigIHT8b7wZsSQjvKYgSoMkSomY 9xsA== 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=I0rVWIQIYWZEnr1eWkANhY+FGOHSx6Bbdwt5xGWMapKim9waHpc+iq55sY7t5vOhyX H0pLp0OFs7cLUrWyAEecy5Nit1gvvp0Sgt7B65aB8VoCZAkP5ad7k8uKIZBjYqZP93q0 S6giTspsWWAQwvElN/da44Z/MyaoMsRM8m9dAR6pSyoXXg+EuXMUL5PFhR8yOp5uRUs3 UQOyy/GgDP2QbQchRV4HADjodmC4BSj8aP7sqrDzAmY7LtnGjcbzwgd7EJERWov8KtfF l75p77jN5MAeskyxQXaIONO6P1+HrVLaUUq80xAV4Xdrlu+KQGE3uSVxMSN8S8JEmWZ0 2ZMg== X-Gm-Message-State: AKGB3mIYqmyP6Qyf1oDG4quFzLdVXe/kH+R3uXc4I4VRKDrXAYYbcHFT sAWkJHpeVnH/CwmnC028Mjs9psE= X-Received: by 10.84.235.139 with SMTP id p11mr5630340plk.391.1512682223831; Thu, 07 Dec 2017 13:30:23 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id p126sm9195765pga.58.2017.12.07.13.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:22 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 36A5E8F4; Thu, 7 Dec 2017 15:30:20 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 753AF300092; Thu, 7 Dec 2017 15:30:18 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:10 -0600 Message-Id: <1512682213-4354-6-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-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:400e:c05::241 Subject: [Qemu-devel] [PATCH 5/8] 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Otherwise there's no way to clear them without an external command, and it could lock the OS in the VM if they were stuck. Signed-off-by: Corey Minyard --- hw/ipmi/ipmi_bmc_extern.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 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; From patchwork Thu Dec 7 21:30:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121083 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8890190qgn; Thu, 7 Dec 2017 13:36:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMakHo3h+1WYsrwb0fJ2FTeq0mbeGvL6IVYjA4baOiuyMVMD/U8hQap4JK32YMUF3utmOhOg X-Received: by 10.37.93.15 with SMTP id r15mr18981535ybb.12.1512682570803; Thu, 07 Dec 2017 13:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682570; cv=none; d=google.com; s=arc-20160816; b=IaVVFNGbLCV8AAn9+qORfkxseBluyLH8uG+xomqvlGOG+UNOKhLGMWsosAlzIUEQk7 NUkQcT+YEkhv/uB+O1mzAVY1dxz2PpBTgR8jT6fNVtxSCbxFQbHxS6I0WPi+hTUXaVMQ u/szK8ca1yVbdS4pwK5YB9BhlTWT630AA2ssWmCRmRSJYfTR+YpggWyPlseJQEm78cIl 4TYBI+b6onu7UHaMapWO1BZ5NzhGR2m/uI4F9J5w4bxChxPbd5JXFtSYKKCBVhNiW/Yc j5VeNRYmq6wHU26XdwxxlgWtHyR9Nz76P51Q5W7N5rxnx8+Muq2RAClrtl6/jA6pGXNA cD0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=903jbIjY5CaeOB9ZbI4Pqip2txlVQbIiiI0khfFZqp4=; b=YI0b0Bv3vYnDa+dxTmIjNIH2KXtjh1MhrI3K4TiihFJQgEHktYmCcZJKrAEDHauTYx OJep8TQ2WHP53aVZiIK2Ym2u81eaS6+VN4LC2B6XEJ4Jay7XW4jesdxg0AZf9SSGTDhX tPXOrz9LTkwz715OMEkwLOKRPQAmcD9/VZjtJzj1ej/WgZYfIKcAaCPz3dJMiLK86sTE s9UegKDmzVlx96C20dkWgLy45x2X09GikDHZhKfkKH3exWyg7JZ/F7pkXGfXvLwOa3ol KpmU+hKIO/+jVLjFUB1qpao63HLxJfXr12o6GHoR0SOT0iHkBclAUuCEW89EaqwV5mNM KqSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nfVah41b; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l67si1375415ywf.739.2017.12.07.13.36.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:36:10 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nfVah41b; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3py-0002cj-AY for patch@linaro.org; Thu, 07 Dec 2017 16:36:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kW-0005b5-Gk for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kV-000206-Ik for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:32 -0500 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:35336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kV-0001zJ-8f for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:31 -0500 Received: by mail-pf0-x244.google.com with SMTP id j124so5646359pfc.2 for ; Thu, 07 Dec 2017 13:30:31 -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=903jbIjY5CaeOB9ZbI4Pqip2txlVQbIiiI0khfFZqp4=; b=nfVah41bhE4v93sa+DLMSRTge5TO3ug8GNic/Y7xSHbfP9L4b61zn42xir0qjr30YP T/rg/6PDQTS3vUpg/hlHUCOjgUg4Csp+XqcQp++2NSlK6NqvoPoxLmXuYf5e5GXDCuQS K/i4hdAZqqPcAbzoSDirS9uJlrki0fmjUwVkQkG29WikjcDBHr2VPw9fOZ4O6LGypRUB Pnc3yJ9Hru4T7B94m/hlcl5bV1H6Uw5s/cB2heb+1JeiOZF2PZqKk+mlRwthprMcZ33n wouicj8avtTHxPASsWUVeC48Qvfzyj8l6/DcSpP82pxh7R0I5BmR/DZh6VvB4I4fQZqP rKFQ== 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=903jbIjY5CaeOB9ZbI4Pqip2txlVQbIiiI0khfFZqp4=; b=mBWaA1d/Cv6aVAhjBL1C1rgEWs3xQ4T9/xeMVzuw+NUdb91dUmXZCrVGdvdYk17YyY cnxQWF59F1NBiMG9motLHNxLB4GKOFrNuR9rAWrCZ/RtJDPdK9efoxG/SZVQ54EJDc14 NAKNqwMGu/RMPlHPgDQpdUCiPKww1hX3qoPzxSa6Lhikc/JooGlV2H+KXEkRhAfbh7At hgk3ENkszUlcxJN5NKhnj2POGAQ+l4xtbWkge3F5/pTZYTPeNnDkvk7preelgbwXgdRF fPx1opprAHrZfRXd52+w0h3PoR0qMLiLM1WJsVZdJh/VuGuiRKlgs51KRdbn9to/VeJX AWPQ== X-Gm-Message-State: AJaThX62tipBedA3dfoEi3lO3RAgUJYzgfwuAmttyJWl9FB5oget0A0K 3FZyWGhGZFxA2sVUZn9YVA== X-Received: by 10.99.127.14 with SMTP id a14mr27842879pgd.315.1512682230211; Thu, 07 Dec 2017 13:30:30 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id j79sm10998802pfe.129.2017.12.07.13.30.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:26 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 71BA5EB7; Thu, 7 Dec 2017 15:30:21 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 22C8B302367; Thu, 7 Dec 2017 15:30:18 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:12 -0600 Message-Id: <1512682213-4354-8-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-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:400e:c00::244 Subject: [Qemu-devel] [PATCH 7/8] ipmi: Allow BMC device properties to be set X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Signed-off-by: Corey Minyard --- hw/ipmi/ipmi_bmc_sim.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) -- 2.7.4 Reviewed-by: Marc-André Lureau diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index e84d710..9b509f8 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -214,8 +214,8 @@ struct IPMIBmcSim { uint8_t device_rev; uint8_t fwrev1; uint8_t fwrev2; - uint8_t mfg_id[3]; - uint8_t product_id[2]; + uint32_t mfg_id; + uint16_t product_id; uint8_t restart_cause; @@ -867,11 +867,11 @@ static void get_device_id(IPMIBmcSim *ibs, rsp_buffer_push(rsp, ibs->fwrev2); rsp_buffer_push(rsp, ibs->ipmi_version); rsp_buffer_push(rsp, 0x07); /* sensor, SDR, and SEL. */ - rsp_buffer_push(rsp, ibs->mfg_id[0]); - rsp_buffer_push(rsp, ibs->mfg_id[1]); - rsp_buffer_push(rsp, ibs->mfg_id[2]); - rsp_buffer_push(rsp, ibs->product_id[0]); - rsp_buffer_push(rsp, ibs->product_id[1]); + rsp_buffer_push(rsp, ibs->mfg_id & 0xff); + rsp_buffer_push(rsp, (ibs->mfg_id >> 8) & 0xff); + rsp_buffer_push(rsp, (ibs->mfg_id >> 16) & 0xff); + rsp_buffer_push(rsp, ibs->product_id & 0xff); + rsp_buffer_push(rsp, (ibs->product_id >> 8) & 0xff); } static void set_global_enables(IPMIBmcSim *ibs, uint8_t val) @@ -1997,6 +1997,13 @@ static Property ipmi_sim_properties[] = { DEFINE_PROP_UINT16("fruareasize", IPMIBmcSim, fru.areasize, 1024), DEFINE_PROP_STRING("frudatafile", IPMIBmcSim, fru.filename), DEFINE_PROP_STRING("sdrfile", IPMIBmcSim, sdr_filename), + DEFINE_PROP_UINT8("device_id", IPMIBmcSim, device_id, 0x20), + DEFINE_PROP_UINT8("ipmi_version", IPMIBmcSim, ipmi_version, 0x02), + DEFINE_PROP_UINT8("device_rev", IPMIBmcSim, device_rev, 0), + DEFINE_PROP_UINT8("fwrev1", IPMIBmcSim, fwrev1, 0), + DEFINE_PROP_UINT8("fwrev2", IPMIBmcSim, fwrev2, 0), + DEFINE_PROP_UINT32("mfg_id", IPMIBmcSim, mfg_id, 0), + DEFINE_PROP_UINT16("product_id", IPMIBmcSim, product_id, 0), DEFINE_PROP_END_OF_LIST(), }; From patchwork Thu Dec 7 21:30:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 121082 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8890104qgn; Thu, 7 Dec 2017 13:36:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZfy3PwkM3Wp7bAOjZ/2YmkMQ6osUx7b2P8kCgd9UmrT4Q6yeUWlmkWS81KPuozZTJtbW1g X-Received: by 10.13.213.135 with SMTP id x129mr18494922ywd.185.1512682565998; Thu, 07 Dec 2017 13:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512682565; cv=none; d=google.com; s=arc-20160816; b=hbpVuksF4hoStSUx46Rc7yadq6vfLTs0UAJ92VNnKLlYjQXrIA4SJqcEiQv/ot0lFI UUOx4ADRQDNZLm1ZfctHMxY9KWJIlIroWOAsrQD92sIFac1UFnsUkMPZYYTetcEbKs1u gwiVZqp5Y7AWPnTCjjzQY7xrnOkiIDvvlbiJJtyFziDQkEOw+kdyyo6L1vTj4nquJb6e j5ozx+SACkIO1EYeNWTFnWzwvEwdpjz2GJ0/GbqZ9GWOce+C2vRZ0rg9KnIQbuIKGtMa ppego6wyLJS/9g3GZNvD/uzGvALGhpJVOs6d+tPQO0UVJGmaER2fqvGFU9+X0ampwaTW 2ajw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=JYLKFt4NnQJJZeoSgND/OVW57fOBNc4r6PzUibfvyB8=; b=dlBtwLk2P5qf/JWPrVO/DlOmayI5vM0DU1h09cfwlluRxOA+8T8AK8eR3CHWTN1tzS uX7BfrjWwJRnrtX+aK4EkAXdDVU7caFqq6jH4OZhXpCEdLmFUjpnrL3frNHn37jRzdhT pPpdQ7/ahruCD4/zbIX1e14yWzhqFjRim1LfU7DCbodKYJGMO612xncQe/a/CmYDq8rt uHvRZiRYFvi49yv8mLXGJj/BG+9X63nrTZFanKJSpEz9bxkDComciQch3HypmXY7MSJ6 04DJl81glV/8hrnz/JHWWSbFJTuvVIgaIUtkaTqqZWm6dHUzB9Gg4Nqa8TEClksFNbLq A//g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=a0F9jRt9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h62si1334314ywb.790.2017.12.07.13.36.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Dec 2017 13:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=a0F9jRt9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:34433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3pt-0002ZQ-Gs for patch@linaro.org; Thu, 07 Dec 2017 16:36:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3kT-0005Yi-Kc for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3kS-0001xb-OQ for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:29 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:42363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3kS-0001x4-I8 for qemu-devel@nongnu.org; Thu, 07 Dec 2017 16:30:28 -0500 Received: by mail-pg0-x244.google.com with SMTP id e14so5358402pgr.9 for ; Thu, 07 Dec 2017 13:30:28 -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=JYLKFt4NnQJJZeoSgND/OVW57fOBNc4r6PzUibfvyB8=; b=a0F9jRt9ADz8PAP7JFl5dC4uwo66UoyqGjP3IY8WnT4bD2m5WAk5aFJtaEsNC94SZ3 iLwRCujUL++mmUPzuHIbeCSaMaX6B4JCgQg2/xNDx6caI2ImHS0tBV/b3KO59Q4wlYXp 5gXfo86ovRf52G0ojHDZ/4gW12/yvFFkyzmYXxhS1+WMSOGCallAGw+u60CzcadkiXAh h2JPBfmwSiufyKEK1HhpGrcGrm185kIFGDaRic5gloiAKp1c6zFf5G+a2Ui72Gd9p8Yc eq3r7Qs2Kf2RWayIJEjuQ8AS6O04xbnW0lmikZyUYwMv0YViCkM6PwIp2GJ94/uekIqN icoQ== 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=JYLKFt4NnQJJZeoSgND/OVW57fOBNc4r6PzUibfvyB8=; b=m8hYYmhLnHOaR+I4PekksNh1wNKl4CKeikKR7DHiRIXx7mi8zlj1DAu610+v0luo/i WUqYeH5FuG1kZiE5nTc1WIaM/R5X2wMM+9SOfnxkPk8HaJ2b0TyoebMlj4H7wsphIhz7 ooktOOkJDE1BK0fuXPkAc2WlKAzm3SJlZ8CzKMcEvdtgLJDsxuVJWjTLDCJE/OLVV3sK 4d2YtyfxdufvuthdK4WhituYE2GLmwRDugAICd9BOtPSv+ZEBfze8nLFWfNmSl0l7UGV wFlUNC9rC3MvgR39MDW2p14fhj2H8At8R594fO4AG2e7J9DIGAop52El5+OdbOD6yMIQ Ft4g== X-Gm-Message-State: AJaThX6LJkXRAx2T8No54IHspoirnbj4pGTS998T+lb2zBUG4p3wI5c0 LD6KmqQxM3oAyJlXjL92DQ== X-Received: by 10.101.69.203 with SMTP id m11mr25934597pgr.200.1512682227508; Thu, 07 Dec 2017 13:30:27 -0800 (PST) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id i20sm10986365pfj.58.2017.12.07.13.30.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:30:26 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 526C0CF0; Thu, 7 Dec 2017 15:30:21 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id E60F030008F; Thu, 7 Dec 2017 15:30:18 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Thu, 7 Dec 2017 15:30:13 -0600 Message-Id: <1512682213-4354-9-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512682213-4354-1-git-send-email-minyard@acm.org> References: <1512682213-4354-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:400e:c05::244 Subject: [Qemu-devel] [PATCH 8/8] Add maintainer for the IPMI code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard Signed-off-by: Corey Minyard --- MAINTAINERS | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.7.4 Acked-by: Marc-André Lureau diff --git a/MAINTAINERS b/MAINTAINERS index 0255113..6483f79 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -924,6 +924,15 @@ F: tests/ahci-test.c F: tests/libqos/ahci* T: git git://github.com/jnsnow/qemu.git ide +IPMI +M: Corey Minyard +S: Maintained +F: include/hw/ipmi/* +F: hw/ipmi/* +F: hw/smbios/smbios_type_38.c +F: tests/ipmi* +T: git git://github.com/cminyard/qemu.git master-ipmi-rebase + Floppy M: John Snow L: qemu-block@nongnu.org