From: minyard@acm.org Subject: First shot at adding IPMI to qemu Date: Mon, 02 Jul 2012 14:44:32 -0500 Message-ID: <1341258281-9283-1-git-send-email-minyard@acm.org> To: kvm@vger.kernel.org Return-path: Received: from vms173003pub.verizon.net ([206.46.173.3]:9246 "EHLO vms173003pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755906Ab2GBUpP (ORCPT ); Mon, 2 Jul 2012 16:45:15 -0400 Received: from wf-rch.minyard.home ([unknown] [173.57.151.210]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M6J00FQXTIRI253@vms173003.mailsrvcs.net> for kvm@vger.kernel.org; Mon, 02 Jul 2012 14:44:56 -0500 (CDT) Received: from i.minyard.home (i2.minyard.home [192.168.27.116]) by wf-rch.minyard.home (Postfix) with ESMTP id 3C19C1F8C6 for ; Mon, 02 Jul 2012 14:44:50 -0500 (CDT) Sender: kvm-owner@vger.kernel.org List-ID: I had asked about getting an IPMI device into qemu and received some interest, and it's useful to me, so I've done some work to add it. The following patch set has a set of patches to add an IPMI KCS device, and IPMI BT device, a built-in BMC (IPMI management controller), and a way to attach an external BMC through a chardev. There was some discussion on whether to make the BMC internal or external, but I went ahead and added both. The internal one is fairly basic and not extensible, at least without adding code. I've modified the OpenIPMI library simulator to work with the external interface to allow it to receive connections from the qemu external simulator with a fairly basic protocol. I've also added the ability for the OpenIPMI library to manage a VM to power it on, power it off, reset it, and handle an IPMI watchdog timer. So it looks quite like a real system. Instructions for using it are in the OpenIPMI release candidate I uploaded to https://sourceforge.net/projects/openipmi Since IPMI can advertise it's presence via SMBIOS, I added a way for a driver to add an SMBIOS entry. I also added a way to query a free interrupt from the ISA bus, since the interrupt is in the SMBIOS entry and nobody really cares which one is used.