1. 09 2月, 2010 10 次提交
    • M
      Remove conn parameter from virReportOOMError · 8ce5e2c1
      Matthias Bolte 提交于
      8ce5e2c1
    • J
      Modify virsh commands · 3b9027c4
      Jim Fehlig 提交于
      Change all virsh commands that invoke virDomain{Attach,Detach}Device()
      to use virDomain{Attach,Detach}DeviceFlags() instead.
      
      Add a "--persistent" flag to these virsh commands, allowing user to
      specify that the domain persisted config be modified as well.
      
      V2: Only invoke virDomain{Attach,Detach}DeviceFlags() if
      "--persistent" flag is specified.  Otherwise invoke
      virDomain{Attach,Detach}Device() to retain current behavior.
      3b9027c4
    • J
      domain{Attach,Detach}DeviceFlags handler for drivers · ed9c14a7
      Jim Fehlig 提交于
      Implementation of domain{Attach,Detach}DeviceFlags handlers
      in the drivers.
      ed9c14a7
    • J
      Server side dispatcher · ce039c3e
      Jim Fehlig 提交于
      Server side dispatcher for Domain{Attach,Detach}DeviceFlags.
      ce039c3e
    • J
      Remote driver · 906b1650
      Jim Fehlig 提交于
      Implementation of Domain{Attach,Detach}DeviceFlags in remote driver.
      906b1650
    • J
      Wire protocol format · daeb6f6b
      Jim Fehlig 提交于
      Definition of wire protocol format for
      virDomain{Attach,Detach}DeviceFlags.
      daeb6f6b
    • J
      Public API Implementation · 343205d7
      Jim Fehlig 提交于
      Implementation of public API for virDomain{Attach,Detach}DeviceFlags.
      
      V2: Don't break remote compatibility with older libvirtd
      343205d7
    • J
      Internal API · 79ad3087
      Jim Fehlig 提交于
      Definition of internal API for virDomain{Attach,Detach}DeviceFlags.
      79ad3087
    • J
      Public API · 314190a0
      Jim Fehlig 提交于
      Definition of public API for virDomain{Attach,Detach}DeviceFlags.
      
      V2: Adjust libvrt_public.syms to anticipated 0.7.7 release.
      314190a0
    • J
      doc: restrict virDomain{Attach,Detach}Device to active domains · f0ea7ab3
      Jim Fehlig 提交于
      virDomain{Attach,Detach}Device is now only permitted on active
      domains.  Explicitly state this restriction in the API
      documentation.
      
      V2: Only change doc, dropping the hunk that forced the restriction
          in libvirt frontend.
      f0ea7ab3
  2. 06 2月, 2010 1 次提交
  3. 05 2月, 2010 15 次提交
  4. 04 2月, 2010 5 次提交
    • D
      virt-pki-validate contains unexpanded SYSCONFDIR variable · 0b907122
      Doug Goldstein 提交于
      * tools/virt-pki-validate.in: use an automake variable instead of a
        shell variable so the resulting shell actually work
      0b907122
    • D
      Release of libvirt-0.7.6 · 31a5ee92
      Daniel Veillard 提交于
      * configure.ac docs/news.html.in libvirt.spec.in: version bump and doc
        updates
      * po/*.po*: updated and regenerated the localizations
      31a5ee92
    • D
      Fix restore of QEMU guests with PCI device reservation · 83acdeaf
      Daniel P. Berrange 提交于
      When restoring from a saved guest image, the XML would already
      contain the PCI slot ID of the IDE controller & video card.
      The attempt to explicitly reserve this upfront would thus fail
      everytime.
      
      * src/qemu/qemu_conf.c: Reserve IDE controller / video card
        slot at time of need, rather than upfront
      83acdeaf
    • L
      Another fork() log locking cleanup in file creation · 730801d9
      Laine Stump 提交于
      Similar fix as previous one but for fork() usage when creating
      a file or directory
      
      * src/util/util.c: virLogLock() and virLogUnlock() around fork()
        in virFileCreate() and virDirCreateSimple()
      730801d9
    • C
      Fix log locking problem when using fork() in the library · cd0ef0e0
      Cole Robinson 提交于
      Ad pointed out by Dan Berrange:
      So if some thread in libvirtd is currently executing a logging call,
      while another thread calls virExec(), that other thread no longer
      exists in the child, but its lock is never released. So when the
      child then does virLogReset() it deadlocks.
      
      The only way I see to address this, is for the parent process to call
      virLogLock(), immediately before fork(), and then virLogUnlock()
      afterwards in both parent & child. This will ensure that no other
      thread
      can be holding the lock across fork().
      
      * src/util/logging.[ch] src/libvirt_private.syms: export virLogLock() and
        virLogUnlock()
      * src/util/util.c: lock just before forking and unlock just after - in
        both parent and child.
      cd0ef0e0
  5. 03 2月, 2010 9 次提交
    • D
      Fix locking for udev device add/remove · 8d42b9b4
      David Allan 提交于
      The original udev node device backend neglected to lock the driverState
      struct containing the device list when adding and removing devices
      * src/node_device/node_device_udev.c: add necessary locks in
        udevRemoveOneDevice() and udevAddOneDevice()
      8d42b9b4
    • J
      interface_conf.c: don't use a negative value as allocation size · fe1183a7
      Jim Meyering 提交于
      * src/conf/interface_conf.c (virInterfaceDefParseProtoIPv4): If
      virXPathNodeSet returns -1, indicate failure by returning -1 right away.
      (virInterfaceDefParseProtoIPv6): Likewise.
      fe1183a7
    • J
      virStoragePoolSourceListNewSource: avoid unconditional leak · 71c865f4
      Jim Meyering 提交于
      * src/conf/storage_conf.c (virStoragePoolSourceListNewSource):
      Remove an unused (and leaked) allocation.
      71c865f4
    • J
      xs_internal.c: don't use a negative value as allocation size · 361e46d6
      Jim Meyering 提交于
      * src/xen/xs_internal.c (xenStoreDomainIntroduced): Don't use -1
      as an allocation size upon xenStoreNumOfDomains failure.
      (xenStoreDomainReleased): Likewise.
      361e46d6
    • D
      Ensure QEMU DAC security driver is activated at all times · 9120f004
      Daniel P. Berrange 提交于
      If the primary security driver (SELinux/AppArmour) was disabled
      then the secondary QEMU DAC security driver was also disabled.
      This is mistaken, because the latter must be active at all times
      
      * src/qemu/qemu_driver.c: Ensure DAC driver is always active
      9120f004
    • J
      xen_hypervisor.c: remove all "domain == NULL" tests, ... · 7efec259
      Jim Meyering 提交于
      * src/xen/xen_hypervisor.c: Remove all "domain == NULL" tests.
      * src/xen/xen_hypervisor.h: Instead, use ATTRIBUTE_NONNULL to
      mark each "domain" parameter as "known always to be non-NULL".
      7efec259
    • J
      xen_hypervisor.c: avoid NULL deref for NULL domain argument · b62bf7a7
      Jim Meyering 提交于
      * src/xen/xen_hypervisor.c (xenHypervisorGetVcpus): Don't attempt
      to diagnose an unlikely NULL-domain or NULL-domain->conn error.
      b62bf7a7
    • D
      Tweak USB hostdevice XML handling · 23d6abd2
      Daniel P. Berrange 提交于
      When attaching a USB host device based on vendor/product, libvirt
      will resolve the vendor/product into a device/bus pair. This means
      that when printing XML we should allow device/bus info to be printed
      at any time if present
      
      * src/conf/domain_conf.c, docs/schemas/domain.rng: Allow USB device
        bus info alongside vendor/product
      23d6abd2
    • D
      Fix QEMU hotplug device alias assignment · 719c50ca
      Daniel P. Berrange 提交于
      To allow devices to be hot(un-)plugged it is neccessary to ensure
      they all have a unique device aliases. This fixes the hotplug
      methods to assign device aliases before invoking the monitor
      commands which need them
      
      * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Expose methods
        for assigning device aliases for disks, host devices and
        controllers
      * src/qemu/qemu_driver.c: Assign device aliases when hotplugging
        all types of device
      * tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address-device.args,
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address-device.args:
        Update for changed hostdev naming scheme
      719c50ca