]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: implement support for commandline args
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 17 Jan 2019 15:07:20 +0000 (19:07 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 27 Jan 2019 10:54:52 +0000 (14:54 +0400)
commit0c8df11071cc91e1b34d15ad62fe8c3fab10191c
tree40db8a8f573a68759eec9a30fc9487bbdb337dc5
parent001495909b0c11e21723671f541cae66912a40f4
bhyve: implement support for commandline args

Implement support for passing custom command line arguments
to bhyve using the 'bhyve:commandline' element:

  <bhyve:commandline>
    <bhyve:arg value='-newarg'/>
  </bhyve:commandline>

 * Define virDomainXMLNamespace for the bhyve driver, which
   at this point supports only the 'commandline' element
   described above,
 * Update command generation code to inject these command line
   arguments between driver-generated arguments and the vmname
   positional argument.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
12 files changed:
docs/schemas/domaincommon.rng
src/bhyve/bhyve_command.c
src/bhyve/bhyve_conf.c
src/bhyve/bhyve_conf.h
src/bhyve/bhyve_domain.c
src/bhyve/bhyve_domain.h
tests/bhyvexml2argvdata/bhyvexml2argv-commandline.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-commandline.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-commandline.xml [new file with mode: 0644]
tests/bhyvexml2argvtest.c
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-commandline.xml [new file with mode: 0644]
tests/bhyvexml2xmltest.c