1. 16 2月, 2015 2 次提交
    • M
      block: Add blk_new_open() · ca49a4fd
      Max Reitz 提交于
      blk_new_with_bs() creates a BlockBackend with an empty BlockDriverState
      attached to it. Empty BDSs are not nice, therefore add an alternative
      function which combines blk_new_with_bs() with bdrv_open().
      
      Note: In contrast to bdrv_open() which takes a BlockDriver parameter,
      blk_new_open() does not take such a parameter. This is because
      bdrv_open() opens a BlockDriverState, therefore it is natural to be able
      to set the BlockDriver for that BDS. The fact that bdrv_open() can open
      more than a single BDS is merely some form of a byproduct.
      
      blk_new_open() on the other hand is intended to be used to create a
      whole tree of BlockDriverStates. Therefore, setting a single BlockDriver
      does not make much sense. Instead, the drivers to be used for each of
      the nodes must be configured through the "options" QDict; including the
      driver of the root BDS.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 1423162705-32065-3-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      ca49a4fd
    • M
      block: Lift some BDS functions to the BlockBackend · 1ef01253
      Max Reitz 提交于
      Create the blk_* counterparts for the following bdrv_* functions (which
      make sense to call on the BlockBackend level):
      - bdrv_co_write_zeroes()
      - bdrv_write_compressed()
      - bdrv_truncate()
      - bdrv_nb_sectors()
      - bdrv_discard()
      - bdrv_load_vmstate()
      - bdrv_save_vmstate()
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1423162705-32065-2-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      1ef01253
  2. 13 2月, 2015 1 次提交
  3. 07 2月, 2015 1 次提交
  4. 12 1月, 2015 1 次提交
  5. 09 1月, 2015 2 次提交
  6. 07 1月, 2015 2 次提交
  7. 22 12月, 2014 4 次提交
  8. 15 12月, 2014 1 次提交
    • E
      KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks · f41389ae
      Eric Auger 提交于
      Compute kvm_irqfds_allowed by checking the KVM_CAP_IRQFD extension.
      Remove direct settings in architecture specific files.
      
      Add a new kvm_resamplefds_allowed variable, initialized by
      checking the KVM_CAP_IRQFD_RESAMPLE extension. Add a corresponding
      kvm_resamplefds_enabled() function.
      
      A special notice for s390 where KVM_CAP_IRQFD was not immediatly
      advirtised when irqfd capability was introduced in the kernel.
      KVM_CAP_IRQ_ROUTING was advertised instead.
      
      This was fixed in "KVM: s390: announce irqfd capability",
      ebc3226202d5956a5963185222982d435378b899 whereas irqfd support
      was brought in 84223598778ba08041f4297fda485df83414d57e,
      "KVM: s390: irq routing for adapter interrupts".  Both commits
      first appear in 3.15 so there should not be any kernel
      version impacted by this QEMU modification.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f41389ae
  9. 10 12月, 2014 3 次提交
  10. 23 11月, 2014 1 次提交
  11. 11 11月, 2014 1 次提交
  12. 02 11月, 2014 1 次提交
  13. 20 10月, 2014 12 次提交
  14. 15 10月, 2014 4 次提交
  15. 09 10月, 2014 1 次提交
  16. 04 10月, 2014 3 次提交