]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
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.

18 years agoTue Feb 20 19:08:58 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 19:09:44 +0000 (19:09 +0000)]
Tue Feb 20 19:08:58 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: use strerror(errno) in some error messages
        to make them a bit more useful

18 years agoFri Feb 20 19:07:12 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 19:08:09 +0000 (19:08 +0000)]
Fri Feb 20 19:07:12 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: don't free active networks/vms if we
        fail to save the new config

18 years agoFri Feb 20 18:25:42 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 18:25:46 +0000 (18:25 +0000)]
Fri Feb 20 18:25:42 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * virsh.c: cmdNetworkList() re-indent this.

18 years agoFri Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 17:51:41 +0000 (17:51 +0000)]
Fri Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>

        Fix a few leaks

        * qemud/qemud.c: qemudCleanup(): free the socket
        structures

        * qemud/conf.c: fix various leaks in the xml parsing

        * qemud/iptables.c: fix a typo causing a leak

18 years agoFri Feb 20 16:49:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 16:55:56 +0000 (16:55 +0000)]
Fri Feb 20 16:49:53 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c, qemud/qemud.c: only create config dirs
        when actually trying to write out config.

18 years agoFri Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 09:57:47 +0000 (09:57 +0000)]
Fri Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/bridge.c: change the fix for the alignment warning
        a little.

18 years agoFri Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Tue, 20 Feb 2007 09:04:27 +0000 (09:04 +0000)]
Fri Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: clean up qemudInitialize() and qemudListen()
        so as to coalesce the two "system vs. user" code paths and
        fix up some problems noticed by dan.

18 years agoFri Feb 19 16:59:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 19 Feb 2007 17:00:05 +0000 (17:00 +0000)]
Fri Feb 19 16:59:18 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: don't shutdown guest and networks on
        SIGHUP

18 years agoFri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Mon, 19 Feb 2007 16:59:15 +0000 (16:59 +0000)]
Fri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: handle SIGQUIT.

18 years agoFixed data type casts to address endianness issues on ia64
Daniel P. Berrange [Mon, 19 Feb 2007 15:01:20 +0000 (15:01 +0000)]
Fixed data type casts to address endianness issues on ia64

18 years agoFri Feb 16 18:28:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 16 Feb 2007 18:30:55 +0000 (18:30 +0000)]
Fri Feb 16 18:28:32 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c, qemud/dispatch.c, qemud/internal.h
        qemud/conf.c, qemud/driver.c, configure.in: add a
        qemudLog() function which uses syslog() if we're in daemon
        mode, doesn't output INFO/DEBUG messages unless the
        verbose flag is set and doesn't output DEBUG messages
        unless compiled with --enable-debug. Also, make a first
        pass through fatal errors and add error messages for them.

18 years agoFri Feb 16 18:26:55 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 16 Feb 2007 18:28:17 +0000 (18:28 +0000)]
Fri Feb 16 18:26:55 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/internal.h, qemud/qemud.c: improve signal handling
        and handle SIGHUP by shutting down all guests and networks
        and re-loading configs, and handle SIGINT and SIGTERM
        by shutting down cleanly.

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

* qemud/qemud.c, qemud/bridge.c, qemud/iptables.c: fix
our FD_CLOEXEC usage so that all fds which should be
closed on exec are marked as such and that we leave
exec() to do the actual closing.

18 years agoFri Feb 16 18:23:15 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 16 Feb 2007 18:24:14 +0000 (18:24 +0000)]
Fri Feb 16 18:23:15 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/qemud.c: fix qemudEnableIpForwarding() to not leak
        an fd if writing to /proc/sys/net/ipv4/ip_forward fails.

18 years agoIgnore libvirt-*.tar.gz
Daniel P. Berrange [Fri, 16 Feb 2007 17:06:38 +0000 (17:06 +0000)]
Ignore  libvirt-*.tar.gz

18 years agoRemove now redundant BuildRequires on gnutls
Daniel P. Berrange [Fri, 16 Feb 2007 17:04:51 +0000 (17:04 +0000)]
Remove now redundant BuildRequires on gnutls

18 years agoIgnore coverage & results.og files
Daniel P. Berrange [Fri, 16 Feb 2007 16:58:46 +0000 (16:58 +0000)]
Ignore coverage & results.og files

