1. 20 3月, 2010 2 次提交
  2. 19 3月, 2010 4 次提交
    • L
      Support vhost-net mode at qemu startup for virtio network devices · 598a0c00
      Laine Stump 提交于
      Attempt to turn on vhost-net mode for devices of type NETWORK, BRIDGE,
      and DIRECT (macvtap).
      
      * src/qemu/qemu_conf.h: add vhostfd to qemuBuildHostNetStr prototype
        add qemudOpenVhostNet prototype new flag to set when :,vhost=" found in
        qemu help
      * src/qemu/qemu_conf.c: * set QEMUD_CMD_FLAG_VNET_HOST is ",vhost=" found
        in qemu help
         - qemudOpenVhostNet - opens /dev/vhost-net to pass to qemu if everything
           is in place to use it.
         - qemuBuildHostNetStr - add vhostfd to commandline if it's not empty
           (higher levels decide whether or not to fill it in)
         - qemudBuildCommandLine - if /dev/vhost-net is successfully opened, add
           its fd to tapfds array so it isn't closed on qemu exec, and populate
           vhostfd_name to be passed in to commandline builder.
      * src/qemu/qemu_driver.c: add filler 0 for new arg to qemuBuildHostNetStr,
        along with a note that this must be implemented in order for hot-plug of
        vhost-net virtio devices to work properly (once qemu "netdev_add" monitor
        command is implemented).
      598a0c00
    • M
      qemu: Fix FD leak in qemudStartVMDaemon · caad0a87
      Matthias Bolte 提交于
      The logfile FD is dup2'ed in __virExec in the child. The FD needs to
      be closed in the parent, otherwise it leaks.
      caad0a87
    • E
      util: ensure virMutexInit is not recursive · 336fd879
      Eric Blake 提交于
      POSIX states that creation of a mutex with default attributes
      is unspecified whether the mutex is recursive or non-recursive.
      We specifically want non-recursive (deadlock is desirable in
      flushing out coding bugs that used our mutex incorrectly).
      
      * src/util/threads-pthread.c (virMutexInit): Specifically request
      non-recursive mutex, rather than relying on unspecified default.
      336fd879
    • E
      maint: enforce recent copyright style · fc148ca1
      Eric Blake 提交于
      * cfg.mk (sc_copyright_format): New rule.
      fc148ca1
  3. 18 3月, 2010 9 次提交
    • E
      maint: make Red Hat copyright notices consistent · 0a336335
      Eric Blake 提交于
      Spell out 'Red Hat, Inc.':
       git grep -i 'Copyright.*Red Hat' | grep -v Inc
      
      Include (C) consistently:
       git grep -i 'Copyright [^(].*Red Hat'
      
      * src/lxc/lxc_container.c: Update copyright formatting.
      * src/node_device/node_device_udev.c: Likewise.
      * src/node_device/node_device_udev.h: Likewise.
      * src/xen/xend_internal.h: Likewise.
      * src/xen/xm_internal.c: Likewise.
      * src/xen/xm_internal.h: Likewise.
      * tests/xmconfigtest.c: Likewise.
      * tests/object-locking.ml: Likewise.
      * tools/virt-pki-validate.in: Likewise.
      * tools/virt-xml-validate.in: Likewise.
      0a336335
    • E
      maint: fix typo · 257d90f3
      Eric Blake 提交于
      * cfg.mk (sc_prohibit_gettext_noop): Fix typo
      257d90f3
    • E
      maint: enforce recent N_ usage · bc3f582b
      Eric Blake 提交于
      * cfg.mk (sc_prohibit_gettext_noop): New rule applied in "make syntax-check"
      bc3f582b
    • D
      Fix logroate rpm build breakage · e7d29e23
      Daniel Veillard 提交于
      related to fix of bug https://bugzilla.redhat.com/show_bug.cgi?id=547514
      e7d29e23
    • D
      Fix LSB compliance of init script · 1216398d
      Daniel Veillard 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=538701
      
      * daemon/libvirtd.init.in: daemon/libvirtd.init.in were not mentionned
        in the usage message and if a missing or wrong argument is given it
        should return 2, not 1
      1216398d
    • M
      docs: <pre> cannot be nested in <p> · b62cab6e
      Matthias Bolte 提交于
      xsltproc complained about this.
      b62cab6e
    • P
      python: Fix networkLookupByUUID · 2ef091ef
      Philip Hahn 提交于
      According to:
      
      http://libvirt.org/html/libvirt-libvirt.html#virNetworkLookupByUUID
      
      virNetworkLookupByUUID() expects a virConnectPtr as its first argument,
      thus making it a method of the virConnect Python class.
      
      Currently it's a method of libvirt.virNetwork.
      
      @@ -805,13 +805,6 @@ class virNetwork:
               if ret == -1: raise libvirtError ('virNetworkGetAutostart() failed', net=self)
               return ret
      
      -    def networkLookupByUUID(self, uuid):
      -        """Try to lookup a network on the given hypervisor based on its UUID. """
      -        ret = libvirtmod.virNetworkLookupByUUID(self._o, uuid)
      -        if ret is None:raise libvirtError('virNetworkLookupByUUID() failed', net=self)
      -        __tmp = virNetwork(self, _obj=ret)
      -        return __tmp
      -
       class virInterface:
           def __init__(self, conn, _obj=None):
               self._conn = conn
      @@ -1689,6 +1682,13 @@ class virConnect:
               __tmp = virDomain(self,_obj=ret)
               return __tmp
      
      +    def networkLookupByUUID(self, uuid):
      +        """Try to lookup a network on the given hypervisor based on its UUID. """
      +        ret = libvirtmod.virNetworkLookupByUUID(self._o, uuid)
      +        if ret is None:raise libvirtError('virNetworkLookupByUUID() failed', conn=self)
      +        __tmp = virNetwork(self, _obj=ret)
      +        return __tmp
      +
      2ef091ef
    • C
      0ef58c31
    • C
      Fix make dist with XenAPI changes · 89d8cdfc
      Cole Robinson 提交于
      89d8cdfc
  4. 17 3月, 2010 9 次提交
  5. 16 3月, 2010 7 次提交
  6. 15 3月, 2010 3 次提交
  7. 13 3月, 2010 3 次提交
  8. 12 3月, 2010 3 次提交
    • C
      Make nodeGetInfo report the correct number of NUMA nodes. · 83988bd4
      Chris Lalancette 提交于
      The nodeGetInfo code was always assuming that machine had a
      single NUMA node, which is not correct.  The good news is that
      libnuma gives us this information pretty easily, so let's
      properly report it.
      
      NOTE: With recent hardware starting to support CPU hot-add
      and hot-remove, both this code and the nodeCapsInitNUMA()
      code are quickly going to become obsolete.  We'll have to
      think of a more dynamic solution for dealing with NUMA
      nodes and CPUs that can come and go at will.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      83988bd4
    • C
      Fix crash in virsh after bogus command · 3ebbc241
      Chris Lalancette 提交于
      If you ran virsh in interactive mode and ran a command
      that virsh could not parse, it would then SEGV
      on subsequent commands.  The problem is that we are
      freeing the vshCmd structure in the syntaxError label
      at the end of vshCommandParse, but forgetting to
      set ctl->cmd to NULL.  This means that on the next command,
      we would try to free the same structure again, leading
      to badness.
      
      * tools/virsh.c: Make sure to set ctl->cmd to NULL after
        freeing it in vshCommandParse()
      3ebbc241
    • C
      Fix virsh command 'cd' · be2a53e6
      Chris Lalancette 提交于
      * tools/virsh.c: cmdCd was returning a 0 on success and -1 on error,
        when the rest of the code expected a TRUE on success and a
        FALSE on error.
      be2a53e6