1. 28 7月, 2011 16 次提交
  2. 27 7月, 2011 14 次提交
  3. 26 7月, 2011 10 次提交
    • A
      tools: format percent strings of nodecpustats · 831c81fc
      Alex Jia 提交于
      * tools/virsh.c: format strings display for virsh nodecpustats --percent.
      
      * how to reproduce?
      
      % virsh nodecpustats --percent
      usage:            2.0%
          user  :       1.0%
          system:       1.0%
      idle  :          98.0%
      iowait:           0.0%
      
      * after format strings
      
      % virsh nodecpustats --percent
      usage:            2.0%
      user:             1.0%
      system:           1.0%
      idle:            98.0%
      iowait:           0.0%
      Signed-off-by: NAlex Jia <ajia@redhat.com>
      831c81fc
    • S
      Build: fix build if HAVE_AVAHI is not defined · f63930a7
      Stefan Berger 提交于
      Fix the build if HAVE_AVAHI is not defined.
      f63930a7
    • D
      Fix incorrect implication about list options · 93fb3acc
      Dave Allan 提交于
      The description of the list command seemed to suggest that it could
      take a set of domains as an argument, which is not correct in the
      current HEAD.  If virsh list is intended to take a list of domains,
      then this patch should be NAK'd and a bug opened against virsh list.
      
      Reported by hachi on #virt
      
      v2:
      
      Change language to include transient domains
      
      Osier pointed out that transient domains are not defined, so what I
      had originally proposed wasn't quite correct.
      93fb3acc
    • D
      Fix race in ref counting when handling RPC jobs · 0302391e
      Daniel P. Berrange 提交于
      When an incoming RPC message is ready for processing,
      
        virNetServerClientDispatchRead()
      
      will invoke the 'dispatchFunc' callback. This is set to
      
        virNetServerDispatchNewMessage
      
      This function puts the message + client in a queue for processing by the thread
      pool. The thread pool worker function is
      
        virNetServerHandleJob
      
      The first thing this does is acquire an extra reference on the 'client'.
      
      Unfortunately, between the time the message+client are put on the thread pool
      queue, and the time the worker runs, the client object may have had its last
      reference removed.
      
      We clearly need to add the reference to the client object before putting the
      client on the processing queue
      
      * src/rpc/virnetserverclient.c: Add a reference to the client when
        invoking the dispatch function
      * src/rpc/virnetserver.c: Don't acquire a reference to the client
        when in the worker thread
      0302391e
    • W
      set cpu bandwidth for the vm · 652e55b7
      Wen Congyang 提交于
      The cpu bandwidth is applied at the vcpu group level. We should apply it
      at the vm group level too, because the vm may do heavy I/O, and it will affect
      the other vm.
      
      We apply cpu bandwidth at the vcpu and the vm group level, so we must ensure
      that max(child_quota) <= parent_quota when we modify cpu bandwidth.
      652e55b7
    • D
      Fix build with gnutls 1.0.x branch · 4d349ef7
      Daniel P. Berrange 提交于
      4d349ef7
    • D
      Fix typos in virsh.pod file · a4b4b6aa
      Daniel P. Berrange 提交于
      * tools/virsh.pod: Fix missing > tag in docs
      a4b4b6aa
    • O
      network: Fix typo · 8fb9fdc3
      Osier Yang 提交于
      Introduced by commit 239322cb, reported by Ruben Kerkhof.
      8fb9fdc3
    • D
      Add libtasn1-devel as a BuildRequires for libvirt.spec · 7df6945d
      Daniel P. Berrange 提交于
      * libvirt.spec.in: Add libtasn1-devel
      7df6945d
    • D
      Add mutex protection to SASL and TLS modules · 5622830c
      Daniel P. Berrange 提交于
      The virNetSASLContext, virNetSASLSession, virNetTLSContext and
      virNetTLSSession classes previously relied in their owners
      (virNetClient / virNetServer / virNetServerClient) to provide
      locking protection for concurrent usage. When virNetSocket
      gained its own locking code, this invalidated the implicit
      safety the SASL/TLS modules relied on. Thus we need to give
      them all explicit locking of their own via new mutexes.
      
      * src/rpc/virnetsaslcontext.c, src/rpc/virnettlscontext.c: Add
        a mutex per object
      5622830c