1. 16 5月, 2011 10 次提交
  2. 14 5月, 2011 21 次提交
  3. 13 5月, 2011 9 次提交
    • 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