]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: support parsing fbuf PCI device
authorFabian Freyer <fabian.freyer@physik.tu-berlin.de>
Wed, 6 May 2020 13:35:52 +0000 (13:35 +0000)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 22 Sep 2020 13:19:26 +0000 (17:19 +0400)
commitcdd31d72eda54f7f1765254b501245d1e48a944d
treec4a0d8345653e6ea9542c49f71b7de770130d477
parent54c207a13dea5ef8877c5e5f9c24c6c93f6c8865
bhyve: support parsing fbuf PCI device

Add a new helper function, bhyveParsePCIFbuf, to parse the bhyve-argv
parameters for a frame-buffer device to <graphics/> and <video/>
definitions.

For now, only the listen address, port, and vga mode are detected.
Unsupported parameters are silently skipped.

This involves upgrading the private API to expose the
virDomainGraphicsDefNew helper function, which is used by
bhyveParsePCIFbuf.

Signed-off-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
13 files changed:
src/bhyve/bhyve_parse_command.c
src/libvirt_private.syms
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-listen.args [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-listen.xml [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-io.args [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-io.xml [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-off.args [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-off.xml [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-on.args [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc-vga-on.xml [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc.args [new file with mode: 0644]
tests/bhyveargv2xmldata/bhyveargv2xml-vnc.xml [new file with mode: 0644]
tests/bhyveargv2xmltest.c