1. 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
  2. 07 10月, 2016 1 次提交
  3. 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
  4. 30 9月, 2016 1 次提交
  5. 22 9月, 2016 11 次提交
  6. 21 9月, 2016 1 次提交
  7. 20 9月, 2016 1 次提交
  8. 15 9月, 2016 1 次提交
  9. 14 9月, 2016 1 次提交
  10. 13 9月, 2016 1 次提交
  11. 09 9月, 2016 1 次提交
  12. 06 9月, 2016 1 次提交
  13. 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
  14. 02 9月, 2016 1 次提交
  15. 25 8月, 2016 1 次提交
  16. 15 8月, 2016 1 次提交
    • J
      Introduce node device update event as top level event · 43a6b37b
      Jovanka Gulicoska 提交于
      This event is emitted when a nodedev XML definition is updated,
      like when cdrom media is changed in a cdrom block device.
      
      Also includes node device update event implementation for udev
      backend, virsh nodedev-event support, and event-test support
      43a6b37b
  17. 02 8月, 2016 1 次提交
  18. 28 7月, 2016 1 次提交
    • J
      util: Introduce virISCSINodeNew · ae65c908
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1356436
      
      According to RFC 3721 (https://www.ietf.org/rfc/rfc3721.txt), there are
      two ways to "discover" targets in/for the iSCSI environment. Discovery
      is the process which allows the initiator to find the targets to which
      it has access and at least one address at which each target may be
      accessed.
      
      The method currently implemented in libvirt using the virISCSIScanTargets
      API is known as "SendTargets" discovery. This method is more useful when
      the target IP Address and TCP port information are available, e.g. in
      libvirt terms the "portal". It returns a list of targets for the portal.
      From that list, the target can be found. This operation can also fill an
      iSCSI node table into which iSCSI logins may occur. Commit id '56057900'
      altered that filling by adding the "--op nonpersistent" since it was
      not necessarily desired to perform that for non libvirt related targets.
      
      The second method is "Static Configuration". This method not only needs
      the IP Address and TCP port (e.g. portal), but also the iSCSI target name.
      In libvirt terms this would be the device path field from the iSCSI pool
      <source> XML. This patch implements the second methodology using that
      required device path as the targetname.
      ae65c908