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

[Minios-devel] [UNIKRAFT PATCH v2 00/17] Prepare for enabling scheduling on KVM


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Wed, 4 Apr 2018 16:53:51 +0300
  • Cc: simon.kuenzer@xxxxxxxxx
  • Delivery-date: Wed, 04 Apr 2018 13:54:24 +0000
  • Ironport-phdr: 9a23:1AS9fhR8+jUyzCc/rSzl1KShONpsv+yvbD5Q0YIujvd0So/mwa6yZBaN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtgqxVoxWvqgdjz4LIeoyZKOBzcr/Bcd4cWGFPXtxRVytEAo6kcYYPCPEBPfpZr4n7ulAAqwa+BRGxBOjyzTJHmnj23bYm0+QgFwHKxgggH88WsHTJt9j6KLwSXfqtzKnV1jrPdelW2TDk5YXObxsvoumMUKptfcfe1EUjDQDIg1WKpYD7IT+Y1P4BvmaD4+Z9Wu+jlnQrpgJxrzS12MshhIfEipgIxl3L6yl0xps+K8eiR05he9GkFYNdtySdN4RrXMwvW3pouCMmyr0evp67YTQKxIwnxxHBb/yHdJCF4gzmVOmLIDd4gGhpd66khxqo6Uig1/bzWtOu0FZNtiZFk9/MuW4R1xHL98SKReZx8l2i1DuPzQzf9P9ILEIumafVM5Ihx6Q/lpsXsUTNBC/2n0D2gbeKeUUj4eio9+XnYrP8qp+YKo90khz+P78ylcykG+g4KhUOUHOB9eSm073v5Vf5T6lSjv0qjqnZt4jXJcEapq6/Ag9V1Z0j5w+iADi4ztQXg30HIUlBeBKGlIjpJ0rOLOr3DPihhVSgijBrx+rJPrf5GJXCMmDDkKv9fbZ680Nc0wszzdVY55JSEL0BI+/zVVH3tN3ZEBA5KRe5w+D5B9ph0oMRQ3mADrWHP6PP4he04bcqIu+NY5RQtDvjJvwN4//1kWR/iVIbO66z0sg5cne9S99hOFmYZzLIn88cWTMBuREiTeqsjECaTBZYfDCqQqh6/DZtW9HuNpvKWo342O/J5yy8BJADPm0=
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

The current patch series include refactorizations that integrate functionality
for both Xen and KVM platforms. We are introducing common CPU related
definitions, trap handling and thread switching abstractizations. The
scheduling API is revisited for inlining with the platform changes. The current
changes are needed in order to efficiently reuse the scheduling functionality 
on KVM as well.

