Re: [PATCH 2/2] conf: Don't generate clashing machine names for embed driver

2020-03-18 Thread Andrea Bolognani
On Fri, 2020-03-13 at 17:59 +0100, Michal Privoznik wrote: [...] > -if (privileged) { > +if (root) { > +g_autofree char * hash = NULL; > + > +/* When two embed drivers start two domains with the same @name and > @id > + * we would generate a non-unique name. Include

[PATCH 2/2] conf: Don't generate clashing machine names for embed driver

2020-03-13 Thread Michal Privoznik
So far, when using the qemu:///embed driver, management applications can't chose whether they want to register their domains in machined or not. While having that option is certainly desired, it will require more work. What we can do meanwhile is to generate names that include part of hash of the r