Anthony PERARD writes ("Re: [PATCH v5 11/15] libxl_dm: Pre-open QMP socket for 
QEMU"):
> On Tue, Oct 16, 2018 at 03:11:03PM +0100, Ian Jackson wrote:
> > Anthony PERARD writes ("[PATCH v5 11/15] libxl_dm: Pre-open QMP socket for 
> > QEMU"):
> > >      ret = libxl__build_device_model_args(gc, "stubdom-dm", guest_domid,
> > >                                           guest_config, &args, NULL,
> > > -                                         d_state, NULL);
> > > +                                         d_state, NULL, NULL);
> > 
> > Did you consider adding dm_monitor_fd to d_state ?
> 
> No, I didn't, I'm not sur what can go into d_state. But that seems
> better that adding an argument to many function prototypes.

I think pretty much anything to do with creating a domain can go in
there.

> On the other hand, I would need to make sure that dm_monitor_fd have a
> proper initial value (-1) when needed.

Yes, it would have to be initialised along with the other members of
libxl__domain_build_state.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to