1. 03 6月, 2017 2 次提交
  2. 26 5月, 2017 1 次提交
  3. 18 5月, 2017 3 次提交
    • E
      nodedev: Introduce the mdev capability to a PCI parent device · 500cbc06
      Erik Skultety 提交于
      The parent device needs to report the generic stuff about the supported
      mediated devices types, like device API, available instances, type name,
      etc. Therefore this patch introduces a new nested capability element of
      type 'mdev_types' with the resulting XML of the following format:
      
      <device>
        ...
        <capability type='pci'>
          ...
          <capability type='mdev_types'>
            <type id='vendor_supplied_id'>
              <name>optional_vendor_supplied_codename</name>
              <deviceAPI>vfio-pci</deviceAPI>
              <availableInstances>NUM</availableInstances>
            </type>
              ...
            <type>
              ...
            </type>
          </capability>
        </capability>
        ...
      </device>
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1452072Signed-off-by: NErik Skultety <eskultet@redhat.com>
      500cbc06
    • M
      Introduce virStreamInData · 84b50792
      Michal Privoznik 提交于
      This is just an internal API, that calls corresponding function
      in stream driver. This function will set @data = 1 if the
      underlying file is in data section, or @data = 0 if it is in a
      hole. At any rate, @length is set to number of bytes remaining in
      the section the file currently is.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      84b50792
    • M
      util: Introduce virFileInData · b928d140
      Michal Privoznik 提交于
      This function takes a FD and determines whether the current
      position is in data section or in a hole. In addition to that,
      it also determines how much bytes are there remaining till the
      current section ends.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b928d140
  4. 12 5月, 2017 2 次提交
  5. 10 5月, 2017 1 次提交
    • D
      Don't inline virStringTrimOptionalNewline · 1a77b97c
      Daniel P. Berrange 提交于
      GCC complains that inlining virStringTrimOptionalNewline is not
      likely on some platforms:
      
        cc1: warnings being treated as errors
        ../../src/util/virfile.c: In function 'virFileReadValueBitmap':
        ../../src/util/virstring.h:292: error: inlining failed in call to 'virStringTrimOptionalNewline': call is unlikely and code size would grow [-Winline]
        ../../src/util/virfile.c:3987: error: called from here [-Winline]
      
      Inlining this function is not going to be a measurable performance
      benefit either, since the time required to execute it is going to
      be dominated by running of strlen() over the string, not by the
      function call overhead.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1a77b97c
  6. 09 5月, 2017 2 次提交
  7. 28 4月, 2017 1 次提交
  8. 27 4月, 2017 4 次提交
  9. 21 4月, 2017 1 次提交
    • M
      util: Add virNetDevSetCoalesce function · 652ef9bc
      Martin Kletzander 提交于
      That function is able to configure coalesce settings for an interface,
      similarly to 'ethtool -C'.  This function also updates back the
      structure so that it contains actual data on the device (if the device
      doesn't support some settings kernel might just return 0 and not set
      whatever is not supported), so this way we'll have up-to-date
      information in the live domain XML.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      652ef9bc
  10. 19 4月, 2017 4 次提交
  11. 13 4月, 2017 3 次提交
  12. 11 4月, 2017 5 次提交
  13. 10 4月, 2017 4 次提交
  14. 07 4月, 2017 1 次提交
    • J
      cpu: Introduce virCPUCopyMigratable · 05e91c79
      Jiri Denemark 提交于
      This new internal API makes a copy of virCPUDef while removing all
      features which would block migration. It uses cpu_map.xml as a database
      of such features, which should only be used as a fallback when we cannot
      get the data from a hypervisor. The main goal of this API is to decouple
      this filtering from virCPUUpdate so that the hypervisor driver can
      filter the features according to the hypervisor.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      05e91c79
  15. 03 4月, 2017 1 次提交
    • M
      Introduce and use virDomainDiskEmptySource · 462c4b66
      Michal Privoznik 提交于
      Currently, if we want to zero out disk source (e,g, due to
      startupPolicy when starting up a domain) we use
      virDomainDiskSetSource(disk, NULL). This works well for file
      based storage (storage type file, dir, or block). But it doesn't
      work at all for other types like volume and network.
      
      So imagine that you have a domain that has a CDROM configured
      which source is a volume from an inactive pool. Because it is
      startupPolicy='optional', the CDROM is empty when the domain
      starts. However, the source element is not cleared out in the
      status XML and thus when the daemon restarts and tries to
      reconnect to the domain it refreshes the disks (which fails - the
      storage pool is still not running) and thus the domain is killed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      462c4b66
  16. 27 3月, 2017 5 次提交
    • M
      Expose Linux symbols only on Linux · 76107bf1
      Martin Kletzander 提交于
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      76107bf1
    • J
      cpu: Introduce virCPUExpandFeatures · 0aa9383f
      Jiri Denemark 提交于
      Having to use cpuBaseline with VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES
      flag to expand CPU features is strange. Not to mention that cpuBaseline
      can only expand host CPU definitions (i.e., it completely ignores
      feature policies). The new virCPUExpandFeatures API is designed to work
      with both host and guest CPU definitions.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      0aa9383f
    • J
      cpu_conf: Introduce virCPUDefFreeFeatures · 532fc7b7
      Jiri Denemark 提交于
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      532fc7b7
    • L
      util: remove unused functions from virnetdev.c · bc4168f3
      Laine Stump 提交于
      The global functions virNetDevReplaceMacAddress(),
      virNetDevReplaceNetConfig(), virNetDevRestoreMacAddress(), and
      virNetDevRestoreNetConfig() are no longer used, as their functionality
      has been replaced by virNetDev(Save|Read|Set)NetConfig().
      
      The static functions virNetDevReplaceVfConfig() and
      virNetDevRestoreVfConfig() were only used by the above-named global
      functions that were removed.
      bc4168f3
    • L
      util: new functions virNetDev(Save|Read|Set)NetConfig() · 26694daf
      Laine Stump 提交于
      These three functions are destined to replace
      virNetDev(Replace|Restore)NetConfig() and
      virNetDev(Replace|Restore)MacAddress(), which both do the save and set
      together as a single step. We need to separate the save, read, and set
      steps because there will be situations where we need to do something
      else in between (in particular, we will need to rebind a VF's driver
      after save but before set).
      
      This patch creates the new functions, but doesn't call them - that
      will come in a subsequent patch. Note that the new functions to
      read/write the file that stores the original network config now uses
      JSON rather than plaintext (it still recognizes the old format as well
      though, so it won't get confused during an upgrade).
      26694daf