]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
18 years ago* TODO qemud/conf.c src/virsh.c src/xend_internal.c src/xs_internal.c:
Daniel Veillard [Fri, 23 Mar 2007 16:15:07 +0000 (16:15 +0000)]
* TODO qemud/conf.c src/virsh.c src/xend_internal.c src/xs_internal.c:
  replaced all sprintf instances by snprintf ones
Daniel

18 years ago* src/xen_internal.c: Fix detection of host PAE capabilities,
Richard W.M. Jones [Fri, 23 Mar 2007 09:18:24 +0000 (09:18 +0000)]
* src/xen_internal.c: Fix detection of host PAE capabilities,
  nul-terminate the token in the output XML and a couple of
  cleanups for determining structure sizes.

18 years ago* qemud/iptables.c qemud/qemud.c src/conf.c src/hash.c src/libvirt.c
Daniel Veillard [Thu, 22 Mar 2007 18:30:57 +0000 (18:30 +0000)]
* qemud/iptables.c qemud/qemud.c src/conf.c src/hash.c src/libvirt.c
  src/virsh.c src/xm_internal.c: change malloc/memset(0) pairs to
  using calloc()
Daniel

18 years ago* docs/*.html: repair the damages made by Amaya on the content
Daniel Veillard [Thu, 22 Mar 2007 15:17:31 +0000 (15:17 +0000)]
* docs/*.html: repair the damages made by Amaya on the content
  of documentation following feedback from Simon Hernandez
Daniel

18 years ago* src/virsh.c: applied patch from Masayuki Sunou to avoid a bug
Daniel Veillard [Thu, 22 Mar 2007 10:27:54 +0000 (10:27 +0000)]
* src/virsh.c: applied patch from Masayuki Sunou to avoid a bug
  when using a wrong CPU number in vcpupin and report the error
Daniel

18 years ago* libvirt.spec.in: one more extra fix for autostart dir from
Daniel Veillard [Thu, 22 Mar 2007 09:39:43 +0000 (09:39 +0000)]
* libvirt.spec.in: one more extra fix for autostart dir from
  Florian La Roche, should fix #233409
Daniel

18 years agoRemove realloc call which caused overflow
Daniel P. Berrange [Wed, 21 Mar 2007 15:32:32 +0000 (15:32 +0000)]
Remove realloc call which caused overflow

18 years ago* qemud/buf.c src/xml.c: clarified virBufferGrow (and bufferGrow)
Daniel Veillard [Wed, 21 Mar 2007 15:24:56 +0000 (15:24 +0000)]
* qemud/buf.c src/xml.c: clarified virBufferGrow (and bufferGrow)
  routines documentation and fixes a couple of places where this
  was misused as pointed by Daniel Berrange.
Daniel

18 years agoFixed typo
Daniel P. Berrange [Wed, 21 Mar 2007 15:22:31 +0000 (15:22 +0000)]
Fixed typo

18 years agoEnable compiler stack protection flags
Daniel P. Berrange [Wed, 21 Mar 2007 14:52:12 +0000 (14:52 +0000)]
Enable compiler stack protection flags

18 years agoFixed buffer overflow in qemu networking
Daniel P. Berrange [Tue, 20 Mar 2007 16:50:42 +0000 (16:50 +0000)]
Fixed buffer overflow in qemu networking

18 years ago* src/virsh.c: add error messages for negative memory size as
Daniel Veillard [Tue, 20 Mar 2007 15:31:46 +0000 (15:31 +0000)]
* src/virsh.c: add error messages for negative memory size as
  pointed out by Masayuki Sunou
Daniel

18 years ago* src/xen_internal.c: applied patch from Atsushi SAKAI fixing
Daniel Veillard [Tue, 20 Mar 2007 15:22:39 +0000 (15:22 +0000)]
* src/xen_internal.c: applied patch from Atsushi SAKAI fixing
  direct hypervisor calls on some recent Xen versions
Daniel

18 years ago* libvirt.spec.in: missing /etc/libvirt/qemu/networks/autostart
Daniel Veillard [Tue, 20 Mar 2007 14:49:43 +0000 (14:49 +0000)]
* libvirt.spec.in: missing /etc/libvirt/qemu/networks/autostart
Daniel

18 years ago* src/virsh.c: applied patch from Jim Meyering to add printf-style
Daniel Veillard [Mon, 19 Mar 2007 14:20:30 +0000 (14:20 +0000)]
* src/virsh.c: applied patch from Jim Meyering to add printf-style
  function checking in virsh.c and fix one warning raised
Daniel

18 years ago* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
Daniel Veillard [Mon, 19 Mar 2007 14:18:05 +0000 (14:18 +0000)]
* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
  removing global variables (using named enum instead).
Daniel

18 years ago* src/libvirt.c: patch from Atsushi SAKAI, fixing virsh access
Daniel Veillard [Mon, 19 Mar 2007 10:15:52 +0000 (10:15 +0000)]
* src/libvirt.c: patch from Atsushi SAKAI, fixing virsh access
  as root when libvirt_qemud is not running
* TODO: updated
Daniel

18 years ago* src/virsh.c: patch from Masayuki Sunou, checking that byte
Daniel Veillard [Mon, 19 Mar 2007 09:46:13 +0000 (09:46 +0000)]
* src/virsh.c: patch from Masayuki Sunou, checking that byte
  values passed to virsh memory commands are positive.
Daniel

18 years agolast changes for 0.2.1, daniel
Daniel Veillard [Fri, 16 Mar 2007 22:26:55 +0000 (22:26 +0000)]
last changes for 0.2.1, daniel

18 years ago* NEWS libvirt.spec.in docs/libvir.html docs/news.html: preparing
Daniel Veillard [Fri, 16 Mar 2007 19:31:14 +0000 (19:31 +0000)]
* NEWS libvirt.spec.in docs/libvir.html docs/news.html: preparing
  release of libvirt-0.2.1
Daniel

18 years ago* docs/*: updated the format section, augmented Networking with
Daniel Veillard [Fri, 16 Mar 2007 18:33:53 +0000 (18:33 +0000)]
* docs/*: updated the format section, augmented Networking with
  description provided by Daniel Berrange
* po/*: regenerated
Daniel

18 years ago* qemud/conf.c qemud/driver.h qemud/internal.h src/internal.h
Daniel Veillard [Fri, 16 Mar 2007 15:03:21 +0000 (15:03 +0000)]
* qemud/conf.c qemud/driver.h qemud/internal.h src/internal.h
  src/sexpr.h src/test.c src/xm_internal.c src/xml.c src/xml.h:
  applied patch from Richard Jones adding check to printf-like
  functions and fixing the problems raised
Daniel

18 years ago* src/xml.c tests/sexpr2xmltest.c tests/xmconfigtest.c: avoid
Daniel Veillard [Fri, 16 Mar 2007 14:55:51 +0000 (14:55 +0000)]
* src/xml.c tests/sexpr2xmltest.c tests/xmconfigtest.c: avoid
  warnings when compiling without Xen
Daniel

18 years ago* python/generator.py: patch from Tatsuro Enokura to fix
Daniel Veillard [Fri, 16 Mar 2007 10:44:44 +0000 (10:44 +0000)]
* python/generator.py: patch from Tatsuro Enokura to fix
  virNetworkDefine binding
Daniel

18 years agoFixed use of regexps in capabilities APIs
Daniel P. Berrange [Thu, 15 Mar 2007 18:59:47 +0000 (18:59 +0000)]
Fixed use of regexps in capabilities APIs

18 years agoFixed two bugs in QEMU impl of capabilities call
Daniel P. Berrange [Thu, 15 Mar 2007 18:23:00 +0000 (18:23 +0000)]
Fixed two bugs in QEMU impl of capabilities call

18 years agoFixed uninitialized value warning
Daniel P. Berrange [Thu, 15 Mar 2007 18:15:14 +0000 (18:15 +0000)]
Fixed uninitialized value warning

18 years agoChange installation of default network XML in RPM
Daniel P. Berrange [Thu, 15 Mar 2007 17:51:11 +0000 (17:51 +0000)]
Change installation of default network XML in RPM

18 years agoOops forgot them, daniel
Daniel Veillard [Thu, 15 Mar 2007 17:30:04 +0000 (17:30 +0000)]
Oops forgot them, daniel

18 years ago* include/libvirt/libvirt.h[.in] include/libvirt/virterror.h
Daniel Veillard [Thu, 15 Mar 2007 17:24:56 +0000 (17:24 +0000)]
* include/libvirt/libvirt.h[.in] include/libvirt/virterror.h
  proxy/libvirt_proxy.c qemud/Makefile.am qemud/conf.c qemud/conf.h
  qemud/dispatch.c qemud/internal.h qemud/protocol.h
  src/driver.h src/internal.h src/libvirt.c src/libvirt_sym.version
  src/proxy_internal.c src/proxy_internal.h src/qemu_internal.c
  src/test.c src/virsh.c src/virterror.c src/xen_internal.c
  src/xen_internal.h src/xend_internal.c src/xm_internal.c
  src/xml.h src/xs_internal.c: applied patch from Richard Jones
  adding virConnectGetCapabilities(), plus various small little
  fixes
* docs/*: fixed the api extractor script and regenerated
Daniel

18 years ago* python/generator.py: fix the python binding generation for
Daniel Veillard [Thu, 15 Mar 2007 15:23:21 +0000 (15:23 +0000)]
* python/generator.py: fix the python binding generation for
  virNetworkLookup...() functions, which were clashing with
  equivalent virConnLookup...() equivalents, as reported by
  Tatsuro Enokura
Daniel

18 years ago* src/virsh.c src/xen_internal.c: applied patch from Atsushi SAKAI
Daniel Veillard [Thu, 15 Mar 2007 14:27:09 +0000 (14:27 +0000)]
* src/virsh.c src/xen_internal.c: applied patch from Atsushi SAKAI
  to better handle the case where there is no limit in the domain
  upper memory size
* docs/architecture.html docs/format.html docs/intro.html
  docs/libvir.html: started to update the documentation to reflect
  the current state
Daniel

18 years ago* configure.in proxy/Makefile.am proxy/libvirt_proxy.c
Daniel Veillard [Thu, 15 Mar 2007 07:43:16 +0000 (07:43 +0000)]
* configure.in proxy/Makefile.am proxy/libvirt_proxy.c
  src/Makefile.am src/libvirt.c src/qemu_internal.c src/test.c
  src/xen_internal.c src/xen_internal.h src/xend_internal.c
  src/xm_internal.c src/xml.c src/xs_internal.c
  tests/Makefile.am tests/sexpr2xmltest.c tests/xmconfigtest.c:
  allow selective compilation of Xen,QEmu/KVM and test support
  in or out at configure time. Also allows to compile on a system
  without Xen development installed. All drivers are selected by
  default.
Daniel

18 years ago* src/xend_internal.c: applied patch from Kazuki Mizushima, an
Daniel Veillard [Wed, 14 Mar 2007 13:14:50 +0000 (13:14 +0000)]
* src/xend_internal.c: applied patch from Kazuki Mizushima, an
  inversion between shutoff and shutdown flags
* po/* doc/*: automatic update
Daniel

18 years agoImprove support for virtual networking
Daniel P. Berrange [Tue, 13 Mar 2007 22:43:22 +0000 (22:43 +0000)]
Improve support for virtual networking

18 years agoFixed generation of UUIDs to work on upgrades
Daniel P. Berrange [Tue, 13 Mar 2007 03:18:52 +0000 (03:18 +0000)]
Fixed generation of UUIDs to work on upgrades

18 years agoAutogenerate UUID for default network
Daniel P. Berrange [Mon, 12 Mar 2007 16:32:43 +0000 (16:32 +0000)]
Autogenerate UUID for default network

18 years agoGenerate random UUID for network config
Daniel P. Berrange [Mon, 12 Mar 2007 14:10:14 +0000 (14:10 +0000)]
Generate random UUID for network config

18 years agoExport virConf symbols with leading __
Daniel P. Berrange [Fri, 9 Mar 2007 20:47:12 +0000 (20:47 +0000)]
Export virConf symbols with leading __

18 years agoAdded python bindings for networking APIs
Daniel P. Berrange [Fri, 9 Mar 2007 15:42:50 +0000 (15:42 +0000)]
Added python bindings for networking APIs

18 years ago* src/virsh.c: bad pointer/int mismatch fixes from Richard Jones
Daniel Veillard [Fri, 9 Mar 2007 13:44:24 +0000 (13:44 +0000)]
* src/virsh.c: bad pointer/int mismatch fixes from Richard Jones
daniel

18 years agoFix double free in XML parsing
Daniel P. Berrange [Fri, 9 Mar 2007 03:08:34 +0000 (03:08 +0000)]
Fix double free in XML parsing

18 years agoMake sure to create system socket directory
Daniel P. Berrange [Thu, 8 Mar 2007 23:31:28 +0000 (23:31 +0000)]
Make sure to create system socket directory

18 years agoMake compiler warnings fatal errors for automated builds
Daniel P. Berrange [Thu, 8 Mar 2007 21:32:18 +0000 (21:32 +0000)]
Make compiler warnings fatal errors for automated builds

18 years agoIncorporate automated build number if RPM release
Daniel P. Berrange [Thu, 8 Mar 2007 21:31:20 +0000 (21:31 +0000)]
Incorporate automated build number if RPM release

18 years agoFix misc bugs in qemu connection opening
Daniel P. Berrange [Thu, 8 Mar 2007 15:16:01 +0000 (15:16 +0000)]
Fix misc bugs in qemu connection opening

18 years agoRefactored driver reg to avoid type-punning
Daniel P. Berrange [Thu, 8 Mar 2007 14:53:41 +0000 (14:53 +0000)]
Refactored driver reg to avoid type-punning

18 years agoOops forgot one part, Daniel
Daniel Veillard [Thu, 8 Mar 2007 14:17:32 +0000 (14:17 +0000)]
Oops forgot one part, Daniel

18 years ago* src/internal.h src/xend_internal.c src/xm_internal.c src/xml.c:
Daniel Veillard [Thu, 8 Mar 2007 14:12:06 +0000 (14:12 +0000)]
* src/internal.h src/xend_internal.c src/xm_internal.c src/xml.c:
  add a check for minimal size of Xen Dom0, track places where we
  had arbitrary minimal memory requirement and use a predefined
  macro to clean this up.
Daniel

18 years agoDon't try to create default.xml autostart link if it already exists
Daniel P. Berrange [Thu, 8 Mar 2007 14:00:00 +0000 (14:00 +0000)]
Don't try to create default.xml autostart link if it already exists

18 years agoAdded Nobuhiro Itou and Masayuki Sunou to AUTHORS
Daniel P. Berrange [Thu, 8 Mar 2007 13:49:47 +0000 (13:49 +0000)]
Added  Nobuhiro Itou and Masayuki Sunou  to AUTHORS

18 years agoAdded --readonly flag to virsh
Daniel P. Berrange [Thu, 8 Mar 2007 13:48:22 +0000 (13:48 +0000)]
Added --readonly flag to virsh

18 years ago* src/xml.c: applied patch from Nobuhiro Itou to allow the
Daniel Veillard [Thu, 8 Mar 2007 08:55:56 +0000 (08:55 +0000)]
* src/xml.c: applied patch from Nobuhiro Itou to allow the
  VNC port 5900 to be used with xend, it's an edge case.
Daniel

18 years ago* include/libvirt/libvirt.h include/libvirt/libvirt.h.in
Daniel Veillard [Thu, 8 Mar 2007 08:31:07 +0000 (08:31 +0000)]
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in
  src/driver.h src/libvirt.c src/libvirt_sym.version
  src/proxy_internal.c src/qemu_internal.c src/test.c src/virsh.c
  src/xen_internal.c src/xen_internal.h src/xend_internal.c
  src/xm_internal.c src/xs_internal.c: applied patch from
  Masayuki Sunou to add and entry point to check the maximum
  number of virtual CPU supported by a virtualization mechanism
* doc/*.html doc/libvirt-*.xml: regenerated the interfaces descriptions
  and associated docs.
Daniel

18 years agoWed Mar 07 11:53:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 7 Mar 2007 11:54:29 +0000 (11:54 +0000)]
Wed Mar 07 11:53:22 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/default-network.xml: add a default network

        * qemud/Makefile.am: install it, and the autostart symlink

        * libvirt.spec.in: update

18 years agoRemove unused argv/argc
Daniel P. Berrange [Tue, 6 Mar 2007 22:59:03 +0000 (22:59 +0000)]
Remove unused argv/argc

18 years agovirGetDomain/Network require non-NULL name & UUID
Daniel P. Berrange [Tue, 6 Mar 2007 22:06:14 +0000 (22:06 +0000)]
virGetDomain/Network require non-NULL name & UUID

18 years agoFixed up numerous compiler warnings
Daniel P. Berrange [Tue, 6 Mar 2007 21:55:44 +0000 (21:55 +0000)]
Fixed up numerous compiler warnings

18 years agoAdded support for keymap in VNC display
Daniel P. Berrange [Tue, 6 Mar 2007 20:00:17 +0000 (20:00 +0000)]
Added support for keymap in VNC display

18 years agoFixed unlink of readonly mode socket
Daniel P. Berrange [Tue, 6 Mar 2007 16:51:48 +0000 (16:51 +0000)]
Fixed unlink of readonly mode socket

18 years agoRemove bogus ATTRIBUTE_UNUSED annotation
Daniel P. Berrange [Mon, 5 Mar 2007 17:20:09 +0000 (17:20 +0000)]
Remove bogus ATTRIBUTE_UNUSED annotation

18 years agoWait for monitor at startup
Daniel P. Berrange [Mon, 5 Mar 2007 17:15:20 +0000 (17:15 +0000)]
Wait for monitor at startup

18 years agoMon Mar 05 16:39:54 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 5 Mar 2007 16:40:34 +0000 (16:40 +0000)]
Mon Mar 05 16:39:54 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: don't try and listen to a null socket
        path when run as a session daemon. Noticed by Rich Jones

18 years agoMon Mar 05 11:33:18 IST 2007 Mark McLoughlin <markmc@redhat.com:
Mark McLoughlin [Mon, 5 Mar 2007 12:34:27 +0000 (12:34 +0000)]
Mon Mar 05 11:33:18 IST 2007 Mark McLoughlin <markmc@redhat.com:

        * qemud/driver.c: fix a couple of invalid free() calls

18 years agoMon Mar 05 11:07:38 IST 2007 Mark McLoughlin <markmc@redhat.com:
Mark McLoughlin [Mon, 5 Mar 2007 11:10:06 +0000 (11:10 +0000)]
Mon Mar 05 11:07:38 IST 2007 Mark McLoughlin <markmc@redhat.com:

        * libvirt.spec.in: BuildRequires: /sbin/iptables and
        run configure with the --with-init-script and
        --with-qemud-pid-file parameters.

        * configure.in: it's --with-qemud-pid-file, not
        --with-pid-file

18 years agoMon Mar 05 10:52:02 IST 2007 Mark McLoughlin <markmc@redhat.com:
Mark McLoughlin [Mon, 5 Mar 2007 10:56:02 +0000 (10:56 +0000)]
Mon Mar 05 10:52:02 IST 2007 Mark McLoughlin <markmc@redhat.com:

        * libvirt.spec.in: sync some of the chanes from dist-cvs
        so that this looks pretty much as it should do for the
        next release.

18 years agoOptimize lookup-by-UUID for new XenD
Daniel P. Berrange [Fri, 2 Mar 2007 20:19:08 +0000 (20:19 +0000)]
Optimize lookup-by-UUID for new XenD

18 years agoFix vncdisplay command in virsh
Daniel P. Berrange [Fri, 2 Mar 2007 14:22:33 +0000 (14:22 +0000)]
Fix vncdisplay command in virsh

18 years agoChange way we look for xend errors (Kazuki Mizushima )
Daniel P. Berrange [Thu, 1 Mar 2007 23:24:09 +0000 (23:24 +0000)]
Change way we look for xend errors  (Kazuki Mizushima )

18 years agoThu Mar 01 16:17:48 EST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 1 Mar 2007 16:18:55 +0000 (16:18 +0000)]
Thu Mar 01 16:17:48 EST 2007 Mark McLoughlin <markmc@redhat.com>

        * acinclude.m4: add LIBVIRT_COMPILE_WARNINGS, copied from
        GNOME but with a few more flags we'd been using.

        * configure.in: use that instead of setting CFLAGS
        directly.

        * proxy/Makefile.am, python/Makefile.am, qemud/Makefile.am,
          src/Makefile.am, tests/Makefile.am: use $(WARN_CFLAGS)

18 years agoThu Mar 01 16:00:12 EST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 1 Mar 2007 16:01:39 +0000 (16:01 +0000)]
Thu Mar 01 16:00:12 EST 2007 Mark McLoughlin <markmc@redhat.com>

        Fix from Richard W.M. Jones <rjones@redhat.com>

        * proxy/libvirt_proxy.c: include locale.h

18 years agoAdded additional check for failure of core dump on domain-0
Daniel P. Berrange [Tue, 27 Feb 2007 15:50:03 +0000 (15:50 +0000)]
Added additional check for failure of core dump on domain-0

18 years agoFix SEGV in tab completion of virsh commands
Daniel P. Berrange [Tue, 27 Feb 2007 15:35:50 +0000 (15:35 +0000)]
Fix SEGV in tab completion of virsh commands

18 years agoFixed virsh command line arg handling for -t option
Daniel P. Berrange [Tue, 27 Feb 2007 15:32:18 +0000 (15:32 +0000)]
Fixed virsh command line arg handling for -t option

18 years agoDon't hardcode port=5900+domid for new xend
Daniel P. Berrange [Tue, 27 Feb 2007 15:22:13 +0000 (15:22 +0000)]
Don't hardcode port=5900+domid for new xend

18 years agoMon Feb 26 15:33:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 26 Feb 2007 15:34:24 +0000 (15:34 +0000)]
Mon Feb 26 15:33:08 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c, qemud/uuid.[ch]: move qemudParseUUID()
        into uuid.c

18 years agoMon Feb 26 15:31:23 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 26 Feb 2007 15:32:27 +0000 (15:32 +0000)]
Mon Feb 26 15:31:23 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/uuid.[ch]: add uuid generation code

        * qemud/Makefile.am: build it

        * qemud/conf.c: generate a UUID if not specified in the XML

18 years agoMon Feb 26 15:20:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 26 Feb 2007 15:21:38 +0000 (15:21 +0000)]
Mon Feb 26 15:20:56 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: qemudAutostartConfigs(): print the detailed
        error message from a guest/network autostart failure.

18 years agoMon Feb 26 14:20:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 26 Feb 2007 14:21:21 +0000 (14:21 +0000)]
Mon Feb 26 14:20:18 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: check for malloc failure in GenerateXML()
        and GenerateNetworkXML()

        * qemud/driver.c: free the XML output after returning it
        from the DumpXML() commands.

18 years agoIgnore code coverage data files
Daniel P. Berrange [Fri, 23 Feb 2007 17:15:42 +0000 (17:15 +0000)]
Ignore code coverage data files

18 years agoAutodetect QEMU version and adjust command line arg accordingly
Daniel P. Berrange [Fri, 23 Feb 2007 17:15:18 +0000 (17:15 +0000)]
Autodetect QEMU version and adjust command line arg accordingly

18 years agoAdded init script to RPM. Fixup paths to init script & libvirt_qemud
Daniel P. Berrange [Fri, 23 Feb 2007 15:53:56 +0000 (15:53 +0000)]
Added init script to RPM. Fixup paths to init script & libvirt_qemud

18 years agoFri Feb 23 14:32:54 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 14:33:37 +0000 (14:33 +0000)]
Fri Feb 23 14:32:54 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: don't load config files unless they have
        a ".xml" suffix, e.g. backup files ... we spew a warning
        later if we do.

18 years agoFri Feb 23 12:49:11 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 12:50:58 +0000 (12:50 +0000)]
Fri Feb 23 12:49:11 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/libvirtd.in: add init script for libvirt_qemud

        * qemud/Makefile.am: install it unless we were configured
        with --with-init-scripts=none

        * configure.in: add --with-init-scripts to allow us
        have different flavour init scripts

18 years agoFri Feb 23 12:46:44 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 12:48:36 +0000 (12:48 +0000)]
Fri Feb 23 12:46:44 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: add --pid-file and default to writing
        out a PID file to /var/run/libvirt_qemud.pid in daemon
        mode.

        * configure.in: add --with-pid-file arg

18 years agoFri Feb 23 12:45:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 12:46:35 +0000 (12:46 +0000)]
Fri Feb 23 12:45:08 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/Makefile.am: install libvirt_qemud in /usr/sbin
        instead of /usr/libexec

        * src/Makefile.am, src/qemu_internal.c: pass the correct
        path to libvirt

18 years agoFri Feb 23 10:26:24 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 10:27:53 +0000 (10:27 +0000)]
Fri Feb 23 10:26:24 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/virsh.c: in "start" and "net-start" use e.g.
        vshCommandOptDomainBy() so that we actually get an
        error message if the domain/network isn't found.

18 years agoFri Feb 23 09:11:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 09:11:52 +0000 (09:11 +0000)]
Fri Feb 23 09:11:53 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: actually autostart guests/networks at startup
        as appropriate.

18 years agoFri Feb 23 09:03:19 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 09:10:28 +0000 (09:10 +0000)]
Fri Feb 23 09:03:19 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/internal.h: put the config directory paths in
        an array in order to make them easier to initialize,
        but still expose pointers to each of them as members
        in the server struct.

        * qemud/qemud.c: cleanup the config directory path
        initialization.

18 years agoFri Feb 23 09:03:19 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 09:07:41 +0000 (09:07 +0000)]
Fri Feb 23 09:03:19 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/driver.c: maintain the autostart flag on disk
        using symlinks from the "autostart" directories to
        the corresponding config files.

        * qemud/internal.h: add paths to the autostart links
        to the vm/network structures and paths to the autostart
        dirs to the server struct.

        * qemud/qemud.c: initialize the server autostart dir
        patches.

        * qemud/conf.h: expose qemudEnsureDir()

        * qemud/conf.c: check the autostart symlinks when
        loading config files at startup.

18 years agoFri Feb 23 09:00:13 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 09:03:25 +0000 (09:03 +0000)]
Fri Feb 23 09:00:13 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/protocol.h: add the (domain/network)(Get/Set)Autostart
        requests and replies to the protocol.

        * src/qemu_internal.c: hookup the qemu driver autostart
        methods

        * qemud/dispatch.c, qemud/driver.[ch], internal.h: add
        the daemon side, but just set an in-memory autostart
        flag for now.

18 years agoFri Feb 23 08:51:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 08:58:25 +0000 (08:58 +0000)]
Fri Feb 23 08:51:05 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/virsh.c: add "autostart" and "net-autostart" commands
        and cleanup the "list" and "net-list" commands a bit.

18 years agoFri Feb 23 08:49:12 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 08:51:30 +0000 (08:51 +0000)]
Fri Feb 23 08:49:12 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * include/libvirt/libvirt.h.in, src/libvirt.c add
        virDomainGetAutostart(), virDomainSetAutostart(),
        virNetworkGetAutostart() and virNetworkSetAutostart().

        * src/libvirt_sym.version: export the API

        * src/driver.h: add methods to the driver vtables.

        * src/proxy_internal.c, src/qemu_internal.c,
          src/test.c, src/xen_internal.c, src/xend_internal.c,
          src/xm_internal.c, src/xs_internal.c: set those
        methods to NULL

18 years agoFri Feb 23 08:41:34 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 08:48:02 +0000 (08:48 +0000)]
Fri Feb 23 08:41:34 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.[ch]: significantly re-factor qemudLoadConfigXML()
        so that "parse the XML", "assign the def to a VM" and
        "save the XML" operations are in separate functions.
        Add qemudRemoveInactiveVM() and qemudRemoveInactiveNetwork().
        Report errors when loading config files at startup. Check
        that a domain/network's name matches the config filename.

        * qemud/driver.c: update the Create() and Define() functions
        to explicitly parse/assign/save. Also, fix bug where if
        Create() failed, we would free the VM without removing it
        from the inactive list.

        * qemud/qemud.c: use qemudRemoveInactiveVM/Network()

18 years agoFri Feb 23 08:40:52 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 08:41:23 +0000 (08:41 +0000)]
Fri Feb 23 08:40:52 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/driver.[ch], qemud/dispatch.c: fix the fact that
        qemudDispatchDomainStart() doesn't report an error if the uuid
        lookup fails and also move the uuid lookup into the driver
        so that it matches the way we do Destroy().

18 years agoFri Feb 22 08:37:23 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 23 Feb 2007 08:39:49 +0000 (08:39 +0000)]
Fri Feb 22 08:37:23 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c, qemud/driver.c, qemud/internal.h,
        qemud/qemud.c: Merge the ->activevms and ->inactivevms
        into a single ->vms list in order to make things
        easier to manage. Likewise for networks. Also add
        qemudIsActiveVM() and qemudIsActiveNetwork() inline
        functions.

18 years agoEnsure domains are killed off if hotplug fails. Fix deletion of inactive domains
Daniel P. Berrange [Thu, 22 Feb 2007 19:09:29 +0000 (19:09 +0000)]
Ensure domains are killed off if hotplug fails. Fix deletion of inactive domains

18 years agoUpdated AUTHORS file
Daniel P. Berrange [Thu, 22 Feb 2007 18:56:28 +0000 (18:56 +0000)]
Updated AUTHORS file

18 years agoRefuse to run shutdown/reboot on Dom0
Daniel P. Berrange [Thu, 22 Feb 2007 16:49:12 +0000 (16:49 +0000)]
Refuse to run shutdown/reboot on Dom0

18 years agoThu Feb 22 10:37:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 22 Feb 2007 10:39:38 +0000 (10:39 +0000)]
Thu Feb 22 10:37:08 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix another xml property leak.