All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] kvmtool: add PRE_INIT support for ARM/ARM64
@ 2016-02-24 15:33 Andre Przywara
  2016-02-24 15:33 ` [PATCH 1/4] pre_init: rename x86/init.S to x86/init64.S Andre Przywara
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Andre Przywara @ 2016-02-24 15:33 UTC (permalink / raw)
  To: Will Deacon; +Cc: Oleg Nesterov, kvm, kvmarm

Hi,

the new PRE_INIT feature of kvmtool tries to get rid of the static
linking requirement (for ARM, at least) kvmtool currently comes with:
To be able to use the sandbox feature, kvmtool comes with an init
replacement, which is a statically linked binary injected into the
guest. It initializes the Linux environment and launches the command
provided on the kvmtool command line.
Now this results in a rather big binary blob (around 750K) sitting
in the kvmtool binary.
A recent commit provides another implementation for x86-64:
A tiny assembly stub mounts the host filesystem via 9pfs and calls
the now dynamically linked init binary. This removes the need for
statically linking the guest_init binary and is also much smaller
(find the numbers in patch 4/4).

This series provides implementations for ARM and ARM64. Since I needed
to wrap my mind around the original x86_64 asm code anyway, I also
added an i386 implementation.

Cheers,
Andre.

Andre Przywara (4):
  pre_init: rename x86/init.S to x86/init64.S
  pre_init: x86/init64.S: use defines for syscall numbers
  pre_init: add support for i386 also
  pre_init: add ARM implementations

 Makefile                 |  5 ++++-
 arm/aarch32/init.S       | 44 ++++++++++++++++++++++++++++++++++++++++++
 arm/aarch64/init.S       | 44 ++++++++++++++++++++++++++++++++++++++++++
 x86/init32.S             | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 x86/{init.S => init64.S} | 14 +++++++++++---
 5 files changed, 153 insertions(+), 4 deletions(-)
 create mode 100644 arm/aarch32/init.S
 create mode 100644 arm/aarch64/init.S
 create mode 100644 x86/init32.S
 rename x86/{init.S => init64.S} (71%)

-- 
2.6.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-03 21:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24 15:33 [PATCH 0/4] kvmtool: add PRE_INIT support for ARM/ARM64 Andre Przywara
2016-02-24 15:33 ` [PATCH 1/4] pre_init: rename x86/init.S to x86/init64.S Andre Przywara
2016-02-24 15:33 ` [PATCH 2/4] pre_init: x86/init64.S: use defines for syscall numbers Andre Przywara
2016-02-24 15:33 ` [PATCH 3/4] pre_init: add support for i386 also Andre Przywara
2016-03-02  2:57   ` Will Deacon
2016-03-03 10:53     ` Andre Przywara
2016-02-24 15:33 ` [PATCH 4/4] pre_init: add ARM implementations Andre Przywara
2016-03-02  3:00   ` Will Deacon
2016-03-02 23:38     ` André Przywara
2016-03-03 21:08       ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.