1. 11 5月, 2017 1 次提交
    • F
      block: Reuse bs as backing hd for drive-backup sync=none · fc0932fd
      Fam Zheng 提交于
      Opening the backing image for the second time is bad, especially here
      when it is also in use as the active image as the source. The
      drive-backup job itself doesn't read from target->backing for COW,
      instead it gets data from the write notifier, so it's not a big problem.
      However, exporting the target to NBD etc. won't work, because of the
      likely stale metadata cache.
      
      Use BDRV_O_NO_BACKING in this case and manually set up the backing
      BdrvChild.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      fc0932fd
  2. 09 5月, 2017 1 次提交
  3. 28 4月, 2017 1 次提交
  4. 24 4月, 2017 2 次提交
  5. 07 4月, 2017 1 次提交
  6. 28 3月, 2017 1 次提交
  7. 17 3月, 2017 1 次提交
  8. 07 3月, 2017 2 次提交
  9. 01 3月, 2017 6 次提交
  10. 28 2月, 2017 1 次提交
  11. 24 2月, 2017 1 次提交
  12. 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
  13. 01 2月, 2017 1 次提交
  14. 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
  15. 01 11月, 2016 4 次提交
  16. 31 10月, 2016 3 次提交
  17. 25 10月, 2016 2 次提交
  18. 29 9月, 2016 6 次提交
  19. 23 9月, 2016 3 次提交