From: Jan Kiszka <jan.kis...@siemens.com> This defines the protocol ID ranges for virtio backends and frontends along with a view virtio device IDs, allowing to create such devices in cell configs.
Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/jailhouse/cell-config.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/jailhouse/cell-config.h b/include/jailhouse/cell-config.h index 7694c296..d6920b1c 100644 --- a/include/jailhouse/cell-config.h +++ b/include/jailhouse/cell-config.h @@ -181,9 +181,15 @@ struct jailhouse_irqchip { #define JAILHOUSE_PCI_TYPE_BRIDGE 0x02 #define JAILHOUSE_PCI_TYPE_IVSHMEM 0x03 -#define JAILHOUSE_SHMEM_PROTO_UNDEFINED 0x0000 -#define JAILHOUSE_SHMEM_PROTO_VETH 0x0001 -#define JAILHOUSE_SHMEM_PROTO_CUSTOM 0x4000 /* 0x4000..0x7fff */ +#define JAILHOUSE_SHMEM_PROTO_UNDEFINED 0x0000 +#define JAILHOUSE_SHMEM_PROTO_VETH 0x0001 +#define JAILHOUSE_SHMEM_PROTO_CUSTOM 0x4000 /* 0x4000..0x7fff */ +#define JAILHOUSE_SHMEM_PROTO_VIRTIO_FRONT 0x8000 /* 0x8000..0xbfff */ +#define JAILHOUSE_SHMEM_PROTO_VIRTIO_BACK 0xc000 /* 0xc000..0xffff */ + +#define VIRTIO_DEV_NET 1 +#define VIRTIO_DEV_BLOCK 2 +#define VIRTIO_DEV_CONSOLE 3 struct jailhouse_pci_device { __u8 type; -- 2.16.4 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/045c612237ecd050fd853137adda5e395be79e89.1578320435.git.jan.kiszka%40siemens.com.