Re: First shot at adding IPMI to qemu

2012-07-09 Thread Corey Minyard
I haven't heard anything about these patches. Any comments, good or bad? Has anyone tried these? Thanks, -corey On 07/02/2012 02:44 PM, miny...@acm.org wrote: 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

First shot at adding IPMI to qemu

2012-07-02 Thread minyard
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

[PATCH 3/9] isa: Add a way to query for a free interrupt

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This lets devices that don't care about their interrupt number, like IPMI, just grab any unused interrupt. Signed-off-by: Corey Minyard cminy...@mvista.com --- hw/isa-bus.c | 13 + hw/isa.h |2 ++ 2 files changed, 15 insertions(+), 0

[PATCH 5/9] IPMI: Add a PC ISA type structure

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This provides the base infrastructure to tie IPMI low-level interfaces into a PC ISA bus. Signed-off-by: Corey Minyard cminy...@mvista.com --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs

[PATCH 9/9] IPMI: Add an external connection simulation interface

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This adds an interface for IPMI that connects to a remote BMC over a chardev (generally a TCP socket). The OpenIPMI lanserv simulator describes this interface, see that for interface details. Signed-off-by: Corey Minyard cminy...@mvista.com --- default

[PATCH 1/9] smbios: Add a function to directly add an entry

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com There was no way to directly add a table entry to the SMBIOS table, even though the BIOS supports this. So add a function to do this. This is in preparation for the IPMI handler adding it's SMBIOS table entry. Signed-off-by: Corey Minyard cminy

[PATCH 8/9] IPMI: Add a local BMC simulation

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This provides a minimal local BMC, basically enough to comply with the spec and provide a complete watchdog timer (including a sensor, SDR, and event). Signed-off-by: Corey Minyard cminy...@mvista.com --- default-configs/i386-softmmu.mak |1

[PATCH 4/9] Add a base IPMI interface

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com Add the basic IPMI types and infrastructure to QEMU. Low-level interfaces and simulation interfaces will register with this; it's kind of the go-between to tie them together. Signed-off-by: Corey Minyard cminy...@mvista.com --- default-configs/i386

[PATCH 7/9] IPMI: Add a BT low-level interface

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This provides the simulation of the BT hardware interface for IPMI. Signed-off-by: Corey Minyard cminy...@mvista.com --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1

[PATCH 2/9] pc: move SMBIOS setup to after device init

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com Setting up the firmware interface for the SMBIOS table needs to be done later in the process, after device initialization, so that devices can add entries to the table. Signed-off-by: Corey Minyard cminy...@mvista.com --- hw/pc.c | 22

[PATCH 6/9] IPMI: Add a KCS low-level interface

2012-07-02 Thread minyard
From: Corey Minyard cminy...@mvista.com This provides the simulation of the KCS hardware interface. Signed-off-by: Corey Minyard cminy...@mvista.com --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw

Re: [Qemu-devel] Adding an IPMI BMC device to KVM

2012-05-18 Thread Corey Minyard
On 05/18/2012 08:08 AM, Stefan Hajnoczi wrote: On Mon, May 7, 2012 at 3:30 PM, Anthony Liguorianth...@codemonkey.ws wrote: On 05/06/2012 09:39 AM, Avi Kivity wrote: On 05/06/2012 05:35 PM, Anthony Liguori wrote: So what's really the use case here? Would an IPMI - libvirt bridge get you

Re: [Qemu-devel] Adding an IPMI BMC device to KVM

2012-05-07 Thread Corey Minyard
I think we are getting a little out of hand here, and we are mixing up concepts :). There are lots of things IPMI *can* do (including serial access, VGA snooping, LAN access, etc.) but I don't see any value it that. The main thing here is to emulate the interface to the guest. OOB

Re: [Qemu-devel] Adding an IPMI BMC device to KVM

2012-05-07 Thread Corey Minyard
management would be easy. -corey Dave On Mon, May 07, 2012 at 01:07:45PM -0500, Corey Minyard wrote: I think we are getting a little out of hand here, and we are mixing up concepts :). There are lots of things IPMI *can* do (including serial access, VGA snooping, LAN access, etc.) but I don't see

Fwd: Re: Adding an IPMI BMC device to KVM

2012-05-07 Thread Corey Minyard
Resending to the list, plan text only. Sorry about that... Original Message Subject:Re: Adding an IPMI BMC device to KVM Date: Mon, 07 May 2012 16:57:06 -0500 From: Corey Minyard tcminy...@gmail.com Reply-To: miny...@acm.org To: Anthony Liguori anth

Adding an IPMI BMC device to KVM

2012-05-04 Thread Corey Minyard
I've been working on adding an IPMI BMC as a virtual device under KVM. I'm doing this for two primary reasons, one to have a better test environment than what I have now for testing IPMI issues, and second to be able to better simulate a legacy environment for customers porting legacy

Re: [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-21 Thread Corey Minyard
Look at drivers/char/ipmi/ipmi_msghandler.c. It has code to send panic event over IMPI. The code is pretty complex. Of course if we a going to implement something more complex than simple hypercall for panic notification we better do something more interesting with it than just saying panic

KVM on 440GP

2010-01-22 Thread Corey Minyard
I'm playing around with KVM on an ebony board (440GP), just trying to get it to work, really. I followed the instructions at http://www.linux-kvm.org/page/PowerPC and I used the 2.6.33 branch of the kvm kernel repository. When I try to run kvm, qemu appears to abort and actually logs me off.

Re: KVM on 440GP

2010-01-22 Thread Corey Minyard
Corey Minyard wrote: I'm playing around with KVM on an ebony board (440GP), just trying to get it to work, really. I followed the instructions at http://www.linux-kvm.org/page/PowerPC and I used the 2.6.33 branch of the kvm kernel repository. When I try to run kvm, qemu appears to abort

Re: KVM on 440GP

2010-01-22 Thread Corey Minyard
Hollis Blanchard wrote: Thanks! The patch looks good to me. It's unfortunate that 440GP is reported is ppc440gp, while every other 440 variant is reported is ppc440, but that's just how it goes I guess. It shouldn't be too difficult to get things working, since the cores are more or less the

Re: KVM on 440GP

2010-01-22 Thread Corey Minyard
Alexander Graf wrote: I'm using the qemu at git://git.savannah.nongnu.org/qemu.git, not the one at git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git, because the latter wouldn't build. I suppose those are the build problems you speak of. I'll see if I can get the latter working.

Re: KVM on 440GP

2010-01-22 Thread Corey Minyard
Alexander Graf wrote: On 22.01.2010, at 19:29, Corey Minyard wrote: Alexander Graf wrote: I'm using the qemu at git://git.savannah.nongnu.org/qemu.git, not the one at git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git, because the latter wouldn't build. I suppose those