1. 26 6月, 2020 1 次提交
  2. 15 6月, 2020 1 次提交
  3. 05 5月, 2020 1 次提交
  4. 24 4月, 2020 1 次提交
  5. 17 3月, 2020 1 次提交
    • D
      rpc: avoid name lookup when dispatching node device APIs · 69eee587
      Daniel P. Berrangé 提交于
      The node device APIs are a little unusual because we don't use a
      "remote_nonnull_node_device" object on the wire, instead we just
      have a "remote_string" for the device name. This meant dispatcher
      code generation needed special cases. In doing so we mistakenly
      used the virNodeDeviceLookupByName() API which gets dispatched
      into the driver, instead of get_nonnull_node_device() which
      directly populates a virNodeDevicePtr object.
      
      This wasn't a problem with monolithic libvirtd, as the
      virNodeDeviceLookupByName() API call was trivially satisfied
      by the registered driver, albeit with an extra (undesirable)
      authentication check. With the split daemons, the call to
      virNodeDeviceLookupByName() fails in virtqemud, because the
      node device driver obviously doesn't exist in that daemon.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      69eee587
  6. 06 2月, 2020 1 次提交
  7. 17 1月, 2020 2 次提交
  8. 16 1月, 2020 1 次提交
  9. 17 12月, 2019 1 次提交
  10. 14 12月, 2019 2 次提交
  11. 12 11月, 2019 1 次提交
  12. 09 11月, 2019 1 次提交
  13. 25 10月, 2019 4 次提交
  14. 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
  15. 21 10月, 2019 1 次提交
  16. 16 10月, 2019 1 次提交
  17. 15 10月, 2019 3 次提交
  18. 14 10月, 2019 1 次提交
  19. 16 9月, 2019 1 次提交
  20. 28 8月, 2019 4 次提交
  21. 27 8月, 2019 1 次提交
  22. 26 8月, 2019 1 次提交
  23. 16 8月, 2019 1 次提交
  24. 09 8月, 2019 6 次提交
  25. 27 7月, 2019 1 次提交