Skip to content

Commit

Permalink
Merge pull request #82 from avsm/TheLortex-api-change
Browse files Browse the repository at this point in the history
prepare release 1.6.2
  • Loading branch information
avsm authored Jun 17, 2019
2 parents 02e0eb8 + 712363b commit 112d5a3
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 32 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.6.2
* generate exact Merlin files by rearranging build (@avsm)

## 1.6.1 (2019-04-02):
* use new grant API from mirage-xen (@yomimono, @talex5)
* several code cleanups and removals (@yomimono, @emillon)
Expand Down
4 changes: 3 additions & 1 deletion lib/blkback.ml → lib/back/blkback.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ end

open Lwt
open Blkproto

module OS = Os_xen
module Gntref = OS.Xen.Gntref

type ops = {
Expand Down Expand Up @@ -305,7 +307,7 @@ let init xe domid ring_info ops =
on_cancel th (fun () ->
let counter = ref 0 in
Ring.Rpc.Back.ack_requests ring (fun _ -> incr counter);
if !counter <> 0 then Log.err (fun f-> f "FATAL: before unmapping, there were %d outstanding requests on the ring. Events lost?" !(counter));
if !counter <> 0 then Log.err (fun f-> f "FATAL: before unmapping, there were %d outstanding requests on the ring. Events lOSt?" !(counter));
let () = OS.Xen.Import.Local_mapping.unmap_exn mapping in ()
);
th, stats
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions lib/back/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(library
(name mirage_block_xen_back)
(public_name mirage-block-xen.back)
(modules Blkback Block_request)
(flags :standard -w -3)
(libraries logs lwt cstruct io-page shared-memory-ring
shared-memory-ring-lwt mirage-block-xen xen-evtchn xenstore
xenstore.client mirage-block-lwt rresult mirage-xen)
(wrapped false))
8 changes: 5 additions & 3 deletions lib/blkproto.ml → lib/core/blkproto.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

module OS = Os_xen

let ( >>= ) x f = match x with
| Error _ as y -> y
| Ok x -> f x
Expand Down Expand Up @@ -277,9 +279,9 @@ module Req = struct
val get_hdr_indirect_op: Cstruct.t -> int
val set_hdr_indirect_op: Cstruct.t -> int -> unit
end
module type PROTOCOL_IMPLEMENTATION = sig
val total_size : int
val segments_per_indirect_page : int
module type PROTOCOL_IMPLEMENTATION = sig
val total_size : int
val segments_per_indirect_page : int
val write_segments : seg array -> Cstruct.t -> unit
val write_request : t -> Cstruct.t -> int64
val read_request : Cstruct.t -> t
Expand Down
2 changes: 1 addition & 1 deletion lib/blkproto.mli → lib/core/blkproto.mli
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ end

module Req : sig
type seg = {
gref : OS.Xen.Gntref.t;
gref : Os_xen.Xen.Gntref.t;
first_sector : int;
last_sector : int;
}
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions lib/core/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(library
(name mirage_block_xen)
(public_name mirage-block-xen)
(modules Blkproto Device_number)
(libraries cstruct io-page mirage-xen.internals)
(wrapped false)
(preprocess
(pps ppx_cstruct)))
26 changes: 0 additions & 26 deletions lib/dune

This file was deleted.

4 changes: 3 additions & 1 deletion lib/blkfront.ml → lib/front/blkfront.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ open Lwt
open Printf
open Mirage_block
open Blkproto
open OS
open Os_xen

module OS = Os_xen

let src = Logs.Src.create "blkfront" ~doc:"Mirage Xen blkfront"

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions lib/front/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(library
(name mirage_block_xen_front)
(public_name mirage-block-xen.front)
(modules Blkfront Block)
(libraries logs stringext lwt cstruct mirage-block-lwt io-page
io-page-xen shared-memory-ring shared-memory-ring-lwt mirage-block-xen
xen-evtchn mirage-xen)
(wrapped false))
5 changes: 5 additions & 0 deletions mirage-block-xen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ 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.
"""

pin-depends: [
["mirage-xen.dev" "git+https://github.com/mirage/mirage-xen"]
]

0 comments on commit 112d5a3

Please sign in to comment.