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

[Minios-devel] [UNIKRAFT PATCH v2 0/8] plat/kvm: x86: Add support for initramdisks



Introduces support to locate a loaded initramdisk. For this purpose, we
introduce required platform API definitons. The idea is that an Unikraft
application finds an initramdisk by querying the memory regions. This is
similar to the detection of memory regions that can be used for the heap.
This series inplements initrd support for KVM on x86.
Additionally, this series is reorganizing KVMs way to store detected
platform configuration during boot: Instead of having individual
platform-global variables (e.g., _libkvmplat_heap_start,
_libkvmplat_stack_top, _libkvmplat_mem_end), we introduce a single
platform-global configuration struct. This is done for readability
reasons.

Changes v2:
  - Ignore zero-sized initramdisks
  - Add helper macro for finding the first initramdisk
    (with this turn also simplify boot code that initializes the heap)

Simon Kuenzer (8):
  include/plat: Helpers for iterating over memory regions
  lib/ukboot: Simplify heap initialization
  include/plat: Add flags for initramdisk memory regions
  include/plat: Helper for finding first initrd
  include/essentials: Introduce range test macros
  plat/kvm: Introduce platform configuration struct
  plat/kvm: Add initrd fields to configuration struct
  plat/kvm: x86: Retrieve initrd location from Multiboot

 include/uk/essentials.h       |  20 ++++
 include/uk/plat/memory.h      |  74 +++++++++++++-
 lib/ukboot/boot.c             |  58 ++++-------
 plat/common/arm/pl011.c       |  15 +--
 plat/common/arm/time.c        |  13 ++-
 plat/kvm/arm/setup.c          |  67 ++++++++-----
 plat/kvm/include/kvm/config.h |  66 ++++++++++++
 plat/kvm/memory.c             |  49 ++++++---
 plat/kvm/x86/setup.c          | 182 +++++++++++++++++++++++++++++++---
 9 files changed, 436 insertions(+), 108 deletions(-)
 create mode 100644 plat/kvm/include/kvm/config.h

-- 
2.20.1


_______________________________________________
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®.