1. 01 3月, 2017 1 次提交
    • K
      block: Let callers request permissions when attaching a child node · d5e6f437
      Kevin Wolf 提交于
      When attaching a node as a child to a new parent, the required and
      shared permissions for this parent are checked against all other parents
      of the node now, and an error is returned if there is a conflict.
      
      This allows error returns to a function that previously always
      succeeded, and the same is true for quite a few callers and their
      callers. Converting all of them within the same patch would be too much,
      so for now everyone tells that they don't need any permissions and allow
      everyone else to do anything. This way we can use &error_abort initially
      and convert caller by caller to pass actual permission requirements and
      implement error handling.
      
      All these places are marked with FIXME comments and it will be the job
      of the next patches to clean them up again.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Acked-by: NFam Zheng <famz@redhat.com>
      d5e6f437
  2. 24 2月, 2017 1 次提交
  3. 21 2月, 2017 3 次提交
  4. 15 11月, 2016 1 次提交
  5. 28 10月, 2016 5 次提交
  6. 07 10月, 2016 4 次提交
  7. 29 9月, 2016 2 次提交
  8. 23 9月, 2016 1 次提交
  9. 06 9月, 2016 4 次提交
  10. 20 7月, 2016 4 次提交
  11. 13 7月, 2016 2 次提交
    • K
      block/qdev: Allow configuring rerror/werror with qdev properties · 8c398252
      Kevin Wolf 提交于
      The rerror/werror policies are implemented in the devices, so that's
      where they should be configured. In comparison to the old options in
      -drive, the qdev properties are only added to those devices that
      actually support them.
      
      If the option isn't given (or "auto" is specified), the setting of the
      BlockBackend is used for compatibility with the old options. For block
      jobs, "auto" is the same as "enospc".
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      8c398252
    • P
      coroutine: move entry argument to qemu_coroutine_create · 0b8b8753
      Paolo Bonzini 提交于
      In practice the entry argument is always known at creation time, and
      it is confusing that sometimes qemu_coroutine_enter is used with a
      non-NULL argument to re-enter a coroutine (this happens in
      block/sheepdog.c and tests/test-coroutine.c).  So pass the opaque value
      at creation time, for consistency with e.g. aio_bh_new.
      
      Mostly done with the following semantic patch:
      
      @ entry1 @
      expression entry, arg, co;
      @@
      - co = qemu_coroutine_create(entry);
      + co = qemu_coroutine_create(entry, arg);
        ...
      - qemu_coroutine_enter(co, arg);
      + qemu_coroutine_enter(co);
      
      @ entry2 @
      expression entry, arg;
      identifier co;
      @@
      - Coroutine *co = qemu_coroutine_create(entry);
      + Coroutine *co = qemu_coroutine_create(entry, arg);
        ...
      - qemu_coroutine_enter(co, arg);
      + qemu_coroutine_enter(co);
      
      @ entry3 @
      expression entry, arg;
      @@
      - qemu_coroutine_enter(qemu_coroutine_create(entry), arg);
      + qemu_coroutine_enter(qemu_coroutine_create(entry, arg));
      
      @ reentry @
      expression co;
      @@
      - qemu_coroutine_enter(co, NULL);
      + qemu_coroutine_enter(co);
      
      except for the aforementioned few places where the semantic patch
      stumbled (as expected) and for test_co_queue, which would otherwise
      produce an uninitialized variable warning.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      0b8b8753
  12. 05 7月, 2016 4 次提交
  13. 26 5月, 2016 8 次提交