1. 16 7月, 2009 16 次提交
    • D
      Separate code for encoding outgoing remote message headers · 852fa7d0
      Daniel P. Berrange 提交于
      Introduces an API for encoding the header field for outgoing messages
      allowing some duplicated code to be eliminated
      
      * qemud/dispatch.c, qemud/dispatch.h: add remoteEncodeClientMessageHeader
        for encoding message header. Update remoteDispatchClientRequest to
        use this method.
      * qemud/remote.c: Update remoteDispatchDomainEventSend to use the
        generic remoteEncodeClientMessageHeader() for encoding event
        message hedaders. Push some logic from remoteRelayDomainEvent
        down into remoteDispatchDomainEventSend.
      852fa7d0
    • D
      Decode incoming request header before invoking dispatch code · 081c6330
      Daniel P. Berrange 提交于
      Separate the decoding of incoming request header out from the
      dispatch code. This will allow later code to making dispatcher
      routing decisions based on the header field data.
      
      * qemud/dispatch.c, qemud/dispatch.h: Add remoteDecodeClientMessageHeader
        API for decoding the header of a client message. Update the
        remoteDispatchClientRequest method to assume a pre-decoded
        header.
      * qemud/qemud.h: Include a 'remote_message_header' field in
        'struct qemud_client_message' for pre-decoded header data
      * qemud/qemud.c: Decode the incoming client message header before
        invoking remoteDispatchClientRequest
      081c6330
    • D
      Split generic RPC message dispatch code out from remote protocol API handlers · a147ef38
      Daniel P. Berrange 提交于
      * po/POTFILES.in: Add qemud/dispatch.c
      * qemud/dispatch.c, qemud/dispatch.h: Generic code handling dispatch of
        RPC messages.
      * qemud/Makefile.am: Add dispatch.c to build
      * qemud/qemud.c: Include dispatch.h
      * qemud/qemud.h: Remove remoteDispatchClientRequest, remoteRelayDomainEvent
        now in dispatch.h
      * qemud/remote.c: Remove remoteDispatchClientRequest, remoteRelayDomainEvent
        now in dispatch.c, and dispatch_args, dispatch_ret, dispatch_fn & dispatch_data
        now in remote.h
      * qemud/remote.h: Add typedefs for dispatch_args, dispatch_ret,
        dispatch_fn, dispath_data. Add remoteGetDispatchData() API
      a147ef38
    • P
      Implement qemu dump capabilities · e1abc448
      Paolo Bonzini 提交于
      * src/qemu_driver.c (qemudDomainCoreDump): New
        (qemuDriver): Add core dump function. The behaviour is similar
        as the current Xen dump
      e1abc448
    • P
      add cd and pwd commands to virsh · c4951f11
      Paolo Bonzini 提交于
      * src/virsh.c: adds cd and pwd commands to virsh useful for save and
        restore commands
      * docs/virsh.pod virsh.1: update the documentation
      * AUTHORS: add Paolo Bonzini
      c4951f11
    • J
      make "make syntax-check" consistent with "git diff --check" · 08a2e796
      Jim Meyering 提交于
      This makes "make syntax-check" fail when a version-controlled
      file contains a trailing blank line.
      * cfg.mk (sc_prohibit_trailing_blank_lines): New rule.
      08a2e796
    • J
      remove all trailing blank lines · 07613d20
      Jim Meyering 提交于
      by running this command:
      git ls-files -z | xargs -0 perl -pi -0777 -e 's/\n\n+$/\n/'
      This is in preparation for a more strict make syntax-check
      rule that will detect trailing blank lines.
      07613d20
    • D
      4a7acedd
    • D
      Fix SELinux denial during hotplug · 1795bfe4
      Daniel P. Berrange 提交于
      * src/qemu_driver.c: Relabel disk images *before* running QEMU
      hotplug monitor commands
      1795bfe4
    • D
      Fix PCI device hotplug/unplug with newer QEMU · 326ecb78
      Daniel P. Berrange 提交于
      * src/qemu_driver.c: Try new monitor syntax for hotplug first. If
        that fails fallback to old KVM specific syntax
      326ecb78
    • D
      Fix problem with QEMU monitor welcome prompt confusing libvirt · 2d1f2e70
      Daniel P. Berrange 提交于
      after a libvirtd daemon restart with active guests
      
      * src/qemu_driver: Read and dicard pending monitor data
        before issuing new monitor commands.
      2d1f2e70
    • D
    • D
      Allow autostart of libvirtd to be disabled with LIBVIRT_AUTOSTART=0 · 89c5ce4d
      Daniel P. Berrange 提交于
      * src/remote_internal.c: Disable libvirtd autostart if the
        LIBVIRT_AUTOSTART=0 env variable is set
      * src/libvirt.c: Document environment variables can impact
        the virConnectOpen API
      89c5ce4d
    • D
      netcf XML validation and input and output tests · 788c3151
      Daniel Veillard 提交于
      * tests/interfaceschematest: test all XML data against the interface
        schemas
      * tests/interfacexml2xmltest.c: parse and reserialize all XML data
        and check the output is identical
      * tests/Makefile.am: hook up the tests
      * tests/.gitignore: add ignore test
      788c3151
    • D
      Add netcf XML schemas and test data · 19e57fd9
      Daniel Veillard 提交于
      * docs/schemas/interface.rng: schemas for the interface XML files
        directly imported from netcf-0.1.0
      * tests/interfaceschemadata/*.xml: set of test files from netcf-0.1.0
        changed to use single quote instead of double quote
      19e57fd9
    • D
      add support for netcf XML import and export · 2f5fb5e0
      Daniel Veillard 提交于
      * src/interface_conf.c src/interface_conf.h: the import and export
        routines and the internal APIs
      * src/Makefile.am: hook the new file in the makefiles
      * src/libvirt_private.syms: export a few private symbols internally
      * po/POTFILES.in: the new file contains translatable strings
      2f5fb5e0
  2. 15 7月, 2009 3 次提交
  3. 13 7月, 2009 1 次提交
    • G
      Update links to bugzilla · f19fdbba
      Garry Dolley 提交于
      * docs/bugs.html[.in]: general tickets are under the 'Virtualization
        Tools' product category and Fedora specific tickets are under the
        'Fedora' product category.
      f19fdbba
  4. 11 7月, 2009 2 次提交
  5. 10 7月, 2009 9 次提交
    • J
      build: automatically rerun ./bootstrap when needed · f272378d
      Jim Meyering 提交于
      When "git pull" (or any other operation) brings in a new version of the
      gnulib git submodule, you must rerun the autogen.sh script.  With this
      change, "make" now fails and tells you to run ./autogen.sh, when needed.
      * autogen.sh: Maintain a new file, .git-module-status, containing
      the current submodule status.  If it doesn't exist or its content
      is different from what "git submodule status" prints, then run
      ./bootstrap
      * .gitignore: Add .git-module-status
      * cfg.mk: Diagnose out of date submodule and fail.
      * README-hacking: Update not to mention bootstrap.
      * Makefile.am (MAINTAINERCLEANFILES): Add .git-module-status,
      so that "make maintainerclean" will remove it.
      f272378d
    • J
      build: make autogen.sh use autoreconf -if · e335b2ca
      Jim Meyering 提交于
      * autogen.sh: Use "autoreconf -if" instead of open-coding it with
      manual and unconditional invocation of each separate tool.
      e335b2ca
    • M
      Use virDomainChrTypeFromString() instead of open coding · 13709bdb
      Mark McLoughlin 提交于
      * src/domain_conf.c: replace open coded chr type parsing with
        virDomainChrTypeFromString(), retaining the existing semantics
        where unknown types are silently mapped to the "null" type and
        "pty" is used if none is specified
      13709bdb
    • M
      Switch to using a unix socket for the qemu monitor · 62455ed8
      Mark McLoughlin 提交于
      We keep support for the pty based monitor so that we can re-connect
      to VMs started by older versions of libvirtd.
      
      * src/domain_conf.c: handle formatting and parsing unix monitors
      
      * src/qemu_driver.c: add qemudOpenMonitorUnix(), remove the monitor
        pty path searching from qemudFindCharDevicePTYs(), switch
        qemudStartVMDaemon() and qemuDomainXMLToNative() to using a unix
        monitor
      
      * tests/qemuxml2argvtest.c: switch to using a unix monitor
      
      * tests/qemuxml2argvdata/qemuxml2argv-*.args: update test data
      62455ed8
    • M
      Add the monitor type to the domain state XML · 05d377bd
      Mark McLoughlin 提交于
      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
      05d377bd
    • M
      Minor qemu monitor coding style fixes · 1f4ec305
      Mark McLoughlin 提交于
      * src/qemu_driver.c: use a consistent coding style for function
        definitions
      1f4ec305
    • M
      Don't leak vm->monitorpath on re-connect · 8a52daa2
      Mark McLoughlin 提交于
      * src/qemu_driver.c: vm->monitorpath is already initialized in the case
        of re-connect, so move the initialization for the normal startup case
        out of the common code
      8a52daa2
    • J
      build: update from gnulib, for latest maint.mk · 72978b97
      Jim Meyering 提交于
      * gnulib: Update submodule to latest.
      This fixes the make syntax-check failure whereby sc_po_check
      would complain about cfg.mk.
      72978b97
    • J
      avoid a "make syntax-check" failure · bcf2aed1
      Jim Meyering 提交于
      * .x-sc_avoid_if_before_free: Ignore *all* ChangeLog files,
      now, including ChangeLog-old.
      bcf2aed1
  6. 09 7月, 2009 3 次提交
  7. 08 7月, 2009 6 次提交
    • J
      generate ChangeLog from git logs into distribution tarball · 27b175b9
      Jim Meyering 提交于
      No longer maintain a version-controlled ChangeLog file, but do
      continue to include a ChangeLog file in distribution tarball.
      * Makefile.am (gen-ChangeLog): New rule.
      (dist-hook): Depend on it.
      (EXTRA_DIST): Add ChangeLog-old.
      * bootstrap (modules): Add gitlog-to-changelog.
      * ChangeLog: Remove file.  Renamed to...
      * ChangeLog-old: ...this.  New file.
      * autogen.sh: Touch ChangeLog, to ensure it exists.  For automake.
      27b175b9
    • J
      use gnumakefile and maintainer-makefile modules from gnulib · bf773e04
      Jim Meyering 提交于
      * bootstrap (modules): Add gnumakefile and maintainer-makefile.
      * GNUmakefile: Remove file, now provided by gnulib.
      * Makefile.maint: Remove.  Replaced by maint.mk from gnulib.
      .gitignore: Add GNUmakefile and maint.mk.
      * cfg.mk (prev_version_file): Disable this feature.
      Setting this to /dev/null avoids an otherwise harmless diagnostic.
      bf773e04
    • J
      remove all .cvsignore files · fb98f4b1
      Jim Meyering 提交于
      fb98f4b1
    • J
      make .gnulib a submodule · 7bb22f58
      Jim Meyering 提交于
      This makes it so we record (via a git submodule)
      a snapshot of whatever version of gnulib we're using,
      and none of gnulib sources are in the libvirt repository.
      The result is that we have as much reproducibility as when
      we version-controlled imported copies of the gnulib sources,
      but without the hassle of the manual process we used when
      syncing with upstream.
      
      Note that when you clone libvirt, you get only the libvirt
      repository, but when you first run ./bootstrap, it clones
      gnulib (at the SHA1 recorded via the submodule), creating
      the .gnulib/ hierarchy.  Then, the bootstrap script runs
      gnulib-tool to populate gnulib/ with the files that make
      up the selected modules.
      
      Put the following in your ~/.gitconfig file.
      [alias]
        syncsub = submodule foreach git pull origin master
      
      The update procedure is simple:
        git syncsub
        ...build & test...
        git commit -m 'gnulib: sync submodule to latest' .gnulib
      
      * .gitmodules: New file.
      * .gnulib: Initialize.
      * bootstrap: Set up to use the new submodule.
      Stop using --no-vc-files.
      Don't remove .gitignore files.
      Don't use or create .cvsignore.
      Diagnose an invalid --gnulib-srcdir=DIR argument.
      * build-aux/vc-list-files: Delete file, now pulled from gnulib.
      * build-aux/useless-if-before-free: Likewise.
      * po/POTFILES.in: Remove gnulib/lib/gai_strerror.c, since
      it no longer contains translatable strings.
      * gnulib/*: Remove gnulib/ hierarchy.
      7bb22f58
    • J
      skip some of gnulib's new rules · 360194bf
      Jim Meyering 提交于
      * cfg.mk (local-checks-to-skip): Add these: sc_error_message_uppercase,
      sc_program_name, sc_require_test_exit_idiom, sc_makefile_check.
      360194bf
    • J
      Prepare to use maint.mk from gnulib · c120fcc0
      Jim Meyering 提交于
      Since Makefile.maint will soon come from gnulib's maint.mk,
      sync Makefile.maint to have the same contents (modulo minor
      things).  In syncing it, we have to remove some libvirt-specific
      rules.  Since we want to keep them (of course), put those in cfg.mk.
      * Makefile.maint: Merge from gnulib's maint.mk.
      * cfg.mk (sc_avoid_write): New rule.  From Makefile.cfg.
      (sc_prohibit_strcmp_and_strncmp): Likewise, and rename.
      (sc_prohibit_asprintf, sc_prohibit_VIR_ERR_NO_MEMORY): Likewise.
      (sc_prohibit_nonreentrant): Likewise.
      (sc_prohibit_ctype_h): Likewise.
      (sc_TAB_in_indentation, sc_avoid_ctype_macros): Likewise.
      (sc_prohibit_virBufferAdd_with_string_literal): Likewise.
      (sc_prohibit_gethostby): Likewise.
      (sc_libvirt_unmarked_diagnostics): Likewise.  Also, rename the
      rule, inserting "_libvirt", since this rule is a specialization of
      the one in gnulib.
      * GNUmakefile: Include cfg.mk, not Makefile.cfg
      * .x-sc_prohibit_strcmp_and_strncmp: New file.
      * Makefile.am (EXTRA_DIST): Add .x-sc_prohibit_strcmp_and_strncmp
      c120fcc0