1. 28 10月, 2010 4 次提交
  2. 27 10月, 2010 8 次提交
  3. 26 10月, 2010 13 次提交
    • E
      virsh: fix range of memtune command · 009035ff
      Eric Blake 提交于
      * tools/virsh.c (cmdMemtune): Use long long for memory
      sizes. Simplify allocation, and plug memory leak.
      009035ff
    • E
      virsh: improve help text where integers are expected · c1564268
      Eric Blake 提交于
      * tools/virsh.c (opts_freecell, opts_memtune, opts_vcpupin)
      (opts_setvcpus, opts_setmaxmem, opts_setmem)
      (opts_migrate_setmaxdowntime): Use VSH_OT_INT when only an integer
      is expected.
      (vshCmddefHelp, vshCmddefGetData): Allow mandatory VSH_OT_INT
      arguments.
      c1564268
    • E
      qemu: work around dash 0.5.5 bug in managed save · f22e670b
      Eric Blake 提交于
      Older dash mistakenly truncates regular files when using <> redirection;
      this kills our use of double dd to reduce storage overhead when
      saving qemu images.  But qemu insists on running a command through
      /bin/sh, so we work around it by having qemu run $sh -c 'real command'
      when we have a replacement $sh in mind.
      
      * configure.ac (VIR_WRAPPER_SHELL): Define to a replacement shell,
      if /bin/sh is broken on <> redirection.
      * src/qemu/qemu_monitor.h (VIR_WRAPPER_SHELL_PREFIX)
      (VIR_WRAPPER_SHELL_SUFFIX): New macros.
      * src/qemu/qemu_monitor_text.c (qemuMonitorTextMigrateToFile): Use
      them.
      * src/qemu/qemu_monitor_json.c (qemuMonitorJSONMigrateToFile):
      Likewise.
      f22e670b
    • J
      docs: make the location of the xml catalog file a configure option · ff9bbffc
      Justin Clift 提交于
      The default location for the XML catalog file, /etc/xml/catalog,
      used when validating the generated html docs, isn't correct for
      MacOS X.
      
      This commit adds an option to the configure script, allowing the
      default to be overridden:
      
        --with-xml-catalog-file=/path/to/xml/catalog/file
      ff9bbffc
    • D
      Avoid squashing errors during network startup cleanup path · d68bb70a
      Daniel P. Berrange 提交于
      When failing to start a virtual network, we have to cleanup,
      tearing down any iptables rules. If the iptables rules were
      not present yet though, this raises an error, which squashes
      the original error we were handling.
      
      * src/network/bridge_driver.c: When failing to start a virtual
        network, don't squash the original error in cleanup
      d68bb70a
    • J
      docs: install the generated html files when make install is run · d88a0496
      Justin Clift 提交于
      Previously, only the API docs were installed, rather than the
      complete documentation set.  This commit ensures the complete
      documentation set is installed.
      d88a0496
    • M
      Fix build for SystemTap 1.0 · cbe719fe
      Matthias Bolte 提交于
      With SystemTap 1.0 a part of the generated macros in probes.h
      expands to:
      
      volatile __typeof__(((name))) arg2 = (name);
      
      GCC reports an 'invalid initialize' error when name has type
      char[]. Therfore, add casts to char* to avoid this.
      cbe719fe
    • J
      xen: Fix domain dump · 608554f2
      Jiri Denemark 提交于
      Remove redundant 'live' parameter which caused an error from xend:
      
          "xend.err 'Too many values for live'"
      608554f2
    • D
      Fix formatting of network address in iptables helpers · eff1735e
      Daniel P. Berrange 提交于
      The network address was being set to 192.168.122.0 instead
      of 192.168.122.0/24. Fix this by removing the unneccessary
      'network' field from virNetworkDef and just pass the
      network address and netmask into the iptables APIs directly.
      
      * src/conf/network_conf.h, src/conf/network_conf.c: Remove
        the 'network' field from virNEtworkDef.
      * src/network/bridge_driver.c: Update for iptables API changes
      * src/util/iptables.c, src/util/iptables.h: Require the
        network address + netmask pair to be passed in
      eff1735e
    • O
      virsh: Add option 'model' for attach-interface · 1a29a14a
      Osier Yang 提交于
      * tools/virsh.c: add missing option from the CLI to allows setting
        up the NIC model type when attaching an interface
      * tools/virsh.pod: extend documentation
      * AUTHORS: add Osier Yang to the list
      1a29a14a
    • J
      qemu: Fix detection of drive readonly option · 69b75521
      Jiri Denemark 提交于
      So far, readonly=on option is used when qemu supports -device. However,
      there are qemu versions which support readonly option with -drive
      although they don't have support for -device.
      69b75521
    • P
      Fix documentation for virEventAddTimeout() · f3f7a87d
      Philipp Hahn 提交于
      * src/util/event.h: Fix copy&paste error from virEventAddHandle()
      f3f7a87d
    • E
      maint: ignore new test executable · 1005f3c1
      Eric Blake 提交于
      * tests/.gitignore: Sort, and add sockettest.
      1005f3c1
  4. 23 10月, 2010 5 次提交
  5. 22 10月, 2010 10 次提交
    • J
      450c20ea
    • J
      docs: removed old changelog file, as it is no longer relevant · 5e0211e0
      Justin Clift 提交于
      We instead point to the live git log URL for the few links still
      needing to point to something.
      5e0211e0
    • M
      05725e9b
    • D
      Don't try to parse a NULL ip address for boot server · 4af71829
      Daniel P. Berrange 提交于
      The boot server IP address is optional, so it needs to be
      checked before attempting to parse it.
      
      * src/conf/network_conf.c: Don't parse NULL ip address for
        boot server
      4af71829
    • D
      Convert virNetwork to use virSocketAddr everywhere · 090404ac
      Daniel P. Berrange 提交于
      Instead of storing the IP address string in virNetwork related
      structs, store the parsed virSocketAddr. This will make it
      easier to add IPv6 support in the future, by letting driver
      code directly check what address family is present
      
      * src/conf/network_conf.c, src/conf/network_conf.h,
        src/network/bridge_driver.c: Convert to use virSocketAddr
        in virNetwork, instead of char *.
      * src/util/bridge.c, src/util/bridge.h,
        src/util/dnsmasq.c, src/util/dnsmasq.h,
        src/util/iptables.c, src/util/iptables.h: Convert to
        take a virSocketAddr instead of char * for any IP
        address parameters
      * src/util/network.h: Add macros to determine if an address
        is set, and what address family is set.
      090404ac
    • D
      Include socket address in client probe data · 4b16b9c7
      Daniel P. Berrange 提交于
      It is useful to know where the client is connecting from,
      so include the socket address in probe data.
      
      * daemon/libvirtd.h: Use virSocketAddr for storing client
        address and keep printable address handy for logging
      * daemon/libvirtd.c: Include socket address in client
        connect/disconnect probes
      * daemon/probes.d: Add socket address to probes
      * examples/systemtap/client.stp: Print socket address
      * src/util/network.h: Add sockaddr_un to virSocketAddr union
      4b16b9c7
    • D
      Add dtrace static probes in libvirtd · 968eb4e5
      Daniel P. Berrange 提交于
      Adds initial support for dtrace static probes in libvirtd
      daemon, assuming use of systemtap dtrace compat shim on
      Linux. The probes are inserted for network client connect,
      disconnect, TLS handshake states and authentication protocol
      states.
      
      This can be tested by running the xample program and then
      attempting to connect with any libvirt client (virsh,
      virt-manager, etc).
      
       # stap examples/systemtap/client.stp
        Client fd=44 connected readonly=0
        Client fd=44 auth polkit deny pid:24997,uid:500
        Client fd=44 disconnected
        Client fd=46 connected readonly=1
        Client fd=46 auth sasl allow test
        Client fd=46 disconnected
      
      The libvirtd.stp file should also really not be required,
      since it is duplicated info that is already available in
      the main probes.d definition file. A script to autogenerate
      the .stp file is needed, either in libvirtd tree, or better
      as part of systemtap itself.
      
      * Makefile.am: Add examples/systemtap subdir
      * autobuild.sh: Disable dtrace for mingw32
      * configure.ac: Add check for dtrace
      * daemon/.gitignore: Ignore generated dtrace probe file
      * daemon/Makefile.am: Build dtrace probe header & object
        files
      * daemon/libvirtd.stp: SystemTAP convenience probeset
      * daemon/libvirtd.c: Add connect/disconnect & TLS probes
      * daemon/remote.c: Add SASL and PolicyKit auth probes
      * daemon/probes.d: Master probe definition
      * daemon/libvirtd.h: Add convenience macro for probes
        so that compilation is a no-op when dtrace is not available
      * examples/systemtap/Makefile.am, examples/systemtap/client.stp
        Example systemtap script using dtrace probe markers
      * libvirt.spec.in: Enable dtrace on F13/RHEL6
      * mingw32-libvirt.spec.in: Force disable dtrace
      968eb4e5
    • D
      Add test suite for virSocket APIs · 9afa0060
      Daniel P. Berrange 提交于
      Add a test suite for check parsing, formatting, range calculation
      and netmask checking APIs in virSocketAddr.
      
      * tests/sockettest.c, tests/Makefile.am: Add new test case
      9afa0060
    • D
      Ban use of all inet_* functions · 5f325880
      Daniel P. Berrange 提交于
      All the inet_* functions can be replaced with calls to the
      virSocket APIs. Since many of the inet_* funtions are unsafe,
      and the remainder are obsolete, forbid all future use of them
      in libvirt.
      
      * Makefile.nonreentrant: Ban use of inet_*
      5f325880
    • D
      Remove all use of inet_pton and inet_ntop · a8ae7d19
      Daniel P. Berrange 提交于
      The  inet_pton and inet_ntop functions are obsolete, replaced
      by getaddrinfo+getnameinfo with the AI_NUMERICHOST flag set.
      These can be accessed via the virSocket APIs.
      
      The bridge.c code had methods for fetching the IP address of
      a bridge which used inet_ntop. Aside from the use of inet_ntop
      these methods are broken, because a NIC can have multiple
      addresses and this only returns one address. Since the methods
      are never used, just remove them.
      
      * src/conf/network_conf.c, src/nwfilter/nwfilter_learnipaddr.c:
        Replace inet_pton and inet_ntop with virSocket APIs
      * src/util/bridge.c, src/util/bridge.h: Remove unused methods
        which called inet_ntop.
      a8ae7d19