1. 06 10月, 2009 6 次提交
    • C
      python: Use a pure python implementation of 'vir*GetConnect' · 9e09f313
      Cole Robinson 提交于
      The API docs explictly warn that we shouldn't use the C vir*GetConnect calls
      in bindings: doing so can close the internal connection pointer and cause
      things to get screwy. Implement these calls in python.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      9e09f313
    • C
      python: Don't generate bindings for vir*Ref · 97648a97
      Cole Robinson 提交于
      They are only for use in implementing the bindings, so shouldn't be
      exposed to regular API users.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      97648a97
    • C
      python: Don't generate conflicting conn.createXML functions. · 3f935df0
      Cole Robinson 提交于
      A special case in the generator wasn't doing its job, and duplicate
      conn.createXML functions were being generated. The bindings diff is:
      
      @@ -1079,14 +1079,6 @@ class virConnect:
               return __tmp
      
           def createXML(self, xmlDesc, flags):
      -        """Create a new device on the VM host machine, for example,
      -           virtual HBAs created using vport_create. """
      -        ret = libvirtmod.virNodeDeviceCreateXML(self._o, xmlDesc, flags)
      -        if ret is None:raise libvirtError('virNodeDeviceCreateXML() failed', conn=self)
      -        __tmp = virNodeDevice(self, _obj=ret)
      -        return __tmp
      -
      -    def createXML(self, xmlDesc, flags):
               """Launch a new guest domain, based on an XML description
                 similar to the one returned by virDomainGetXMLDesc() This
                 function may requires privileged access to the hypervisor.
      @@ -1327,6 +1319,14 @@ class virConnect:
               __tmp = virNetwork(self, _obj=ret)
               return __tmp
      
      +    def nodeDeviceCreateXML(self, xmlDesc, flags):
      +        """Create a new device on the VM host machine, for example,
      +           virtual HBAs created using vport_create. """
      +        ret = libvirtmod.virNodeDeviceCreateXML(self._o, xmlDesc, flags)
      +        if ret is None:raise libvirtError('virNodeDeviceCreateXML() failed', conn=self)
      +        __tmp = virNodeDevice(self, _obj=ret)
      +        return __tmp
      +
           def nodeDeviceLookupByName(self, name):
               """Lookup a node device by its name. """
               ret = libvirtmod.virNodeDeviceLookupByName(self._o, name)
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      3f935df0
    • C
      python: Remove use of xmllib in generator.py · fca27ca2
      Cole Robinson 提交于
      xmllib has been deprecated since python 2.0, and running the generator throws
      a warning. Move to using xml.sax
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      fca27ca2
    • C
      python: Remove FastParser from generator. · 547d8e3a
      Cole Robinson 提交于
      FastParser uses sgmlop, a non-standard python module meant as a replacement
      for xmllib (which is deprecated since python 2.0). Fedora doesn't even carry
      this module, and the generator doesn't have high performance requirements, so
      just rip the code out.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      547d8e3a
    • C
      configure: Add explict --with-python option. · 79cfda00
      Cole Robinson 提交于
      --with-python currently already works for enabling/disabling the python
      bindings, but doesn't show up in the help output.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      79cfda00
  2. 05 10月, 2009 1 次提交
  3. 02 10月, 2009 5 次提交
    • D
      Fix typo in Makefile.am breaking NEWS file generation · ea6bc1e8
      Daniel P. Berrange 提交于
      * docs/Makefile.am: Fix syntax error in NEWS rule, '$' should be '$$'
        to escape correctly
      ea6bc1e8
    • D
      Fix emission of domain events messages · 398d01b8
      Daniel P. Berrange 提交于
      The code which updated the message length after writing the
      payload wrote the updated length word in the wrong place since
      the XDR object was given a buffer pointing to the start of the
      header payload, rather than message start.
      
      * daemon/remote.c: Fix updating of event message length so that
        we actually send the payload, not just the header
      398d01b8
    • P
      unbreak `make rpcgen' · 96ad9ed3
      Paolo Bonzini 提交于
      Fix "make rpcgen", broken by the directory reorganization.
      
      * src/Makefile.am (rpcgen): Fix path to rpcgen_fix.pl.
      96ad9ed3
    • P
      unbreak migration · 1a09553e
      Paolo Bonzini 提交于
      Fix migration, broken in two different ways by the QEMU monitor
      abstraction.  Note that the QEMU console emits a "\r\n" as the
      line-ending.
      
      * src/qemu/qemu_monitor_text.c (qemuMonitorGetMigrationStatus):
      Fix "info migrate" command and its output's parsing.
      1a09553e
    • C
      Tunnelled migration. · 6e16575a
      Chris Lalancette 提交于
      Implementation of tunnelled migration, using a Unix Domain Socket
      on the qemu backend.  Note that this requires very new versions of
      qemu (0.10.7 at least) in order to get the appropriate bugfixes.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      6e16575a
  4. 01 10月, 2009 6 次提交
    • J
      Fix build in separate build directory · 3bd4c7ba
      Jiri Denemark 提交于
      * cfg.mk: use $(srcdir)/ prefix for Makefile.nonreentrant include
      * examples/domain-events/events-c/Makefile.am tools/Makefile.am
        examples/hellolibvirt/Makefile.am: extend the include paths to
        use $(top_srcdir)/include too.
      3bd4c7ba
    • P
      Fix documentation and comment typos · 36e03729
      Paolo Bonzini 提交于
      Fix a few mispellings :-) of "successfully" and regenerate
      docs/libvirt-*.xml.
      * src/libvirt.c: Fix typos.
      * src/secret/secret_driver.c: Fix typos.
      * docs/libvirt-api.xml: Regenerate.
      * docs/libvirt-refs.xml: Regenerate.
      36e03729
    • C
      Various monitor improvements for migration. · 7cc1491d
      Chris Lalancette 提交于
      The upcoming tunnelled migration needs to be able to set
      a migration in progress in the background, as well as
      be able to cancel a migration when a problem has happened.
      This patch allows for both of these to properly work.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      7cc1491d
    • M
      Fix USB device re-labelling · 1daea0c5
      Mark McLoughlin 提交于
      A simple misplaced break out of a switch results in:
      
        libvir: error : Failed to open file '/sys/bus/pci/devices/0000:00:54c./vendor': No such file or directory
        libvir: error : Failed to open file '/sys/bus/pci/devices/0000:00:54c./device': No such file or directory
        libvir: error : this function is not supported by the hypervisor: Failed to read product/vendor ID for 0000:00:54c.
      
      when trying to passthrough a USB host device to qemu.
      
      * src/security_selinux.c: fix a switch/break thinko
      1daea0c5
    • D
      Avoid a libvirtd crash on broken input 523418 · 79d233b5
      Daniel Veillard 提交于
      * src/conf/domain_conf.c: a simple typo in an XML domain file could lead
        to a crash, because we called STRPREFIX() on the looked up value without
        checking it was non-null.
      79d233b5
    • F
      Incorrect error message in virDomainNetDefParseXML · b3797902
      Florian Vichot 提交于
      * src/conf/domain_conf.c: when declaring a <interface type="bridge">
        tag, <source> needs a "bridge" attribute, but the parser complains
        about a missing "dev" attribute.
      b3797902
  5. 30 9月, 2009 18 次提交
  6. 29 9月, 2009 4 次提交
    • P
      VBox vboxDomainDestroy forgot to wait for completion · 970135f6
      Pritesh Kothari 提交于
      * src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for
        completion of the PowerDown command
      970135f6
    • D
      Remove hand-crafted UUID parsers · d9b285d7
      Daniel P. Berrange 提交于
      * src/libvirt.c: Remove hand-crafted UUID parsers in favour of
        calling virParseUUID
      d9b285d7
    • D
      Allow control over QEMU audio backend · b08e6d38
      Daniel P. Berrange 提交于
      When using VNC for graphics + keyboard + mouse, we shouldn't
      then use the host OS for audio. Audio should go back over
      VNC.
      
      When using SDL for graphics, we should use the host OS for
      audio since that's where the display is. We need to allow
      certain QEMU env variables to be passed through to guest
      too to allow choice of QEMU audio backend.
      
      * qemud/libvirtd.sysconf: Mention QEMU/SDL audio env vars
      * src/qemu_conf.c: Passthrough QEMU/SDL audio env for SDL display,
        disable host audio for VNC display
      b08e6d38
    • D
      Handle data streams in remote client · 401c4048
      Daniel P. Berrange 提交于
      * src/remote_internal.c: Add helper APIs for processing data streams
      401c4048