[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 01/16] plat/xen: Add block device type



Add virtual block device type entry in the xenbus device type enum.

Signed-off-by: Roxana Nicolescu <nicolescu.roxana1996@xxxxxxxxx>
Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 plat/xen/include/xenbus/xenbus.h | 1 +
 plat/xen/xenbus/client.c         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/plat/xen/include/xenbus/xenbus.h b/plat/xen/include/xenbus/xenbus.h
index a9d6436f..e4dab478 100644
--- a/plat/xen/include/xenbus/xenbus.h
+++ b/plat/xen/include/xenbus/xenbus.h
@@ -49,6 +49,7 @@
  */
 typedef enum xenbus_dev_type {
        xenbus_dev_none = 0,
+       xenbus_dev_vbd,
 } xenbus_dev_type_t;
 
 struct xenbus_device;
diff --git a/plat/xen/xenbus/client.c b/plat/xen/xenbus/client.c
index bd060638..fae35e2a 100644
--- a/plat/xen/xenbus/client.c
+++ b/plat/xen/xenbus/client.c
@@ -74,6 +74,7 @@ const char *xenbus_state_to_str(XenbusState state)
 
 static const char *const xb_devtype_tbl[] = {
        XENBUS_DEVTYPE_ENTRY(none),
+       XENBUS_DEVTYPE_ENTRY(vbd),
 };
 
 const char *xenbus_devtype_to_str(enum xenbus_dev_type devtype)
-- 
2.11.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.