1. 15 8月, 2016 1 次提交
  2. 10 8月, 2016 2 次提交
  3. 09 8月, 2016 1 次提交
  4. 04 8月, 2016 1 次提交
  5. 03 8月, 2016 1 次提交
    • J
      conf: Add IOThread quota and period scheduler/cputune defs · 2197ea56
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1356937
      
      Add the definitions to allow for viewing/setting cgroup period and quota
      limits for IOThreads.
      
      This is similar to the work done for emulator quota and period by
      commit ids 'b65dafa8' and 'e051c482'.
      
      Being able to view/set the IOThread specific values is related to more
      recent changes adding global period (commmit id '4d92d58f') and global
      quota (commit id '55ecdae0') definitions and qemu support (commit id
      '4e17ff79' and 'fbcbd1b2'). With a global setting though, if somehow
      the IOThread value in the cgroup hierarchy was set "outside of libvirt"
      to a value that is incompatible with the global value.
      
      Allowing control over IOThread specific values provides the capability
      to alter the IOThread values as necessary.
      2197ea56
  6. 02 8月, 2016 7 次提交
  7. 01 8月, 2016 1 次提交
    • M
      wireshark: Drop glib dependency · 1045c56c
      Michal Privoznik 提交于
      The only function that we currently use from glib is g_sprintf().
      That's a very big gun for such small target. Not only that, but
      we've silently relied on wireshark dragging in the glib. Replace
      the g_sprintf() with plain sprinf() so that we can drop the glib
      dependency.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1045c56c
  8. 29 7月, 2016 1 次提交
    • E
      admin: Fix default uri config option name s/admin_uri_default/uri_default · f5f32bcd
      Erik Skultety 提交于
      The original name 'admin_uri_default' was introduced to our code by commit
      dbecb87f. However, at that time we already had a separate config file for
      admin library but the commit mentioned above didn't properly adjust the
      config's option name. The result is that when we're loading the config, we
      check a non-existent config option (there's not much to do with the URIs
      anyway, since we only allow local connection). Additionally, virt-admin's man
      page documents, that the default URI can be altered by setting
      admin_uri_default option. So the fix proposed by this patch leaves the
      libvirt-admin.conf as is and adjusts the naming in the code as well as in the
      virt-admin's man page.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      f5f32bcd
  9. 28 7月, 2016 5 次提交
    • M
      wireshark: Adapt to dissector function header change · 98aefa81
      Michal Privoznik 提交于
      In wireshark commit bbdd89b9 (contained in 2.1.0 release) they
      have changed prototype of dissector function. Now it returns
      number of bytes consumed by the dissector, and can get a pointer
      to user specified data (which we don't use).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      98aefa81
    • E
      tools: Make use of the correct environment variables · d02ef334
      Erik Skultety 提交于
      Since commit 834c5720 which extracted the generic functionality out of virsh
      and made it available for other clients like virt-admin to make use of it, it
      also introduced a bug when it renamed the original VIRSH_ environment variables
      to VSH_ variables. Virt-admin of course suffers from the same bug, so this
      patch modifies the generic module vsh.c to construct the correct name for
      environment variables of each client from information it has.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1357363Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d02ef334
    • E
      vsh: Make vshInitDebug return int instead of void · 0ef07e19
      Erik Skultety 提交于
      Well, the reason behind this change is that if the function is extended in some
      way that e.g. would involve allocation we do not have a way of telling it to
      the caller. More specifically, vshInitDebug only relies on some hardcoded
      environment variables (by a mistake) that aren't documented anywhere so neither
      virsh's nor virt-admin's documented environment variables take effect. One
      possible solution would be duplicate the code for each CLI client or leave the
      method be generic and provide means that it could figure out, which client
      called it, thus initializing the proper environment variables but that could
      involve operations that might as well fail in certain circumstances and the
      caller should know that an error occurred.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      0ef07e19
    • M
      vshReadlineParse: Drop some unused variables · ea2ad171
      Michal Privoznik 提交于
      My compiler identified some variables that were set, but never
      actually used. For instance, opts_required, and data_acomplete.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ea2ad171
    • M
      vshCmddefGetOption: Change type of opt_index · 2bc97f27
      Michal Privoznik 提交于
      This function tries to look up desired option for a given parsed
      command. Upon successful return it also stores option position
      into passed *opt_index. Now, this variable is type of int, even
      though it is never ever used to store negative value. Moreover,
      the variable is set from a local variable which is type of
      size_t.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2bc97f27
  10. 27 7月, 2016 5 次提交
  11. 26 7月, 2016 2 次提交
  12. 19 7月, 2016 3 次提交
    • J
      vsh: Properly initialize res · bd93ba64
      John Ferlan 提交于
      The 'res' variable was only being initialized to NULL in the
      if (!state) path; however, that path never used res and evenutally
      res is assigned one of two results based on a pair of if then else if
      conditions. If for some reason neither of those paths was taken and
      the (!state) path wasn't taken, then 'res' would be indeterminate.
      
      Found by Coverity, probably a false positive based on code paths, but
      better safe than sorry for the future.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      bd93ba64
    • J
      tools: Fix comparison in virLoginShellGetShellArgv · dfb18b0a
      John Ferlan 提交于
      Commit id '740e4d70' altered the logic to fetch the sysconf values and
      added a new virConfGetValueStringList which returns -1 on failure, 0 if
      missing, and 1 if the value was present.
      
      However, the caller only checked !shargv which caught Coverity's attention
      since the following VIR_ALLOC_N(*shargv, 2) would be a NULL ptr deref
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      dfb18b0a
    • E
      virt-admin: Output srv-threadpool-info data as unsigned int rather than signed · a8962f70
      Erik Skultety 提交于
      Internally, all the data are represented as unsigned int, it is also documented
      in the header file that users should use our exported constants that also
      indicate that the data should be unsigned int. However, when polling for the
      current server threadpool's configuration, virt-admin uses an incorrect
      formatting parameter '%d' for printf. Instead, virt-admin should use formatting
      parameter '%u'.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1356769Signed-off-by: NErik Skultety <eskultet@redhat.com>
      a8962f70
  13. 12 7月, 2016 1 次提交
  14. 11 7月, 2016 5 次提交
  15. 29 6月, 2016 1 次提交
  16. 25 6月, 2016 1 次提交
  17. 24 6月, 2016 2 次提交