Skip to content

Mini-OS: hide mini-os internal symbols

Juergen Gross xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest32 patches 28 repliesIn review
  2. v2 posting 2/22 patches 0 repliesSuperseded
  3. v2 posting 1/22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches3 repliesSuperseded

Changes in v3 from the cover letter

- Instead of a global file with symbol names use EXPORT_SYMBOL() instances for each symbol. Former patch 2 is replaced with new patches 2-32.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32Mini-OS: link kernel separatelyMakefile+5 -20 replies
2/32Mini-OS: explicitly mark symbols to be visible for apps.gitignore Makefile include/export.h +1 more+14 -11 reply
3/32Mini-OS: add EXPORT_SYMBOL() instances to kernel.ckernel.c+5 -01 reply
4/32Mini-OS: add EXPORT_SYMBOL() instances to hypervisor.chypervisor.c+5 -01 reply
5/32Mini-OS: add EXPORT_SYMBOL() instances to sched.carch/x86/sched.c sched.c+12 -01 reply
6/32Mini-OS: add EXPORT_SYMBOL() instances to mm.carch/arm/mm.c arch/x86/mm.c mm.c+11 -01 reply
7/32Mini-OS: add EXPORT_SYMBOL() instances to lib/sys.clib/sys.c+87 -51 reply
8/32Mini-OS: add EXPORT_SYMBOL() instances to lib/string.clib/string.c+18 -01 reply
9/32Mini-OS: add EXPORT_SYMBOL() instances to lib/math.clib/math.c+6 -01 reply
10/32Mini-OS: add EXPORT_SYMBOL() instances to lib/printf.clib/printf.c+9 -11 reply
11/32Mini-OS: add EXPORT_SYMBOL() instances to lib/ctype.clib/ctype.c+2 -01 reply
12/32Mini-OS: add EXPORT_SYMBOL() instances to lib/xmalloc.clib/xmalloc.c+3 -01 reply
13/32Mini-OS: add EXPORT_SYMBOL() instances to lib/xs.clib/xs.c+10 -01 reply
14/32Mini-OS: add EXPORT_SYMBOL() instances to main.cmain.c+3 -01 reply
15/32Mini-OS: add EXPORT_SYMBOL() instances to console.cconsole.c+5 -01 reply
16/32Mini-OS: add EXPORT_SYMBOL() instances to events.cevents.c+7 -01 reply
17/32Mini-OS: add EXPORT_SYMBOL() instances to gntmap.cgntmap.c+5 -01 reply
18/32Mini-OS: add EXPORT_SYMBOL() instances to gnttab.cgnttab.c+6 -01 reply
19/32Mini-OS: add EXPORT_SYMBOL() instances to ioremap.carch/x86/ioremap.c+3 -20 replies
20/32Mini-OS: add EXPORT_SYMBOL() instances to lock.clock.c+8 -11 reply
21/32Mini-OS: add EXPORT_SYMBOL() instances to time.carch/arm/time.c arch/x86/time.c+2 -11 reply
22/32Mini-OS: add EXPORT_SYMBOL() instances to lwip-*.clwip-arch.c lwip-net.c+10 -10 replies
23/32Mini-OS: add EXPORT_SYMBOL() instances to 9pfront.c9pfront.c+2 -01 reply
24/32Mini-OS: add EXPORT_SYMBOL() instances to blkfront.cblkfront.c+9 -31 reply
25/32Mini-OS: add EXPORT_SYMBOL() instances to fbfront.cfbfront.c+10 -11 reply
26/32Mini-OS: add EXPORT_SYMBOL() instances to netfront.cnetfront.c+7 -00 replies
27/32Mini-OS: add EXPORT_SYMBOL() instances to pcifront.cpcifront.c+10 -11 reply
28/32Mini-OS: add EXPORT_SYMBOL() instances to tpmback.ctpmback.c+11 -01 reply
29/32Mini-OS: add EXPORT_SYMBOL() instances to tpmfront.ctpmfront.c+6 -01 reply
30/32Mini-OS: add EXPORT_SYMBOL() instances to tpm_tis.ctpm_tis.c+5 -00 replies
31/32Mini-OS: add EXPORT_SYMBOL() instances to xenbus.cxenbus.c+23 -01 reply
32/32Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()Makefile+1 -01 reply

Reviews trailers per patch

28 of 32 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSamuel Thibault
SeriesR-b
1/32R-b
2/32R-b
3/32R-b
4/32R-b
5/32R-b
6/32R-b
7/32R-b
8/32R-b
9/32R-b
10/32R-b
11/32R-b
12/32R-b
13/32R-b
14/32R-b
15/32R-b
16/32R-b
17/32R-b
18/32R-b
19/32
20/32R-b
21/32R-b
22/32
23/32R-b
24/32R-b
25/32R-b
26/32
27/32R-b
28/32R-b
29/32R-b
30/32
31/32R-b
32/32R-b

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

Read the v3 thread

Cover letter [PATCH v3 00/32] Mini-OS: hide mini-os internal symbols

In order to avoid conflicts due to symbols with the same name when linking Mini-OS with an application, hide all Mini9-OS internal symbols from the application by linking the Mini-OS kernel individually and then removing all symbols which should be used internally only.

Changes in V2:
- added more symbols in patch 2

Changes in V3:
- Instead of a global file with symbol names use EXPORT_SYMBOL() instances for each symbol. Former patch 2 is replaced with new patches 2-32.

Juergen Gross (32):
Mini-OS: link kernel separately
Mini-OS: explicitly mark symbols to be visible for apps
Mini-OS: add EXPORT_SYMBOL() instances to kernel.c
Mini-OS: add EXPORT_SYMBOL() instances to hypervisor.c
Mini-OS: add EXPORT_SYMBOL() instances to sched.c
Mini-OS: add EXPORT_SYMBOL() instances to mm.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/sys.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/string.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/math.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/printf.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/ctype.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/xmalloc.c
Mini-OS: add EXPORT_SYMBOL() instances to lib/xs.c
Mini-OS: add EXPORT_SYMBOL() instances to main.c
Mini-OS: add EXPORT_SYMBOL() instances to console.c
Mini-OS: add EXPORT_SYMBOL() instances to events.c
Mini-OS: add EXPORT_SYMBOL() instances to gntmap.c
Mini-OS: add EXPORT_SYMBOL() instances to gnttab.c
Mini-OS: add EXPORT_SYMBOL() instances to ioremap.c
Mini-OS: add EXPORT_SYMBOL() instances to lock.c
Mini-OS: add EXPORT_SYMBOL() instances to time.c
Mini-OS: add EXPORT_SYMBOL() instances to lwip-*.c
Mini-OS: add EXPORT_SYMBOL() instances to 9pfront.c
Mini-OS: add EXPORT_SYMBOL() instances to blkfront.c
Mini-OS: add EXPORT_SYMBOL() instances to fbfront.c
Mini-OS: add EXPORT_SYMBOL() instances to netfront.c
Mini-OS: add EXPORT_SYMBOL() instances to pcifront.c
Mini-OS: add EXPORT_SYMBOL() instances to tpmback.c
Mini-OS: add EXPORT_SYMBOL() instances to tpmfront.c
Mini-OS: add EXPORT_SYMBOL() instances to tpm_tis.c
Mini-OS: add EXPORT_SYMBOL() instances to xenbus.c
Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()

 .gitignore         |  1 +
 9pfront.c          |  2 +
 Makefile           | 11 ++++--
 arch/arm/mm.c      |  2 +
 arch/arm/time.c    |  1 +
 arch/x86/ioremap.c |  5 ++-
 arch/x86/mm.c      |  5 +++
 arch/x86/sched.c   |  5 +++
 arch/x86/time.c    |  2 +-
 blkfront.c         | 12 ++++--
 console.c          |  5 +++
 events.c           |  7 ++++
 fbfront.c          | 11 +++++-
 gntmap.c           |  5 +++
 gnttab.c           |  6 +++
 hypervisor.c       |  5 +++
 include/export.h   | 10 +++++
 include/lib.h      |  1 +
 kernel.c           |  5 +++
 lib/ctype.c        |  2 +
 lib/math.c         |  6 +++
 lib/printf.c       | 10 ++++-
 lib/string.c       | 18 +++++++++
 lib/sys.c          | 92 +++++++++++++++++++++++++++++++++++++++++++---
 lib/xmalloc.c      |  3 ++
 lib/xs.c           | 10 +++++
 lock.c             |  9 ++++-
 lwip-arch.c        |  9 +++++
 lwip-net.c         |  2 +-
 main.c             |  3 ++
 mm.c               |  4 ++
 netfront.c         |  7 ++++
 pcifront.c         | 11 +++++-
 sched.c            |  7 ++++
 tpm_tis.c          |  5 +++
 tpmback.c          | 11 ++++++
 tpmfront.c         |  6 +++
 xenbus.c           | 23 ++++++++++++
 38 files changed, 320 insertions(+), 19 deletions(-)
 create mode 100644 include/export.h
Signature · 1 line
2.35.3