Hi all,

I'd like to replace jailhouse-cell-list. It's a rudimentary function and
requires python. So I reimplemented cell-list natively in C.

This series also changes the sysfs structure as Jan proposed.

Though in total we have more lines of C code, the hypervisor shrinked a bit.

I tested the code on a Jetson TK1 and Qemu VM. For me, it works so far.
Applies against next.

changes since v4:
  - maintain Documentation/hypervisor-interfaces.txt
  - rename read_sysfs_entry to read_sysfs_cell_string
    and avoid repeating snprintf()'s

changes since v3:
  - let the driver choose the cell ID
  - use a filter function for scandir()
  - remove jailhouse-cell-list from tools/Makefile
  - adapt tools/jailhouse-completion.bash
  - minor cosmetic changes

changes since v2:
  - do not use struct jailhouse_cell_id inside struct cell
  - adapt read_file() as suggested by Jan
  - amend commit messages
  - use scandir() and alphasort for sorted output

changes since v1:
  - change sysfs structure (swap id and name)
  - provide human readable sysfs nodes
  - improve changes on read_file()

Ralf Ramsauer (9):
  driver: cell: add cell name to struct cell
  driver: sysfs: do not pass cell name to jh_sysfs_cell_create
  hypervisor, driver: let the driver choose cell ids
  driver: sysfs: swap sysfs entries name and id
  driver: sysfs: consolidate cpumask printing
  driver: sysfs: factor out printing of failed_cpus
  driver: sysfs: add new sysfs nodes cpus_{assigned,failed}_list
  tools: jailhouse: make read_file() compatible with sysfs files
  tools: jailhouse: reimplement jailhouse-cell-list in C

 Documentation/hypervisor-interfaces.txt    |   4 +-
 Documentation/sysfs-entries.txt            |   4 +-
 driver/cell.c                              |  36 +++++---
 driver/cell.h                              |   1 +
 driver/sysfs.c                             | 112 ++++++++++++++++---------
 driver/sysfs.h                             |   2 +-
 hypervisor/arch/arm/mmu_cell.c             |   4 +-
 hypervisor/arch/x86/amd_iommu.c            |   8 +-
 hypervisor/arch/x86/vtd.c                  |   8 +-
 hypervisor/control.c                       |  26 ++----
 hypervisor/include/jailhouse/cell-config.h |   1 +
 hypervisor/include/jailhouse/cell.h        |   2 -
 hypervisor/setup.c                         |   1 -
 tools/Makefile                             |   1 -
 tools/jailhouse-cell-list                  |  71 ----------------
 tools/jailhouse-completion.bash            |  14 ++--
 tools/jailhouse.c                          | 127 ++++++++++++++++++++++++++++-
 17 files changed, 249 insertions(+), 173 deletions(-)
 delete mode 100755 tools/jailhouse-cell-list

-- 
2.9.3

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to