]> xenbits.xensource.com Git - libvirt.git/commit
bhyve: add vga configuration for video driver
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 9 May 2017 10:48:30 +0000 (14:48 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 27 Jun 2017 13:44:27 +0000 (17:44 +0400)
commit78fc843c7b53b5251475a5fc1ef57ecea59791b7
tree183581a2ba6f873e79112d1e395c7ec3a699be13
parente4574da0b79a1d07c89b873ed6f0275f035ae31f
bhyve: add vga configuration for video driver

Add support for vgaconf driver configuration. In domain xml it looks like
this:

  <video>
    <driver vgaconf='io|on|off'>
    <model .../>
  </video>

It was added with bhyve gop video in mind to allow users control how the
video device is exposed to the guest, specifically, how VGA I/O is
handled.

One can refer to the bhyve manual page to get more detailed description
of the possible VGA configuration options:

https://www.freebsd.org/cgi/man.cgi?query=bhyve&manpath=FreeBSD+12-current

The relevant part could be found using the 'vgaconf' keyword.

Also, add some tests for this new feature.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
20 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/bhyve/bhyve_command.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-io.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-io.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-io.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-off.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-off.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-off.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-on.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-on.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-vnc-vgaconf-on.xml [new file with mode: 0644]
tests/bhyvexml2argvtest.c
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-vnc-vgaconf-io.xml [new file with mode: 0644]
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-vnc-vgaconf-off.xml [new file with mode: 0644]
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-vnc-vgaconf-on.xml [new file with mode: 0644]
tests/bhyvexml2xmltest.c