18 years agoIgnore autogenerated file remove-potcdate.sed
Daniel P. Berrange [Fri, 16 Feb 2007 16:58:19 +0000 (16:58 +0000)]
Ignore autogenerated file remove-potcdate.sed

18 years agoFixed test suite linkage
Daniel P. Berrange [Fri, 16 Feb 2007 16:56:47 +0000 (16:56 +0000)]
Fixed test suite linkage

18 years agoRemove init method
Daniel P. Berrange [Fri, 16 Feb 2007 16:04:54 +0000 (16:04 +0000)]
Remove init method

18 years agoRemove mistaken includes for gnutls
Daniel P. Berrange [Fri, 16 Feb 2007 15:44:08 +0000 (15:44 +0000)]
Remove mistaken includes for gnutls

18 years agoThu Feb 15 19:07:24 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 19:08:08 +0000 (19:08 +0000)]
Thu Feb 15 19:07:24 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix <interface type='network'> output

18 years agoThu Feb 15 19:06:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 19:07:06 +0000 (19:07 +0000)]
Thu Feb 15 19:06:56 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix the <graphics> output - we weren't
        handling sdl

18 years agoThu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 19:06:10 +0000 (19:06 +0000)]
Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix a couple of typos

18 years agoThu Feb 15 19:05:48 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 19:05:27 +0000 (19:05 +0000)]
Thu Feb 15 19:05:48 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix segfault

18 years agoThu Feb 15 19:04:10 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 19:04:45 +0000 (19:04 +0000)]
Thu Feb 15 19:04:10 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.h: move qemudFreeVMDef() down a bit

18 years agoThu Feb 15 16:00:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 16:01:09 +0000 (16:01 +0000)]
Thu Feb 15 16:00:05 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/bridge.c: don't output bridge parameters if they
        are the default.

18 years agoThu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 16:00:16 +0000 (16:00 +0000)]
Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>

* qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
  qemud/qemud.c, qemud/driver.c: allow re-defining network
configs; basically copying dan's patch for domains.

18 years agoThu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 15:57:43 +0000 (15:57 +0000)]
Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
          qemud/qemud.c, qemud/driver.c: allow re-defining network
        configs; basically copying dan's patch for domains.

18 years agoThu Feb 15 15:47:46 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 15 Feb 2007 15:52:28 +0000 (15:52 +0000)]
Thu Feb 15 15:47:46 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: fix a couple of qemud_vm_def leaks

        * driver.c: simplify qemudDomainDefine()

18 years agoPre-create the toplevel libvirt config directory
Daniel P. Berrange [Wed, 14 Feb 2007 22:01:40 +0000 (22:01 +0000)]
Pre-create the toplevel libvirt config directory

18 years agoFix <features> block. Only include ID & VNC port for active domain XML
Daniel P. Berrange [Wed, 14 Feb 2007 21:47:59 +0000 (21:47 +0000)]
Fix <features> block. Only include ID & VNC port for active domain XML

18 years agoFixed path for autostarting daemon
Daniel P. Berrange [Wed, 14 Feb 2007 21:46:06 +0000 (21:46 +0000)]
Fixed path for autostarting daemon

18 years ago* libvirt.spec.in: spec cleanup and missing BuildRequires
Daniel Veillard [Wed, 14 Feb 2007 18:54:26 +0000 (18:54 +0000)]
* libvirt.spec.in: spec cleanup and missing BuildRequires
* qemud/Makefile.am: avoid -Werror
daniel

