1. 16 5月, 2011 3 次提交
  2. 14 5月, 2011 21 次提交
  3. 13 5月, 2011 16 次提交
    • C
      remote: Use virDomainEventState helpers · 4e6e6672
      Cole Robinson 提交于
      One functionality change here is that we no longer force enable the event
      timeout for every queued event, only enable it for the first event after
      the queue has been flushed. This is how other drivers have already done it,
      and I haven't encountered problems in practice.
      
      v3:
          Adjust for new virDomainEventStateNew argument
      4e6e6672
    • C
      libxl: Convert to virDomainEventState · 7405aebe
      Cole Robinson 提交于
      7405aebe
    • C
      test: Use virDomainEventState helpers · 4d7297f8
      Cole Robinson 提交于
      v3:
          Adjust for new virDomainEventStateNew argument
      4d7297f8
    • C
      lxc: Use virDomainEventState helpers · 1ded8942
      Cole Robinson 提交于
      v3:
          Adjust for new virDomainEventStateNew argument
      1ded8942
    • C
      qemu: Use virDomainEventState helpers · 42a3687f
      Cole Robinson 提交于
      v2:
          Drop libvirt_private.syms changes
      
      v3:
          Adjust for new virDomainEventStateNew argument
      42a3687f
    • C
      domain_event: Add common domain event queue/flush helpers · 227d67ca
      Cole Robinson 提交于
      The same code for queueing, flushing, and deregistering events exists
      in multiple drivers, which will soon use these common functions.
      
      v2:
          Adjust libvirt_private.syms
          isDispatching bool fixes
          NONNULL tagging
      
      v3:
          Add requireTimer parameter to virDomainEventStateNew
      227d67ca
    • C
      domain_event: Add virDomainEventState structure · aaf2b70b
      Cole Robinson 提交于
      This structure will be used to unify lots of duplicated event handling code
      across the state drivers.
      
      v2:
          Check for state == NULL in StateFree
          Add NONNULL tagging
          Use bool for isDispatching
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      aaf2b70b
    • C
      xml: Use virXMLParse* helpers everywhere · b9e51e56
      Cole Robinson 提交于
      virt-aa-helper isn't even compile tested since I don't have the setup for
      it.
      
      v2:
          virt-aa-helper fixes from Eric
      b9e51e56
    • C
      domain: Require <init> for container guests · 34639a3f
      Cole Robinson 提交于
      Use capabilities to allow a driver to register a default <init> if none
      is specified in the XML. Openvz was already open-coding this to be /sbin/init
      
      LXC currently falls over if no init is specified, so an explicit error is
      an improvement IMO.
      
      (Side note: I don't think we can set a default value for LXC. If we use
      /sbin/init but the user doesn't specify a separate root FS for their guest,
      the container will rerun the host's init which can be traumatic :). For
      virt-install I'm thinking of defaulting to /sbin/init if a root FS has
      been specified, otherwise require the user to manually specify <init>)
      34639a3f
    • C
      xml: Make sure virXpathNodeSet always sets an error · 0571c3af
      Cole Robinson 提交于
      And update callers to actually respect the error
      0571c3af
    • M
      vbox: Implement the driver methods · 11d54887
      Michal Privoznik 提交于
      * src/vbox/vbox_tmpl.c: New vboxDomainScreenshot() function
      11d54887
    • M
      qemu: Implement the driver methods · 9936aecf
      Michal Privoznik 提交于
      * src/qemu/qemu_driver.c: new qemuDomainScreenshot() function
      * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
        src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_json.h,
        src/qemu/qemu_monitor_text.c, src/qemu/qemu_monitor_text.h:
        Monitor command
      9936aecf
    • M
      virFDStream: Add option for delete file after it's opening · 6a1f5f56
      Michal Privoznik 提交于
      This is needed if we want to transfer a temporary file. If the
      transfer is done with iohelper, we might run into a race condition,
      where we unlink() file before iohelper is executed.
      
      * src/fdstream.c, src/fdstream.h,
        src/util/iohelper.c: Add new option
      * src/lxc/lxc_driver.c, src/qemu/qemu_driver.c,
        src/storage/storage_driver.c, src/uml/uml_driver.c,
        src/xen/xen_driver.c: Expand existing function calls
      6a1f5f56
    • M
      screenshot: Implementing the remote protocol · 2c6efac9
      Michal Privoznik 提交于
      * src/remote/remote_protocol.x: Wire protocol definition
      * daemon/remote.c: Daemon part
      * src/remote/remote_driver.c: Client part
      * src/remote_protocol-structs: Add structures
      2c6efac9
    • M
      screenshot: Implementing the public API · 1f9f1214
      Michal Privoznik 提交于
      * src/libvirt.c: new function virDomainScreenshot
      1f9f1214
    • M
      screenshot: Defining the internal API · 3c386643
      Michal Privoznik 提交于
      * src/driver.h: Stub code for new API
      * src/esx/esx_driver.c, src/libxl/libxl_driver.c,
        src/lxc/lxc_driver.c, src/openvz/openvz_driver.c,
        src/phyp/phyp_driver.c, src/qemu/qemu_driver.c,
        rc/remote/remote_driver.c, rc/test/test_driver.c,
        src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
        src/vmware/vmware_driver.c, src/xen/xen_driver.c,
        src/xen/xen_driver.h, src/xen/xen_hypervisor.c,
        src/xen/xen_inotify.c, src/xen/xend_internal.c,
        src/xen/xm_internal.c, src/xen/xs_internal.c,
        src/xenapi/xenapi_driver.c: Add dummy entries in driver
        table for new APIs
      3c386643