Alexander Nusov wrote:> This patch adds support for automatic VNC port assignment for bhyve guests.>> ---> src/bhyve/bhyve_command.c | 9 +++++++++> src/bhyve/bhyve_driver.c | 5 +++++> src/bhyve/bhyve_utils.h | 3 +++> 3 files changed, 17 insertions(+)Hi Alexander,Thanks for implementing this! Overall it looks good, two comments:* It doesn't take into account domains that use VNC with portexplicitly specified. For example, if I start a domain with VNCconfiguration "port=5900 autoport=no", I will not be ableto start a domain with "autoport=yes" because it will try toto 5900 and will fail to bind.Looking at the qemu driver code, it seems it's done by callingvirPortAllocatorSetUsed().
I'm also wondering how it's handled for autostarting domains, e.g.if I have vm1[5900], vm2[5901], vm3[autoport], vm4[autoport],they'll start fine in that order, but will fail to start if goingthis way: vm3, vm4, vm1, vm2
* Nitpick: Commit message titles are usually don't end with a period.Also, they're usually prefixed with the relevant subsystem, sothis one could be "bhyve: Add support for VNC autoport feature"for example (you might glance through 'git log' for examples.