1. 20 6月, 2017 1 次提交
  2. 16 6月, 2017 3 次提交
  3. 09 6月, 2017 1 次提交
  4. 25 5月, 2017 1 次提交
    • P
      blockjob: move iostatus reset inside block_job_user_resume · 2caf63a9
      Paolo Bonzini 提交于
      Outside blockjob.c, the block_job_iostatus_reset function is used once
      in the monitor and once in BlockBackend.  When we introduce the block
      job mutex, block_job_iostatus_reset's client is going to be the block
      layer (for which blockjob.c will take the block job mutex) rather than
      the monitor (which will take the block job mutex by itself).
      
      The monitor's call to block_job_iostatus_reset from the monitor comes
      just before the sole call to block_job_user_resume, so reset the
      iostatus directly from block_job_iostatus_reset.  This will avoid
      the need to introduce separate block_job_iostatus_reset and
      block_job_iostatus_reset_locked APIs.
      
      After making this change, move the function together with the others
      that were moved in the previous patch.
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Message-id: 20170508141310.8674-7-pbonzini@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      2caf63a9
  5. 11 5月, 2017 2 次提交
  6. 09 5月, 2017 1 次提交
  7. 28 4月, 2017 1 次提交
  8. 24 4月, 2017 2 次提交
  9. 07 4月, 2017 1 次提交
  10. 28 3月, 2017 1 次提交
  11. 17 3月, 2017 1 次提交
  12. 07 3月, 2017 2 次提交
  13. 01 3月, 2017 6 次提交
  14. 28 2月, 2017 1 次提交
  15. 24 2月, 2017 1 次提交
  16. 21 2月, 2017 2 次提交
    • M
      blockdev: Make orphaned -drive fatal · 720b8dc0
      Markus Armbruster 提交于
      Block backends defined with "-drive if=T" with T other than "none" are
      meant to be picked up by machine initialization code: a suitable
      frontend gets created and wired up automatically.
      
      If machine initialization code doesn't comply, the block backend
      remains unused.  This triggers a warning since commit a66c9dc7, v2.2.0.
      Drives created by default are exempted; use -nodefaults to get rid of
      them.
      
      Turn this warning into an error.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1487153147-11530-8-git-send-email-armbru@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      720b8dc0
    • M
      blockdev: Improve message for orphaned -drive · 664cc623
      Markus Armbruster 提交于
      We warn when a -drive isn't supported by the machine type (commit
      a66c9dc7):
      
          $ qemu-system-x86_64 -S -display none -drive if=mtd
          Warning: Orphaned drive without device: id=mtd0,file=,if=mtd,bus=0,unit=0
      
      Improve this to point to the offending bit of configuration:
      
          qemu-system-x86_64: -drive if=mtd: warning: machine type does not support if=mtd,bus=0,unit=0
      
      Especially nice when it's hidden behind -readconfig foo.cfg:
      
          qemu-system-x86_64:foo.cfg:140: warning: machine type does not support if=mtd,bus=0,unit=0
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1487153147-11530-7-git-send-email-armbru@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      664cc623
  17. 01 2月, 2017 1 次提交
  18. 15 11月, 2016 1 次提交
    • J
      blockjob: refactor backup_start as backup_job_create · 111049a4
      John Snow 提交于
      Refactor backup_start as backup_job_create, which only creates the job,
      but does not automatically start it. The old interface, 'backup_start',
      is not kept in favor of limiting the number of nearly-identical interfaces
      that would have to be edited to keep up with QAPI changes in the future.
      
      Callers that wish to synchronously start the backup_block_job can
      instead just call block_job_start immediately after calling
      backup_job_create.
      
      Transactions are updated to use the new interface, calling block_job_start
      only during the .commit phase, which helps prevent race conditions where
      jobs may finish before we even finish building the transaction. This may
      happen, for instance, during empty block backup jobs.
      Reported-by: NVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1478587839-9834-6-git-send-email-jsnow@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      111049a4
  19. 01 11月, 2016 4 次提交
  20. 31 10月, 2016 3 次提交
  21. 25 10月, 2016 2 次提交
  22. 29 9月, 2016 2 次提交