Skip to content

libxl: create standalone vkb device

Oleksandr Grytsov xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libxl: move vkb device to libxl_vkb.ctools/libxl/Makefile tools/libxl/libxl_console.c tools/libxl/libxl_vkb.c+73 -531 reply
2/6libxl: fix vkb XS entry and typetools/libxl/libxl_vkb.c+2 -24 replies
3/6libxl: add backend type to vkbtools/libxl/libxl_create.c tools/libxl/libxl_dm.c tools/libxl/libxl_types.idl +2 more+26 -12 replies
4/6libxl: vkb add list and info functionstools/libxl/libxl.h tools/libxl/libxl_types.idl tools/libxl/libxl_utils.h +1 more+127 -30 replies
5/6xl: add vkb config parser and CLItools/xl/Makefile tools/xl/xl.h tools/xl/xl_cmdtable.c +3 more+235 -50 replies
6/6docs: add vkb device to xl.cfg and xldocs/man/xl.cfg.pod.5.in docs/man/xl.pod.1.in+46 -00 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchWei Liu
1/6A-b
2/6A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] libxl: create standalone vkb device

From: Oleksandr Grytsov <[email protected]>

Currently vkb device is the part of FB and console. In embedded application we use vkb protocol to communicate with user space backend. For this purpose we need to have possibility to enable vkb device without QEMU, FB etc.

This particular issue was already discussed int the mail thread [1]. There were few possible solutions. We've implemented one suggested by Stefano: add "type" field for vkb. Each backend (QEMU or user space) shall read this field and serve frontend only for own type. I will provide the patch for QEMU backend, once this solution is submitted to libxl.

This patchset consist of following changes:

* vkb related code is moved to libxl_vkb.c - as it now used not only by console and FB;
* add backend type support in order to support QEMU and user space backends;
* add getting vkb list and getting device by id in order to implement CLI commands to attach, detach and list vkb devices;
* add new vkb entry in xl.cfg to handle separate vkb configuration;
* add CLI vkb-attach, vkb-detach and vkb-list commands;
* update documentation accordingly.

[1] https://marc.info/?l=qemu-devel&m=149219237030212&w=2

Oleksandr Grytsov (6):
libxl: move vkb device to libxl_vkb.c
libxl: fix vkb XS entry and type
libxl: add backend type to vkb
libxl: vkb add list and info functions
xl: add vkb config parser and CLI
docs: add vkb device to xl.cfg and xl

 docs/man/xl.cfg.pod.5.in    |  24 ++++++
 docs/man/xl.pod.1.in        |  22 ++++++
 tools/libxl/Makefile        |   1 +
 tools/libxl/libxl.h         |  10 +++
 tools/libxl/libxl_console.c |  53 -------------
 tools/libxl/libxl_create.c  |   4 +
 tools/libxl/libxl_dm.c      |   2 +
 tools/libxl/libxl_types.idl |  18 +++++s
 tools/libxl/libxl_utils.h   |   3 +
 tools/libxl/libxl_vkb.c     | 180 ++++++++++++++++++++++++++++++++++++++++++++
 tools/xl/Makefile           |   2 +-
 tools/xl/xl.h               |   3 +
 tools/xl/xl_cmdtable.c      |  15 ++++
 tools/xl/xl_parse.c         |  77 ++++++++++++++++++-
 tools/xl/xl_parse.h         |   2 +-
 tools/xl/xl_vkb.c           | 141 ++++++++++++++++++++++++++++++++++
 16 files changed, 501 insertions(+), 56 deletions(-)
 create mode 100644 tools/libxl/libxl_vkb.c
 create mode 100644 tools/xl/xl_vkb.c
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel