1. 13 11月, 2019 1 次提交
  2. 12 11月, 2019 9 次提交
  3. 07 11月, 2019 1 次提交
  4. 25 10月, 2019 9 次提交
  5. 24 10月, 2019 1 次提交
    • M
      Drop needless ret variable · 3b4df5d3
      Michal Privoznik 提交于
      In few places we have the following code pattern:
      
        int ret;
        ... /* @ret is not accessed here */
        ret = f(...);
        return ret;
      
      This pattern can be written less verbose:
      
        ...
        return f(...);
      
      This patch was generated with following coccinelle spatch:
      
        @@
        type T;
        constant C;
        expression f;
        identifier ret;
        @@
        -T ret = C;
         ... when != ret
        -ret = f;
        -return ret;
        +return f;
      
      Afterwards I needed to fix a few places, e.g. comment in
      virDomainNetIPParseXML() was removed too because coccinelle
      thinks it refers to @ret while in fact it doesn't. Also in few
      places it replaced @ret declaration with a few spaces instead of
      removing the line. But nothing terribly wrong.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      3b4df5d3
  6. 23 10月, 2019 2 次提交
  7. 21 10月, 2019 11 次提交
  8. 18 10月, 2019 1 次提交
    • J
      conf: Add 'x' and 'y' resolution into video XML definition · 72862797
      Julio Faracco 提交于
      This commit adds resolution element with parameters 'x' and 'y' into video
      XML domain group definition. Both, properties were added into an element
      called 'resolution' and it was added inside 'model' element. They are set
      as optional. This element does not follow QEMU properties 'xres' and
      'yres' format. Both HTML documentation and schema were changed too. This
      commit includes a simple test case to cover resolution for QEMU video
      models. The new XML format for resolution looks like:
      
          <model ...>
            <resolution x='800' y='600'/>
          </model>
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      72862797
  9. 17 10月, 2019 2 次提交
    • J
      conf: Use consistent error preservation and restoration calls · 4e7b3b1e
      John Ferlan 提交于
      Provide some consistency over error message variable name and usage
      when saving error messages across possible other errors or possibility
      of resetting of the last error.
      
      Instead of virSaveLastError paired up with virSetError and virFreeError,
      we should use the newer virErrorPreserveLast and virRestoreError.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      4e7b3b1e
    • L
      conf: remove parse code for long-extinct "<state devaddr='d:b:s'/> · 382c762c
      Laine Stump 提交于
      Back in July 2009, in the days before libvirt supported explicitly
      assigning a PCI address to every device, code was added to save the
      PCI addresses of hotplugged network, disk, and hostdevs in the domain
      status with this XML element:
      
         <state devaddr='domain:bus:slot'/>
      
      This was added in commits 4e21a95a, 01654107, in v0.7.0, and 0c5b7b93
      in v0.7.1.
      
      Then just a few months later, in November 2009, The code that actually
      formatted the "devaddr='blah'" into the status XML was removed by
      commit 1b0cce7d (which "introduced a standardized data structure for
      device addresses"). The code to *parse* the devaddr from the status
      was left in for backward compatibility though (it just parses it into
      the "standard" PCI address).
      
      At the time the devaddr attribute was added, a few other attributes
      already existed in the <state> element for network devices, and these
      were removed over time (I haven't checked the exact dates of this),
      but 10 years later, in libvirt v5.8.0, we *still* maintain code to
      parse <state devaddr='blah'/> from the domain status.
      
      In the meantime, even distros so old that we no longer support them in
      upstream libvirt are using a libvirt new enough that it doesn't ever
      write <state devaddr='blah'/> to the domain status XML.
      
      Since the only way a current libvirt would ever encounter this element
      would be if someone was upgrading directly from libvirt <= v0.7.5 with
      running guests, it seems safe to finally remove the code that parses it.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      382c762c
  10. 16 10月, 2019 3 次提交