1. 20 10月, 2016 1 次提交
  2. 12 10月, 2016 1 次提交
  3. 11 10月, 2016 1 次提交
  4. 10 10月, 2016 13 次提交
    • E
      virlog: Remove functions that aren't used anywhere anymore · adda3e4f
      Erik Skultety 提交于
      This is mainly virLogAddOutputTo* which were replaced by virLogNewOutputTo* and
      the previously poorly named ones virLogParseAndDefine* functions. All of these
      are unnecessary now, since all the original callers were transparently switched
      to the new model of separate parsing and defining logic.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      adda3e4f
    • E
      virlog: Introduce virLogSetFilters · c33babfe
      Erik Skultety 提交于
      This method will eventually replace virLogParseAndDefineFilters which
      currently does both parsing and defining.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      c33babfe
    • E
      virlog: Introduce virLogSetOutputs · 6db7b8cb
      Erik Skultety 提交于
      This API is the entry point to output modification of the logger. Currently,
      everything is done by virLogParseAndDefineOutputs. Parsing and defining will be
      split into two operations both handled by this method transparently.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      6db7b8cb
    • E
      virlog: Introduce virLogParseFilters · 09d7ced8
      Erik Skultety 提交于
      Abstraction added over parsing a single filter. The method parses potentially a
      set of logging filters, while adding each filter logging object to a
      caller-provided array.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      09d7ced8
    • E
      virlog: Introduce virLogParseOutputs · 4b266c18
      Erik Skultety 提交于
      Another abstraction added on the top of parsing a single logging output. This
      method takes and parses the whole set of outputs, adding each single output
      that has already been parsed into a caller-provided array. If the user-supplied
      string contained duplicate outputs, only the last occurrence is taken into
      account (all the others are removed from the list), so we silently avoid
      duplicate logs.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      4b266c18
    • E
      virlog: Introduce virLogParseFilter · 77a45f2f
      Erik Skultety 提交于
      Same as for outputs, introduce a new method, that is basically the same as
      virLogParseAndDefineFilter with the difference that it does not define the
      filter. It rather returns a newly created object that needs to be inserted into
      a list and then defined separately.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      77a45f2f
    • E
      virlog: Introduce virLogParseOutput · 09b7cbb1
      Erik Skultety 提交于
      Introduce a method to parse an individual logging output. The difference
      compared to the virLogParseAndDefineOutput is that this method does not define
      the output, instead it makes use of the virLogNewOutputTo* methods introduced
      in the previous patch and just returns the virLogOutput object that has to be
      added to a list of object which then can be defined as a whole via
      virLogDefineOutputs. The idea remains still the same - split parsing and
      defining of the logging primitives (outputs, filters).
      Additionally, since virLogNewOutputTo* methods are now finally used,
      ATTRIBUTE_UNUSED can be successfully removed from the methods' definitions,
      since that was just to avoid compiler complaints about unused static functions.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      09b7cbb1
    • E
      virlog: Introduce virLogDefineFilters · 58ab1b6f
      Erik Skultety 提交于
      Prepare a method that only defines a set of filters. It takes a list of
      filters, preferably created by virLogParseFilters. The original set of filters
      is reset and replaced by the new user-provided set of filters.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      58ab1b6f
    • E
      virlog: Introduce virLogDefineOutputs · d9d6b61f
      Erik Skultety 提交于
      Prepare a method that only defines a set of outputs. It takes a list of
      outputs, preferably created by virLogParseOutputs. The original set of outputs
      is reset and replaced by the new user-provided set of outputs.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d9d6b61f
    • E
      virlog: Introduce virLogFindOutput · b5004b09
      Erik Skultety 提交于
      Outputs are a bit trickier than filters, since the user(config)-specified
      set of outputs can contain duplicates. That would lead to logging the same
      message twice. For compatibility reasons, we cannot just error out and forbid
      the daemon to start if we find duplicate outputs which do not make sense.
      Instead, we could silently take into account only the last occurrence of the
      duplicate output and remove all the previous ones, so that the logger will not
      try to use them when it is looping over all of its registered outputs.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      b5004b09
    • E
      virlog: Introduce virLogFilterNew · 435200ca
      Erik Skultety 提交于
      This method allocates a new filter object which it then returns back to caller.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      435200ca
    • E
      virlog: Introduce virLogOutputNew · b0f5dc91
      Erik Skultety 提交于
      In order to later split output parsing and output defining, introduce a new
      function which will create a new virLogOutput object which the parser will
      insert into a list with the list being eventually defined.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      b0f5dc91
    • E
      virlog: Rename virLogParse* to virLogParseAndDefine* · b8c370a9
      Erik Skultety 提交于
      Right now virLogParse* functions are doing both parsing and defining of filters
      and outputs which should be two separate operations. Since the naming is
      apparently a bit poor this patch renames these functions to
      virLogParseAndDefine* which eventually will be replaced by virLogSet*.
      Additionally, virLogParse{Filter,Output} will be later (after the split) reused,
      so that these functions do exactly what the their name suggests.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      b8c370a9
  5. 07 10月, 2016 1 次提交
  6. 05 10月, 2016 1 次提交
    • J
      util: Introduce virJSONValueObjectStealArray · ebf8b783
      John Ferlan 提交于
      Provide the Steal API for any code paths that will desire to grab the
      object array and then free it afterwards rather than relying to freeing
      the whole chain from the reply.
      ebf8b783
  7. 30 9月, 2016 1 次提交
  8. 22 9月, 2016 11 次提交
  9. 21 9月, 2016 1 次提交
  10. 20 9月, 2016 1 次提交
  11. 15 9月, 2016 1 次提交
  12. 14 9月, 2016 1 次提交
  13. 13 9月, 2016 1 次提交
  14. 09 9月, 2016 1 次提交
  15. 06 9月, 2016 1 次提交
  16. 03 9月, 2016 1 次提交
    • N
      qemu: Filter cur_balloon ABI check for certain transactions · c62e79c8
      Nikolay Shirokovskiy 提交于
      Since the domain lock is not held during preparation of an external XML
      config, it is possible that the value can change resulting in unexpected
      failures during ABI consistency checking for some save and migrate
      operations.
      
      This patch adds a new flag to skip the checking of the cur_balloon value
      and then sets the destination value to the source value to ensure
      subsequent checks without the skip flag will succeed.
      
      This way it is protected from forges and is keeped up to date too.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      c62e79c8
  17. 02 9月, 2016 1 次提交
  18. 25 8月, 2016 1 次提交