Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5232376 authored by Carl van Schaik's avatar Carl van Schaik Committed by Murali Nalajala
Browse files

vservices: block: add the block protocol and drivers



Adds the virtual services block protocol and block io drivers.
This protocol and drivers support exporting virtual block devices
from one VM to another, which are backed by another block device.

Change-Id: I47f86307c6201cb66d81bd453bb8c6c7ce99480f
Signed-off-by: default avatarCarl van Schaik <carl@cog.systems>
Git-commit: 9e55989babab087627e1ae42b2ed8e656c4b3993
Git-repo: https://github.com/CogSystems/linux-msm/commits/msm-4.9-hyp


Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
[pheragu@codeaurora: Changing bio APIs]
Signed-off-by: default avatarPrakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
parent e96bfc13
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -482,3 +482,23 @@ config BLK_DEV_RSXX
	  module will be called rsxx.

endif # BLK_DEV

config VSERVICES_BLOCK_SERVER
	tristate "Virtual Services block server"
	depends on BLOCK && VSERVICES_SUPPORT && VSERVICES_SERVER
	default y
	select VSERVICES_PROTOCOL_BLOCK_SERVER
	help
	  Select this option if you want support for server side Virtual
	  Services block. This allows any Linux block device to be
	  virtualized and exported as a virtual service.

config VSERVICES_BLOCK_CLIENT
	tristate "Virtual Services Block client device"
	depends on BLOCK && VSERVICES_SUPPORT && VSERVICES_CLIENT
	default y
	select VSERVICES_PROTOCOL_BLOCK_CLIENT
	help
	  Select this option if you want support for client side Virtual
	  Services block devices. The virtual block devices are typically
	  named /dev/vblock0, /dev/vblock1, etc.
+5 −0
Original line number Diff line number Diff line
@@ -44,3 +44,8 @@ null_blk-$(CONFIG_BLK_DEV_ZONED) += null_blk_zoned.o

skd-y		:= skd_main.o
swim_mod-y	:= swim.o swim_asm.o

obj-$(CONFIG_VSERVICES_BLOCK_SERVER)     += vs_block_server.o
CFLAGS_vs_block_server.o += -Werror
obj-$(CONFIG_VSERVICES_BLOCK_CLIENT)     += vs_block_client.o
CFLAGS_vs_block_client.o += -Werror
+956 −0

File added.

Preview size limit exceeded, changes collapsed.

+1180 −0

File added.

Preview size limit exceeded, changes collapsed.

+17 −0
Original line number Diff line number Diff line
@@ -5,6 +5,23 @@
if VSERVICES_SERVER || VSERVICES_CLIENT

menu "Protocol drivers"
config VSERVICES_PROTOCOL_BLOCK
	bool

config VSERVICES_PROTOCOL_BLOCK_SERVER
	tristate "Block server protocol"
	depends on VSERVICES_SUPPORT && VSERVICES_SERVER
	select VSERVICES_PROTOCOL_BLOCK
	help
	  This option adds support for Virtual Services block protocol server.

config VSERVICES_PROTOCOL_BLOCK_CLIENT
	tristate "Block client protocol"
	depends on VSERVICES_SUPPORT && VSERVICES_CLIENT
	select VSERVICES_PROTOCOL_BLOCK
	help
	  This option adds support for Virtual Services block protocol client.

config VSERVICES_PROTOCOL_SERIAL
	bool

Loading