From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSZ3-0006PX-Ec for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfSZ0-0005qV-8B for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:09 -0400 Received: from mailuogwdur.emc.com ([128.221.224.79]:18318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSZ0-0005nn-3u for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:06 -0400 From: "Longever, Joseph" Date: Tue, 7 Apr 2015 08:24:50 -0400 Message-ID: <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> In-Reply-To: <5520979E.2080208@acm.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU IPMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "minyard@acm.org" , qemu-devel Hi Corey, Thanks so much for the support. I pulled down the 2.2-ipmi stable snapshot= and everything compiled with no issues. Could you help confirm my configuration? I ran lanserv with the serial parameter to create the socket that will comm= unicate with the QEMU IPMI device over port 9002: Host lanserv config: addr :: 623 # Define a serial VM inteface for channel 15 (the system interface) on # port 9002, just available to the local system (localhost). serial bt localhost 9002 codec VM ipmb 0x20 # startcmd is what to execute to start a VM associated with the # codec above (localhost 9002). It also starts a console serial port # on port 9003 that is also used as the monitor interface. startcmd "qemu-system-x86_64 -vnc :1 --enable-kvm -chardev socket,id=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,server,telnet,nowait -m ${VMEM} -smp ${VSMP} ${STARTCMD_OPTS}" # Start startcmd at startup? Default is false. startnow true But the QEMU VM doesn't find the BMC over the BT channel. I've tried KCS c= hannel as well, similar problem. I also set the serial parameter for chan= nel 15, same. On VM: [ 10.199536] ipmi message handler version 39.2 [ 10.201363] ipmi device interface [ 10.203908] IPMI System Interface driver. [ 10.204739] ipmi_si: Trying SMBIOS-specified bt state machine at i/o add= ress 0xe4, slave address 0x20, irq 5 [ 10.206353] ipmi_si: There appears to be no BMC at this location [ 10.342602] ipmi_si: Unable to find any System Interface(s) [ 10.344943] IPMI Watchdog: driver initialized The socket is listening on the host at port 9002 (the LAN port is the defau= lt 623): root@vBMC1:~$ netstat -ln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:9003 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 ::1:9002 :::* LISTEN tcp 0 0 :::22 :::* LISTEN tcp 0 0 :::23 :::* LISTEN udp 0 0 :::623 :::* Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path Thanks, Joel=20 -----Original Message----- From: Corey Minyard [mailto:tcminyard@gmail.com] On Behalf Of Corey Minyard Sent: Saturday, April 04, 2015 10:02 PM To: Longever, Joseph; qemu-devel Subject: Re: QEMU IPMI support Ok, done. It's at https://github.com/cminyard/qemu on github. There are t= wo branches at the moment, stable-2.2-ipmi is based on the 2.2 release and = will not rebase. master-ipmi-rebase will rebase on master as it moves. I haven't done extensive testing yet, and it has a few experimental things,= like an SMBus IPMI interface and an I2C mux device. I need to split all t= hat out at some point. I also need to rework the ACPI handling to use the = new code to build the ACPI tables. Copying qemu-devel so that group knows. Thanks, -corey On 04/03/2015 01:17 PM, Longever, Joseph wrote: > Hi Corey, > > Yes please, setting up a git repo on git hub with IPMI support would be = a tremendous help. =20 > > Thank you, > Joel > > -----Original Message----- > From: Corey Minyard [mailto:tcminyard@gmail.com] On Behalf Of Corey=20 > Minyard > Sent: Friday, April 03, 2015 2:16 PM > To: Longever, Joseph > Subject: Re: QEMU IPMI support > > On 04/01/2015 07:23 AM, Longever, Joseph wrote: >> Hi Corey, >> >> =20 >> >> I noticed a lot of work you had done to add IPMI/BMC emulation to=20 >> QEMU ... great work! >> >> http://sourceforge.net/p/openipmi/mailman/openipmi-developer/thread/1 >> 3 >> 69865296-19584-1-git-send-email-minyard%40acm.org/#msg30911152 >> >> >> =20 >> >> I was wondering if they were going to push those features into an >> official QEMU release? To avoid porting the above patches over (not >> sure which commit it's based on, 1.5.0?), would you have the patch=20 >> set to support the latest stable QEMU version? I would like to use=20 >> OpenIPMI's lanserv to spawn a QEMU KVM with IPMI char device enabled,=20 >> however I think I need your patches to enable the device in QEMU. >> >> =20 >> >> Any suggestions or help is very much appreciated. >> >> =20 >> >> Thanks, >> >> Joel =20 >> >> =20 >> > I'm not sure when I can get this pushed in. It's really more up to the q= emu maintainers, and they are pretty busy with bigger stuff. Unless Redhat= wants changes, which is how the qemu-char changes I needed for IPMI suppor= t got into the release. > > I can set up a git repository on github. Would that help? > > -corey