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

[Minios-devel] [UNIKRAFT PATCH v4 00/12] Extend scheduling API


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 22 Mar 2019 16:16:27 +0200
  • Cc: Florian.Schmidt@xxxxxxxxx
  • Delivery-date: Fri, 22 Mar 2019 14:16:48 +0000
  • Ironport-phdr: 9a23:Bhl1bxwbTF/YPwXXCy+O+j09IxM/srCxBDY+r6Qd2+sTIJqq85mqBkHD//Il1AaPAdyDra0dwLeJ+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhUiDanY75+MRq6oAXTu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8qFmQwLqhigaLT406GHZhNJtgqxVoxyvoAdyz5LIbIyPKPZzZL/Rcc8cSGFcXshRTStBAoakYoYRCOoBJvpYr4j7p1ATqxW+GBGsBP7ywTJPmnD22rY60/ggEQHAxgAgG88OsGzJrNjuKKgSSvq5zLHVzTrYdf9WwzD95ZHOfxs8ov+MRap9fdfexEUyDQ/IjVWdpZb7Mz+L1OkBqWaW4/J9We+glmIrsQJ8rzi1yssyhITEiJgZxk3L+Clnxos+OMe2R1RhYdG+FZtdrySaN4xrTcw8W2xooyM6yqEeuZ68YSgK1Iwrxx7BZPyDdIiF+gzjVOOLLjd5gHJpYq6whw2o/Ui41+3zTdO40ExNriZdk9nMsG4C1wDL58SaRfZx412t1DWP2gzJ9O1IP0I5mbDVJpI5x74/jJsTsUDNHi/sn0X2ibebeVkj+uiz9+TnY7PmqoWYN49pkgH+L78jldCkAegiKggOQnOU9f6m1L3k5UH5WqlFjuUqkqnFt5DXPcEbpq+/Aw9U1YYj8A+zACq439QGg3YHKElIeBaGj4jyJ1HOO+r0DPihjFSqijtrwOrGPrL5CJXXMnfDiKvhfap660NEyAQzyddf54hVCr4bJvL/QFL/u8DYDh88Mgy73vrnBc571owARW2PBrWWP7jIvVCW++J8a9WLMYoUvjf6ML0p6uDjiVc9mEQBZu+50J1Rb2q3Tdp8JEDMSn33ntYHWUMXphd2GOftk0GDV3hXem6vd6knoCkmAsS8CtGQFciWnLWd0XLjTdVtbWdcBwXUHA==
  • Ironport-sdr: rAcHyCxoGzq52hLB6NHMQBWpmrCKRH7WwA0AK+Lu9JKE4N/w1yGucmeNKJvVobdncrkGDyGeZe eKL4GU96zFAw==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

The current patch series introduce scheduling API extensions such as 
handling thread attributes and thread resources cleanup. The goal is
to extend the API so that it can be easier to integrate with pthread
API.

Changes since v1:
- Update exported symbols file
- Check if time slice is greater than timer tick
- Add default values for priority and time slice attributes

Changes since v2:
- Remove thread info and keep just the detach flag
- Split last patch of v2 in 3 different ones
- Add private field on thread structure for user frameworks

Changes since v3:
- Return error if adding a thread fails
- Export __getreent() to use it in newlib

Costin Lupu (12):
  arch/*: Add STACK_MASK_TOP bit mask
  lib/uksched: Add function for allocating scheduler common info
  lib/uksched: Introduce thread attributes
  lib/uksched: Introduce detached flag for threads
  lib/uksched: Add support for waiting threads
  lib/uksched: Revisit thread exiting logic
  lib/uksched: Add function for killing threads
  lib/uksched: Set scheduler reference only if adding the thread was
    successful
  lib/uksched: Revisit public scheduling functions
  lib/ukschedcoop: Remove redundant config dependencies
  lib/uksched: Add re-entrancy support for newlib
  lib/uksched: Add private field for user

 include/uk/arch/limits.h             |   2 +
 lib/ukdebug/print.c                  |   2 +-
 lib/uknetdev/netdev.c                |   2 +-
 lib/uksched/Makefile.uk              |   1 +
 lib/uksched/exportsyms.uk            |  20 +++++
 lib/uksched/include/uk/sched.h       | 115 +++++++++++++++++++++++++----
 lib/uksched/include/uk/thread.h      |  35 +++++++--
 lib/uksched/include/uk/thread_attr.h |  82 +++++++++++++++++++++
 lib/uksched/sched.c                  |  36 +++++++--
 lib/uksched/thread.c                 | 107 ++++++++++++++++++++++++++-
 lib/uksched/thread_attr.c            | 139 +++++++++++++++++++++++++++++++++++
 lib/ukschedcoop/Config.uk            |   2 -
 lib/ukschedcoop/schedcoop.c          |  58 ++++++---------
 plat/xen/x86/arch_events.c           |   2 +-
 plat/xen/x86/entry64.S               |   2 +-
 plat/xen/xenbus/xs_comms.c           |   2 +-
 16 files changed, 535 insertions(+), 72 deletions(-)
 create mode 100644 lib/uksched/include/uk/thread_attr.h
 create mode 100644 lib/uksched/thread_attr.c

-- 
2.11.0


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