Costin Lupu (17):
  plat/common: Common x86 CPU definitions
  plat/common: Common x86 segment descriptors definitions
  plat/common: x86 hardware context definition
  plat/common: Common x86 CPU interrupt flag handling
  plat/common: Common x86 CPU functions
  plat/common: Common x86 tracing functions
  plat/common: Common x86 traps definitions and functions
  plat/common: Add ukplat_lcpu_{enable,disable}_irq functions
  plat/common: Halting functions
  plat/common: Common x86 threading code
  arch/x86_64: Add nop() macro
  arch/x86_64: Add function for stack pointer retrieval
  lib/uksched: Updates for inlining with plat/common changes
  lib/ukschedcoop: Updates for inlining with uksched API changes
  plat/xen: Remove events enabling from platform code
  plat/xen: Add IRQ subsystem initialization function
  lib/ukboot: Updates for inlining with platform and scheduling changes

 include/uk/arch/thread.h                   |  53 -----
 include/uk/arch/x86_64/lcpu.h              |  40 +---
 include/uk/plat/irq.h                      |  54 +++++
 include/uk/plat/lcpu.h                     |  25 ++-
 include/uk/plat/thread.h                   |  70 +++++-
 lib/ukboot/boot.c                          |  21 +-
 lib/uksched/include/uk/sched.h             | 120 ++++++----
 lib/uksched/include/uk/thread.h            |  39 ++--
 lib/uksched/sched.c                        | 124 ++++++++---
 lib/uksched/thread.c                       |  76 ++++++-
 lib/ukschedcoop/schedcoop.c                |  45 ++--
 plat/common/include/_time.h                |  42 ++++
 plat/common/include/cpu.h                  |  46 ++++
 plat/common/include/sw_ctx.h               |  56 +++++
 plat/common/include/trace.h                |  48 ++++
 plat/common/include/x86/cpu.h              | 109 +++++++++
 plat/common/include/x86/cpu_defs.h         |  76 +++++++
 plat/common/include/x86/desc.h             | 197 +++++++++++++++++
 plat/common/include/x86/irq.h              |  87 ++++++++
 plat/common/include/x86/regs.h             |  94 ++++++++
 plat/common/include/x86/traps.h            | 115 ++++++++++
 plat/common/lcpu.c                         |  60 +++++
 plat/common/sw_ctx.c                       |  97 ++++++++
 plat/common/thread.c                       |  66 ++++++
 plat/common/x86/cpu_native.c               |  49 +++++
 plat/common/x86/thread_start.S             |  65 ++++++
 plat/common/x86/trace.c                    |  92 ++++++++
 plat/common/x86/traps.c                    | 116 ++++++++++
 plat/kvm/Makefile.uk                       |   8 +
 plat/kvm/include/kvm-x86/cpu_x86_64.h      |   5 -
 plat/kvm/include/kvm-x86/cpu_x86_64_defs.h |  46 +---
 plat/kvm/shutdown.c                        |   2 +-
 plat/kvm/x86/console.c                     |   2 +-
 plat/kvm/x86/cpu_x86_64.c                  |  11 +-
 plat/kvm/x86/entry64.S                     |   2 +-
 plat/kvm/x86/lcpu.c                        |   6 -
 plat/xen/Makefile.uk                       |  16 +-
 plat/xen/events.c                          |   8 +
 plat/xen/include/common/sched.h            |  52 -----
 plat/xen/include/xen-x86/arch_sched.h      |  55 -----
 plat/xen/include/xen-x86/cpu.h             | 103 ---------
 plat/xen/include/xen-x86/irq.h             |  55 +----
 plat/xen/include/xen-x86/os.h              |  46 +---
 plat/xen/include/xen-x86/traps.h           |  23 +-
 plat/xen/lcpu.c                            |  27 +--
 plat/xen/sched.c                           | 106 ---------
 plat/xen/thread.c                          |  66 ------
 plat/xen/x86/arch_events.c                 |   2 +-
 plat/xen/x86/arch_thread.c                 |  93 --------
 plat/xen/x86/arch_time.c                   |  17 +-
 plat/xen/x86/cpu_pv.c                      |  47 ++++
 plat/xen/x86/entry64.S                     | 231 +++++++------------
 plat/xen/x86/setup.c                       |   8 +-
 plat/xen/x86/traps.c                       | 342 ++++++-----------------------
 54 files changed, 2138 insertions(+), 1323 deletions(-)
 delete mode 100644 include/uk/arch/thread.h
 create mode 100644 include/uk/plat/irq.h
 create mode 100644 plat/common/include/_time.h
 create mode 100644 plat/common/include/cpu.h
 create mode 100644 plat/common/include/sw_ctx.h
 create mode 100644 plat/common/include/trace.h
 create mode 100644 plat/common/include/x86/cpu.h
 create mode 100644 plat/common/include/x86/cpu_defs.h
 create mode 100644 plat/common/include/x86/desc.h
 create mode 100644 plat/common/include/x86/irq.h
 create mode 100644 plat/common/include/x86/regs.h
 create mode 100644 plat/common/include/x86/traps.h
 create mode 100644 plat/common/lcpu.c
 create mode 100644 plat/common/sw_ctx.c
 create mode 100644 plat/common/thread.c
 create mode 100644 plat/common/x86/cpu_native.c
 create mode 100644 plat/common/x86/thread_start.S
 create mode 100644 plat/common/x86/trace.c
 create mode 100644 plat/common/x86/traps.c
 delete mode 100644 plat/xen/include/common/sched.h
 delete mode 100644 plat/xen/include/xen-x86/arch_sched.h
 delete mode 100644 plat/xen/include/xen-x86/cpu.h
 delete mode 100644 plat/xen/sched.c
 delete mode 100644 plat/xen/thread.c
 delete mode 100644 plat/xen/x86/arch_thread.c
 create mode 100644 plat/xen/x86/cpu_pv.c

-- 
2.1.4


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