18 years ago* configure.in NEWS include/libvirt/libvirt.h docs/* docs/apibuild.py:
Daniel Veillard [Wed, 14 Feb 2007 18:08:45 +0000 (18:08 +0000)]
* configure.in NEWS include/libvirt/libvirt.h docs/* docs/apibuild.py:
  prepare release of 0.2.0, update doc, avoid console module for API.
* po/*: regenerated
Daniel

18 years agoAdded libsysfs-devel dep & pre-create config/socket dir
Daniel P. Berrange [Wed, 14 Feb 2007 17:36:39 +0000 (17:36 +0000)]
Added libsysfs-devel dep & pre-create config/socket dir

18 years agoMoved qemu sockets/configs
Daniel P. Berrange [Wed, 14 Feb 2007 17:35:38 +0000 (17:35 +0000)]
Moved qemu sockets/configs

18 years agoBlacklist vshRunConsole from python
Daniel P. Berrange [Wed, 14 Feb 2007 17:20:27 +0000 (17:20 +0000)]
Blacklist vshRunConsole from python

18 years agoUpdated po files
Daniel P. Berrange [Wed, 14 Feb 2007 17:19:18 +0000 (17:19 +0000)]
Updated po files

18 years agoRefactor to allowing changing config of active domains
Daniel P. Berrange [Wed, 14 Feb 2007 17:05:55 +0000 (17:05 +0000)]
Refactor to allowing changing config of active domains

18 years agoTue Feb 14 16:53:25 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:53:55 +0000 (16:53 +0000)]
Tue Feb 14 16:53:25 IST 2007 Mark McLoughlin <markmc@redhat.com>

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

        * virsh.c: add a colon after the connect arg to
        getopt_long()

18 years agoTue Feb 14 16:48:24 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:48:51 +0000 (16:48 +0000)]
Tue Feb 14 16:48:24 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/qemu_internal.c: correctly register the network
        driver

18 years agoTue Feb 14 16:35:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:35:47 +0000 (16:35 +0000)]
Tue Feb 14 16:35:56 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * autogen.sh: run autoheader before automake

18 years agoTue Feb 14 16:23:25 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:26:42 +0000 (16:26 +0000)]
Tue Feb 14 16:23:25 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/iptables.[ch]: add code for managing iptables
        rules.

        * qemud/Makefile.am: add iptables.[ch].

        * qemud/qemud.c: add and remove iptables rules as
        appropriate.

        * qemud/conf.c: when starting a guess, add a rule
        allowing it to forward packets across the networks
        bridge.

        * qemud/internal.h: add iptables context ptr

        * configure.in: add --with-iptables-dir and
        --with-iptables-prefix to allow us to put our rules
        in a chain with the given prefix and save the rules
        in files in the given dir so as to integrate with
        the proposed "service iptables restart" solution
        in:

           https://bugzilla.redhat.com/227011

18 years agoTue Feb 14 16:21:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:22:02 +0000 (16:22 +0000)]
Tue Feb 14 16:21:18 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/xml.c: with <interface type="network"> connect the
        Xen guest to the appropriate bridge.

18 years agoTue Feb 14 16:17:51 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:20:38 +0000 (16:20 +0000)]
Tue Feb 14 16:17:51 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * include/libvirt/libvirt.h.in, src/libvirt.c: add
        virNetworkGetBridgeName() to allow finding out what
        bridge to connect to in order to join a network.

        * src/driver.h: add networkGetBridgeName() to vtable.

        * qemud/protocol.h: add the request and reply to
        the qemud protocol.

        * qemud/dispatch.c, qemud/driver.[ch]: handle them
        here.

        * src/qemu_internal.c: implement GetBridgeName()
        in the qemu driver.

        * src/libvirt_sym.version: add new symbol.

18 years agoTue Feb 14 16:14:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:16:13 +0000 (16:16 +0000)]
Tue Feb 14 16:14:32 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/xend_internal.c, src/xm_internal.c: pass the
        connection to virDomainParseXMLDesc()

        * src/xml.[ch]: make virDomainParseXMLDesc accept
        a virConnectPtr so that we can use it later to
        lookup the bridge associated with a network

        * tests/xml2sexprtest.c: just pass NULL here, it's
        safe

18 years agoTue Feb 14 16:08:55 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:09:37 +0000 (16:09 +0000)]
Tue Feb 14 16:08:55 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c: add support for connecting a qemu
        guest to a bridge using a tap device in order to
        connect it to a virtual network.

        * qemud/internal.h: add <interface type="network">
        config and track tapfds so as to not close them
        on exec.

        * qemud/qemud.c: don't close tapfds on exec and
        disconnect the iface when the guest shuts down.

18 years agoTue Feb 14 15:07:26 EST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:07:27 +0000 (16:07 +0000)]
Tue Feb 14 15:07:26 EST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/conf.h: fix merge error - remove the argc argument
        from qemudBuildCommandLine()

18 years agoTue Feb 14 16:04:48 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:05:29 +0000 (16:05 +0000)]
Tue Feb 14 16:04:48 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.c, qemud/internal.h: add dhcp config

        * qemud/qemud.c: start dnsmasq to provide dns/dhcp
        for virtual networks.

18 years agoTue Feb 14 15:03:22 EST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:04:55 +0000 (16:04 +0000)]
Tue Feb 14 15:03:22 EST 2007 Mark McLoughlin <markmc@redhat.com>

        * src/virsh.c: Re-name some of the VSH_DOMBYFOO stuff
        to VSH_BYFOO in order to re-use it for the network stuff.

18 years agoTue Feb 14 16:02:23 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 16:02:40 +0000 (16:02 +0000)]
Tue Feb 14 16:02:23 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * configure.in: add --disable-bridge-params, check
        for libsysfs and various kernel headers

        * bridge.[ch]: add code for managing bridges

        * qemud/Makefile.am: add bridge.[ch] and link against
        libsysfs if enabled.

        * qemud/conf.c: add support for bridge config.

        * qemud/internal.h: add various bridging bits

        * qemud/qemud.c: implement qemudStartNetworkDaemon()
        and qemudShutdownNetworkDaemon().

18 years agoTue Feb 14 14:58:35 EST 2007 Mark McLoughlin <markmc@redhat.com
Mark McLoughlin [Wed, 14 Feb 2007 15:59:40 +0000 (15:59 +0000)]
Tue Feb 14 14:58:35 EST 2007 Mark McLoughlin <markmc@redhat.com

        * src/hash.c, src/internal.h: Re-name virConnect->domains_mux
        to virConnect->hashes_mux since it will also be used to
        protect the networks hash.

18 years agoTue Feb 14 14:57:52 EST 2007 Mark McLoughlin <markmc@redhat.com
Mark McLoughlin [Wed, 14 Feb 2007 15:58:21 +0000 (15:58 +0000)]
Tue Feb 14 14:57:52 EST 2007 Mark McLoughlin <markmc@redhat.com

        * src/conf.c: qemudSaveConfig() will always report a
        more specific error, so we should avoid overwriting
        this error.

18 years agoTue Feb 14 15:55:02 IST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 15:58:06 +0000 (15:58 +0000)]
Tue Feb 14 15:55:02 IST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/conf.[ch]: implement parsing and saving network
        configs.

        * qemud/driver.c: flesh out the stubs

        * qemud/internal.h: add networks list etc. to
        struct qemud_server

        * qemud/qemud.c: add qemudStartNetworkDaemon() and
        qemudShutdownNetworkDaemon() stubs.

18 years agoTue Feb 14 14:54:25 EST 2007 Mark McLoughlin <markmc@redhat.com
Mark McLoughlin [Wed, 14 Feb 2007 15:54:47 +0000 (15:54 +0000)]
Tue Feb 14 14:54:25 EST 2007 Mark McLoughlin <markmc@redhat.com

        * qemud/qemud.c: Re-factor out qemudExec() so that it can
        be used to launch dnsmasq.

        * qemud/conf.c: don't return argc from qemudBuildCommandLine()
        as exec() doesn't need it.

18 years agoTue Feb 14 15:52:34 EST 2007 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Wed, 14 Feb 2007 15:54:10 +0000 (15:54 +0000)]
Tue Feb 14 15:52:34 EST 2007 Mark McLoughlin <markmc@redhat.com>

        * qemud/protocol.h: add the protocol for virtual networks

        * qemud/dispatch.c: implement the protocol

        * qemud/driver.[ch]: add stubs for the driver

        * qemud/internal.h: add struct qemud_network

        * src/qemu_internal.c: add a virtual networks driver

18 years agoTue Feb 14 14:52:12 EST 2007 Mark McLoughlin <markmc@redhat.com
Mark McLoughlin [Wed, 14 Feb 2007 15:53:14 +0000 (15:53 +0000)]
Tue Feb 14 14:52:12 EST 2007 Mark McLoughlin <markmc@redhat.com

        * qemud/conf.c: Re-factor bits of conf.c so that:

          - qemudMakeConfigPath() can be re-used given another configDir
          - split qemudEnsureConfigDir() out of qemudSaveConfig() so
            that it may be re-used to create another configDir
          - split qemudScanConfigDir() out so that qemudScanConfigs()
            can scan multiple configDirs