package mirage-block-xen

  1. Overview
  2. Docs
MirageOS block driver for Xen that implements the blkfront/back protocol

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-block-xen-v1.6.2.tbz
sha256=a56bb75672eb28b947386222849abfb353ad6b4f74030ddd4a90cd033ce696a2
sha512=9124ff42b902681a3ab077fb64866b86f4a180d05fd89ada1a1ad4145ce3e9a35e3a3d88ce4ffb15457fa8aee04a8b892c88d0be4ebd7619a29552acf281e811

Description

This library allows a Mirage OCaml application to

  1. read and write blocks from any Xen "backend" (server)
  2. service block requests from any Xen "frontend" (client)

This library can be used in both kernelspace (on Xen) or in userspace (using libraries that come with Xen).

This library depends on the shared-memory-ring library which enables high-throughput, low-latency data transfers over shared memory on both x86 and ARM architectures, using the standard Xen RPC and event channel semantics.

Tags

org:mirage org:xapi-project

Published: 27 Jun 2019

README

mirage-xen-block

This library allows a Mirage OCaml application to

  1. read and write blocks from any Xen "backend" (server)

  2. service block requests from any Xen "frontend" (client)

This library can be used in both kernelspace (on Xen) or in userspace (using libraries that come with Xen).

This library depends on the shared-memory-ring library which enables high-throughput, low-latency data transfers over shared memory on both x86 and ARM architectures, using the standard Xen RPC and event channel semantics.

Example: in Mirage unikernels on xen

The block_perf example shows how a Mirage application can use this library to access a virtual disk with very little overhead.

For performance results and discussion, see Unikernels: Library Operating Systems for the Cloud

Example: prototyping new storage for Virtual Machines

The xen-disk application runs in userspace and attaches a virtual disk to an existing xen VM. The disk read and write requests are served in userspace through one of a set of 'backends' which are selectable on the commandline.

Dependencies (14)

  1. rresult
  2. mirage-xen >= "4.0.0" & < "5.0.0"
  3. io-page-xen >= "2.0.0"
  4. ipaddr
  5. mirage-block-lwt >= "1.0.0"
  6. shared-memory-ring-lwt
  7. ppx_cstruct build & >= "3.6.0"
  8. cstruct >= "1.9.0"
  9. lwt >= "2.4.3"
  10. stringext
  11. logs
  12. cmdliner
  13. dune
  14. ocaml >= "4.02.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.