virtio-blk.h 909 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Dedicated thread for virtio-blk I/O processing
  3. *
  4. * Copyright 2012 IBM, Corp.
  5. * Copyright 2012 Red Hat, Inc. and/or its affiliates
  6. *
  7. * Authors:
  8. * Stefan Hajnoczi <stefanha@redhat.com>
  9. *
  10. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  11. * See the COPYING file in the top-level directory.
  12. *
  13. */
  14. #ifndef HW_DATAPLANE_VIRTIO_BLK_H
  15. #define HW_DATAPLANE_VIRTIO_BLK_H
  16. #include "hw/virtio.h"
  17. typedef struct VirtIOBlockDataPlane VirtIOBlockDataPlane;
  18. bool virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *blk,
  19. VirtIOBlockDataPlane **dataplane);
  20. void virtio_blk_data_plane_destroy(VirtIOBlockDataPlane *s);
  21. void virtio_blk_data_plane_start(VirtIOBlockDataPlane *s);
  22. void virtio_blk_data_plane_stop(VirtIOBlockDataPlane *s);
  23. void virtio_blk_data_plane_drain(VirtIOBlockDataPlane *s);
  24. #endif /* HW_DATAPLANE_VIRTIO_BLK_H */