1. 28 9月, 2012 4 次提交
  2. 20 7月, 2012 1 次提交
  3. 09 7月, 2012 1 次提交
    • M
      virtio-balloon: fix add/get API use · 9c378abc
      Michael S. Tsirkin 提交于
      Since ee7cd898 'virtio: expose added
      descriptors immediately.', in virtio balloon virtqueue_get_buf might
      now run concurrently with virtqueue_kick.  I audited both and this
      seems safe in practice but this is not guaranteed by the API.
      Additionally, a spurious interrupt might in theory make
      virtqueue_get_buf run in parallel with virtqueue_add_buf, which is
      racy.
      
      While we might try to protect against spurious callbacks it's
      easier to fix the driver: balloon seems to be the only one
      (mis)using the API like this, so let's just fix balloon.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (removed unused var)
      9c378abc
  4. 22 5月, 2012 4 次提交
  5. 17 5月, 2012 1 次提交
  6. 15 4月, 2012 2 次提交
  7. 31 3月, 2012 5 次提交
  8. 29 3月, 2012 1 次提交
  9. 01 3月, 2012 1 次提交
    • A
      virtio: balloon: leak / fill balloon across S4 · 4eb05d56
      Amit Shah 提交于
      commit e562966d added support for S4 to
      the balloon driver.  The freeze function did nothing to free the pages,
      since reclaiming the pages from the host to immediately give them back
      (if S4 was successful) seemed wasteful.  Also, if S4 wasn't successful,
      the guest would have to re-fill the balloon.  On restore, the pages were
      supposed to be marked freed and the free page counters were incremented
      to reflect the balloon was totally deflated.
      
      However, this wasn't done right.  The pages that were earlier taken away
      from the guest during a balloon inflation operation were just shown as
      used pages after a successful restore from S4.  Just a fancy way of
      leaking lots of memory.
      
      Instead of trying that, just leak the balloon on freeze and fill it on
      restore/thaw paths.  This works properly now.  The optimisation to not
      leak can be added later on after a bit of refactoring of the code.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      4eb05d56
  10. 28 1月, 2012 2 次提交
  11. 12 1月, 2012 12 次提交
  12. 24 11月, 2011 3 次提交
  13. 17 11月, 2011 1 次提交
  14. 14 11月, 2011 1 次提交
  15. 02 11月, 2011 1 次提交
    • P
      virtio: Add platform bus driver for memory mapped virtio device · edfd52e6
      Pawel Moll 提交于
      This patch, based on virtio PCI driver, adds support for memory
      mapped (platform) virtio device. This should allow environments
      like qemu to use virtio-based block & network devices even on
      platforms without PCI support.
      
      One can define and register a platform device which resources
      will describe memory mapped control registers and "mailbox"
      interrupt. Such device can be also instantiated using the Device
      Tree node with compatible property equal "virtio,mmio".
      
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Cc: Michael S.Tsirkin <mst@redhat.com>
      Signed-off-by: NPawel Moll <pawel.moll@arm.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      edfd52e6