Skip to content

Commit baa7113

Browse files
committed
adding docs/commands.md
1 parent 816ee19 commit baa7113

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/commands.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
As kernstore will primarily serve block devices for VMs, which access their storage via virtio-blk, we only need to implement functionality serving the following virtio-blk commands:
2+
3+
4+
/* Read from volume */
5+
#define VIRTIO_BLK_T_IN 0
6+
7+
/* Write to volume */
8+
#define VIRTIO_BLK_T_OUT 1
9+
10+
/* Cache flush command */
11+
#define VIRTIO_BLK_T_FLUSH 4
12+
13+
/* Get device ID command */
14+
#define VIRTIO_BLK_T_GET_ID 8
15+
16+
/* Discard command */
17+
#define VIRTIO_BLK_T_DISCARD 11
18+
19+
/* Write zeroes command */
20+
#define VIRTIO_BLK_T_WRITE_ZEROES 13

0 commit comments

Comments
 (0)