]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: extend serial devices validation
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 15 Jul 2025 18:20:12 +0000 (20:20 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 17 Jul 2025 17:29:11 +0000 (19:29 +0200)
commit79456b79f3ed88c6e1b8f02b612948036ed620fd
treec866b333f72a9b139077d1bf65a516454f58dd30
parent91a3d535c6eba554da687845195e9dfc88e394f3
bhyve: extend serial devices validation

Extend bhyveDomainDeviceDefValidate() to check that:

 - only 'nmdm' or 'tcp' serial devices are used,
 - serial device count is not more than supported,
 - only listening raw TCP sockets are used.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/bhyve/bhyve_domain.c