1. 09 8月, 2015 1 次提交
    • L
      conf: more useful error message when pci function is out of range · f8fe8f03
      Laine Stump 提交于
      If a pci address had a function number out of range, the error message
      would be:
      
        Insufficient specification for PCI address
      
      which is logged by virDevicePCIAddressParseXML() after
      virDevicePCIAddressIsValid returns a failure.
      
      This patch enhances virDevicePCIAddressIsValid() to optionally report
      the error itself (since it is the place that decides which part of the
      address is "invalid"), and uses that feature when calling from
      virDevicePCIAddressParseXML(), so that the error will be more useful,
      e.g.:
      
        Invalid PCI address function=0x8, must be <= 7
      
      Previously, virDevicePCIAddressIsValid didn't check for the
      theoretical limits of domain or bus, only for slot or function. While
      adding log messages, we also correct that ommission. (The RNG for PCI
      addresses already enforces this limit, which by the way means that we
      can't add any negative tests for this - as far as I know our
      domainschematest has no provisions for passing XML that is supposed to
      fail).
      
      Note that virDevicePCIAddressIsValid() can only check against the
      absolute maximum attribute values for *any* possible PCI controller,
      not for the actual maximums of the specific controller that this
      device is attaching to; fortunately there is later more specific
      validation for guest-side PCI addresses when building the set of
      assigned PCI addresses. For host-side PCI addresses (e.g. for
      <hostdev> and for network device pools), we rely on the error that
      will be logged when it is found that the device doesn't actually
      exist.
      
      This resolves:
      
        https://bugzilla.redhat.com/show_bug.cgi?id=1004596
      f8fe8f03
  2. 07 8月, 2015 3 次提交
  3. 06 8月, 2015 6 次提交
  4. 05 8月, 2015 6 次提交
    • P
      qemu: Forbid image pre-creation for non-shared storage migration · 6da3b694
      Peter Krempa 提交于
      Libvirt doesn't reliably know the location of the backing chain when
      pre-creating images for non-shared migration. This isn't a problem for
      full copy, but incremental copy requires the information.
      
      Forbid pre-creating the image in cases where incremental migration is
      required. This limitation can perhaps be lifted once libvirt will fully
      support loading of backing chain information from the XML.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1249587
      6da3b694
    • A
      cpu: Indentation changes in the ppc64 driver · 4ff3e939
      Andrea Bolognani 提交于
      4ff3e939
    • A
      cpu: Rename {powerpc,ppc} => ppc64 (internal symbols) · 3d151589
      Andrea Bolognani 提交于
      Update the names of the symbols used internally by the driver.
      
      No functional changes.
      3d151589
    • A
      cpu: Rename {powerpc,ppc} => ppc64 (exported symbols) · e89733c4
      Andrea Bolognani 提交于
      Only the symbols exported by the driver have been updated;
      the driver implementation itself still uses the old names
      internally.
      
      No functional changes.
      e89733c4
    • A
      cpu: Rename {powerpc,ppc} => ppc64 (filesystem) · ef770f01
      Andrea Bolognani 提交于
      The driver only supports VIR_ARCH_PPC64 and VIR_ARCH_PPC64LE.
      
      Just shuffling files around and updating the build system
      accordingly. No functional changes.
      ef770f01
    • J
      conf: Resolve Coverity FORWARD_NULL · a16871fe
      John Ferlan 提交于
      The recent changes to perform SCSI device address checks during the
      post parse callbacks ran afoul of the Coverity checker since the changes
      assumed that the 'xmlopt' parameter to virDomainDeviceDefPostParse
      would be non NULL (commit id 'ca2cf74e'); however, what was missed
      is there was an "if (xmlopt &&" check being made, so Coverity believed
      that it could be possible for a NULL 'xmlopt'.
      
      Checking the various calling paths seemingly disproves that. If called
      from virDomainDeviceDefParse, there were two other possible calls that
      would end up dereffing, so that path could not be NULL. If called via
      virDomainDefPostParseDeviceIterator via virDomainDefPostParse there
      are two callers (virDomainDefParseXML and qemuParseCommandLine)
      which deref xmlopt either directly or through another call.
      
      So I'm removing the check for non-NULL xmlopt.
      a16871fe
  5. 04 8月, 2015 12 次提交
  6. 03 8月, 2015 6 次提交
  7. 31 7月, 2015 2 次提交
  8. 30 7月, 2015 3 次提交
  9. 29 7月, 2015 1 次提交
    • E
      qemu: Adjust VM id allocation · b2960501
      Erik Skultety 提交于
      Our atomic increment (virAtomicIntInc) uses (if available) gcc
      __sync_add_and_fetch builtin. In qemu driver though, we'd profit more
      from __sync_fetch_and_add builtin. To keep it simplistic, this patch
      adjusts qemu driver initialization rather than adding a new atomic
      increment macro.
      b2960501