]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add the monitor type to the domain state XML
authorMark McLoughlin <markmc@redhat.com>
Thu, 9 Jul 2009 17:06:38 +0000 (18:06 +0100)
committerMark McLoughlin <markmc@redhat.com>
Thu, 9 Jul 2009 19:04:07 +0000 (20:04 +0100)
commit05d377bdd25670c14359b7f0b4e9be545fa14ed0
tree17e623d97e6e4c7f29f0368403d9e00a245cc352
parent1f4ec305f076436a573827f7d113812489104c5b
Add the monitor type to the domain state XML

There are no functional changes in this patch apart from adding the
monitor type to the state XML.

The patch mostly consists of switching to use virDomainChrDef every
where to describe the monitor.

* src/domain_conf.h: replace monitorpath with monitor_chr

* src/domain_conf.c: handle parsing the monitor type and initializing
  monitor chr

* src/qemu_conf.[ch]: make qemudBuildCommandLine take a
  virDomainChrDefPtr and use that to build the -monitor parameter

* src/qemu_driver.c: split pty specific and common code from
  qemudOpenMonitor, have qemudStartVMDaemon() initialize monitor_chr

* tests/qemuxml2argvtest.c: update for qemudBuildCommandLine() change
src/domain_conf.c
src/domain_conf.h
src/qemu_conf.c
src/qemu_conf.h
src/qemu_driver.c
tests/qemuxml2argvtest.c