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

[Minios-devel] [UNIKRAFT PATCH v2 03/12] plat/xen: Add vif device type


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 1 Apr 2019 16:42:43 +0300
  • Cc: felipe.huici@xxxxxxxxx, Florian.Schmidt@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, yuri.volchkov@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Mon, 01 Apr 2019 13:43:03 +0000
  • Ironport-phdr: 9a23:fLZPZxUkh3pggQYnkpCqZW2WYFjV8LGtZVwlr6E/grcLSJyIuqrYZRSAvKdThVPEFb/W9+hDw7KP9fy5ASpRvd3f7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrsQndrM0bjIRtJqswxRbCv2dFdflRyW50P1yYggzy5t23/J5t8iRQv+wu+stdWqjkfKo2UKJVAi0+P286+MPkux/DTRCS5nQHSWUZjgBIAwne4x7kWJr6rzb3ufB82CmeOs32UKw0VDG/5KplVBPklCEKPCM//WrKiMJ/kbhbrQqhqRJh3oDaboKbOv18caPTZt4WWXZNU9xNWyFbHo+wc40CBPcBM+ZCqIn9okMDoAW5BQm3GOPvyzlIjWLw060ny+QhDBzN0Qs8ENIJq3TUsNT1NKEIXeCx0anI1SjDYuhK1jfm8oTIag0hruqWUbJqdsrc0E8iHB7GgFWIsYHpIjyY2vkXv2WY7+dsT/yjh3Alpg1rrDWj3togh4bUio4PyV3J9T91zJg7KNC2UkJ3fNGpHIVWuiqHLYV5WNkiTHttuCsiz70GvoO0czYSxZQ8wh7fd+SHc4+V4hL/TOqRISl3hHZieL+nmRay9FKvyuz4VsWuzFlKtTBJksHRtn8WzRDT8M+HRuN8/kenxzmPyxje5vxLLEwpj6bWKJ4szqQumpYNs0nPBCH7lF3zjKCMd0Uk/uao6/7gYrXjvpKTK4h0ihriMqQvnMyzG+A4MhUWX2iG4umzyKbj8VfhQLVXlfI6iLPZsJfCKcQBuqG5GxNV0pok6xunCjem0dIYnXgALFJeYR6IkpbmO0/QL/D8Fvq/h1WskCx3x/DdJLHgDYvCLn7ZnLfmZ7Z95FZWyBAvwtBH+5JUFrYBLerzVE/1s9zYFB45PBayw+r9FdtyyoMeWWeOAqCELKPfqlmI6fwzLOmIfoAaoyzxJOY45/T2l382hUcdfbW13ZsQcH24EOppI0GYYXr0nNgNC2cKvhc/TOP2iV2PSjhTaGiuUKI4/D40E5iqApneRoq1mryOwD+7HoFKZmBBEl2MCnfoeJ+eW/gWbiKeONRhnSYCVbi9S48uzxeuuxX/y7d8KOrb5DEXtZb529du/eHciwwy/yRuD8uBy2GNU310nmQQSj8t3aB/pEt9ylGZ3ah7nvxXC9pT5vJXXQcgLpPcyfJ1BMz2Wg3bZdiFUkipQsi+CzErUt0x28MOY1p6G9i6jhHDwjCqA74Pm7yVA5w09r7T33jyJ8Z61XbLz68hgEc6TctLL2KpnbRz+BbOB92Br0LMkqesdKMHmSLA6mqH5W6Pp11DFh59V+PCR39MSFHRqIHS4VjeTrnmLak/L0MVwsmZNqpMLNn0lUhuT+ylIMnUJXi2zTTjTS2Uz6+BOdK5M14W2z/QXRAJ
  • Ironport-sdr: fjD7FLEyB5TZT+m42kC0kLw7Zs4CHk3r73qTSATVj8ZzJi4EGmxglEXUBiNIlwoNvy2kV/KQWQ YyggFX3zyBFA==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

vif device type is used for virtual network interfaces.

Signed-off-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 3d3b5408..a9cf765c 100644
--- a/plat/xen/include/xenbus/xenbus.h
+++ b/plat/xen/include/xenbus/xenbus.h
@@ -48,6 +48,7 @@
  */
 typedef enum xenbus_dev_type {
        xenbus_dev_none = 0,
+       xenbus_dev_vif,
 } xenbus_dev_type_t;
 
 struct xenbus_device;
diff --git a/plat/xen/xenbus/client.c b/plat/xen/xenbus/client.c
index bd060638..0db2f977 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(vif),
 };
 
 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®.