Re: [Qemu-devel] [PATCH 16/16] ipmi: Add a thread to better simulate a BMC

2014-12-15 Thread Corey Minyard
On 12/15/2014 03:11 PM, Paolo Bonzini wrote: > > On 12/12/2014 20:15, miny...@acm.org wrote: >> +if (s->threaded_bmc) { >> +qemu_mutex_init(&s->lock); >> +qemu_cond_init(&s->waker); >> +qemu_thread_create(&s->thread, "ipmi-bmc", ipmi_thread, s, 0); >> +} >> + >> +

Re: [Qemu-devel] [PATCH 16/16] ipmi: Add a thread to better simulate a BMC

2014-12-15 Thread Paolo Bonzini
On 12/12/2014 20:15, miny...@acm.org wrote: > +if (s->threaded_bmc) { > +qemu_mutex_init(&s->lock); > +qemu_cond_init(&s->waker); > +qemu_thread_create(&s->thread, "ipmi-bmc", ipmi_thread, s, 0); > +} > + > +if (s->threaded_bmc) { > +qemu_mutex_init(&s-

[Qemu-devel] [PATCH 16/16] ipmi: Add a thread to better simulate a BMC

2014-12-12 Thread minyard
From: Corey Minyard Run the IPMI BMC in a separate thread. This provides a little better simulation, since a BMC will normally be asynchronous to the rest of the system. Signed-off-by: Corey Minyard --- hw/ipmi/ipmi.c| 33 + hw/ipmi/ipmi.h| 47 +