You need to sign in or sign up before continuing.
  1. 09 12月, 2019 6 次提交
  2. 05 12月, 2019 1 次提交
  3. 03 12月, 2019 7 次提交
  4. 27 11月, 2019 1 次提交
  5. 26 11月, 2019 1 次提交
  6. 22 11月, 2019 2 次提交
    • M
      qemuProcessStop: Remove image metadata for running mirror jobs · 8fa0374c
      Michal Privoznik 提交于
      If user starts a blockcommit or a blockcopy then we modify access
      for qemu on both images and leave it like that until the job
      terminates.  So far so good. Problem is, if user instead of
      terminating the job (where we would modify the access again so
      that the state before the job is restored) calls destroy on the
      domain or if qemu dies whilst executing the block job.  In this
      case we don't ever clear the access we granted at the beginning.
      To fix this, maybe a bit harsh approach is used, but it works:
      after all labels were restored (that is after
      qemuSecurityRestoreAllLabel() was called), we iterate over each
      disk in the domain and remove XATTRs from the whole backing chain
      and also from any file the disk is being mirrored to.
      
      This would have been done at the time of pivot, but it isn't
      because user decided to kill the domain instead. If we don't do
      this and leave some XATTRs behind the domain might be unable to
      start.
      
      Also, secdriver can't do this because it doesn't know if there is
      any job running. It's outside of its scope - the hypervisor
      driver is responsible for calling secdriver's APIs.
      
      Moreover, this is safe to call because we don't remember labels
      for any member of a backing chain except of the top layer. But
      that one was restored in qemuSecurityRestoreAllLabel() call done
      earlier. Therefore, not only we don't remember labels (and thus
      this is basically a NOP for other images in the backing chain) it
      is also safe to call this when no blockjob was started in the
      first place, or if some parts of the backing chain are shared
      with some other domains - this is NOP, unless a block job is
      active at the time of domain destroy.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1741456#c19Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      8fa0374c
    • P
      qemu: Instantiate pflash via -machine when using blockdev · 86085c9a
      Peter Krempa 提交于
      Install the convertor function which enables the internals that will use
      -blockdev to make qemu open the firmware image and stop using -drive.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      86085c9a
  7. 21 11月, 2019 4 次提交
  8. 19 11月, 2019 2 次提交
  9. 18 11月, 2019 1 次提交
  10. 15 11月, 2019 4 次提交
  11. 13 11月, 2019 1 次提交
  12. 12 11月, 2019 1 次提交
  13. 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
  14. 21 10月, 2019 2 次提交
  15. 17 10月, 2019 2 次提交
  16. 16 10月, 2019 4 次提交