Re: [Qemu-devel] [PATCH 20/23] hyperv: process POST_MESSAGE hypercall

2017-06-14 Thread Paolo Bonzini
On 14/06/2017 16:20, Roman Kagan wrote: > On Wed, Jun 14, 2017 at 01:19:21PM +0200, Paolo Bonzini wrote: >> On 06/06/2017 20:19, Roman Kagan wrote: >>> +typedef struct MsgHandler { >>> +struct rcu_head rcu; >>> +QLIST_ENTRY(MsgHandler) le; >>> +uint32_t conn_id; >>> +HvMsgHandler

Re: [Qemu-devel] [PATCH 20/23] hyperv: process POST_MESSAGE hypercall

2017-06-14 Thread Roman Kagan
On Wed, Jun 14, 2017 at 01:19:21PM +0200, Paolo Bonzini wrote: > On 06/06/2017 20:19, Roman Kagan wrote: > > +typedef struct MsgHandler { > > +struct rcu_head rcu; > > +QLIST_ENTRY(MsgHandler) le; > > +uint32_t conn_id; > > +HvMsgHandler handler; > > +void *data; > > +} MsgHandl

Re: [Qemu-devel] [PATCH 20/23] hyperv: process POST_MESSAGE hypercall

2017-06-14 Thread Paolo Bonzini
On 06/06/2017 20:19, Roman Kagan wrote: > +typedef struct MsgHandler { > +struct rcu_head rcu; > +QLIST_ENTRY(MsgHandler) le; > +uint32_t conn_id; > +HvMsgHandler handler; > +void *data; > +} MsgHandler; > + > +static QLIST_HEAD(, MsgHandler) msg_handlers; > +static QemuMutex

[Qemu-devel] [PATCH 20/23] hyperv: process POST_MESSAGE hypercall

2017-06-06 Thread Roman Kagan
Add handling of POST_MESSAGE hypercall. For that, add an interface to regsiter a handler for the messages arrived from the guest on a particular connection id (IOW set up a message connection in Hyper-V speak). Signed-off-by: Roman Kagan --- target/i386/hyperv.h | 5 +++ target/i386/hyperv.c |