Skip to content

ia64/xen domU take 4

Isaku Yamahata linux-ia64 virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23ia64/xen: introduce synch bitops which is necessary for ia64/xen support.include/asm-ia64/sync_bitops.h+59 -04 replies
1/23ia64/xen: introduce synch bitops which is necessary for ia64/xen support.include/asm-ia64/sync_bitops.h+59 -00 replies
1/23ia64/xen: introduce synch bitops which is necessary for ia64/xen support.include/asm-ia64/sync_bitops.h+57 -00 replies
1/23ia64/xen: introduce synch bitops which is necessary for ia64/xen support.include/asm-ia64/sync_bitops.h+57 -00 replies
2/23ia64/xen: increase IA64_MAX_RSVD_REGIONS.include/asm-ia64/meminit.h+2 -10 replies
3/23ia64/xen: introduce definitions necessary for ia64/xen hypercalls.include/asm-ia64/xen/interface.h+320 -00 replies
4/23ia64/xen: define several constants for ia64/xen.arch/ia64/kernel/asm-offsets.c+27 -00 replies
5/23ia64/xen: define helper functions for xen related address conversion.include/asm-ia64/xen/page.h+65 -00 replies
6/23ia64/xen: define helper functions for xen hypercalls.arch/ia64/xen/Makefile arch/ia64/xen/hypercall.S include/asm-ia64/xen/hypercall.h +1 more+488 -00 replies
7/23ia64/xen: implement the arch specific part of xencomm.arch/ia64/xen/Makefile arch/ia64/xen/xencomm.c include/asm-ia64/xen/xencomm.h+129 -10 replies
8/23ia64/xen: xencomm conversion functions for hypercallsarch/ia64/xen/Makefile arch/ia64/xen/xcom_hcall.c include/asm-ia64/xen/xcom_hcall.h+476 -10 replies
9/23ia64/xen: implement arch specific part of xen grant table.arch/ia64/xen/Makefile arch/ia64/xen/grant-table.c include/asm-ia64/xen/grant_table.h+185 -10 replies
10/23ia64/xen: add definitions necessary for xen event channel.include/asm-ia64/xen/events.h+50 -00 replies
11/23ia64/xen: detect xen environment and do minimal initialization.arch/ia64/kernel/head.S arch/ia64/xen/Makefile arch/ia64/xen/xen_pv_ops.c +1 more+122 -10 replies
12/23ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization.arch/ia64/xen/Makefile arch/ia64/xen/hypervisor.c arch/ia64/xen/xen_pv_ops.c +1 more+277 -10 replies
13/23ia64/pv_ops/xen: define xen pv_cpu_ops.arch/ia64/xen/xen_pv_ops.c+114 -00 replies
14/23ia64/pv_ops/xen: define xen paravirtualized instructions for hand written assembly codeinclude/asm-ia64/xen/inst.h+493 -00 replies
15/23ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen.include/asm-ia64/xen/inst.h include/asm-ia64/xen/minstate.h+133 -00 replies
16/23ia64/pv_ops/xen: paravirtualize ivt.S for xen.arch/ia64/xen/Makefile arch/ia64/xen/xenivt.S include/asm-ia64/xen/inst.h+73 -10 replies
17/23ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.arch/ia64/xen/Makefile arch/ia64/xen/xen_pv_ops.c include/asm-ia64/xen/inst.h+27 -10 replies
18/23ia64/pv_ops/xen: implement xen pv_iosapic_ops.arch/ia64/xen/xen_pv_ops.c+52 -00 replies
19/23ia64/pv_ops/xen: define the nubmer of irqs which xen needs.include/asm-ia64/xen/irq.h+44 -00 replies
20/23ia64/pv_ops/xen: implement xen pv_irq_ops.arch/ia64/xen/Makefile arch/ia64/xen/irq_xen.c arch/ia64/xen/irq_xen.h +1 more+460 -10 replies
21/23ia64/pv_ops/xen: implement xen pv_time_ops.arch/ia64/xen/Makefile arch/ia64/xen/time.c arch/ia64/xen/time.h +1 more+191 -10 replies
22/23ia64/xen: define xen machine vector for domU.arch/ia64/Makefile arch/ia64/kernel/acpi.c arch/ia64/xen/Makefile +3 more+37 -00 replies
23/23ia64/pv_ops: update Kconfig for paravirtualized guest and xen.arch/ia64/Kconfig arch/ia64/xen/Kconfig+52 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/23] ia64/xen domU take 4

Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments.

This patchset does the followings.
- Some preparation work. Mainly importing header files to define related structures.
- Then, define functions related to hypercall which is the way to communicate with Xen hypervisor.
- Add some helper functions which is necessary to utilize xen arch generic portion.
- Next implements the xen instance of pv_ops introducing pv_info, pv_init_ops, pv_cpu_ops and its assembler counter part, pv_iosapic_ops, pv_irq_ops and, pv_time_ops step by step.
- Introduce xen machine vector to describe xen platform. By using machine vector, xen domU implementation can be simplified.
- Lastly update Kconfig to allow paravirtualization support and xen domU support to compile.

The working full source is available from
http://people.valinux.co.jp/~yamahata/xen-ia64/linux-2.6-xen-ia64.git/
branch: xen-ia64-2008apr08

At this phase, we don't address the following issues. Those will be addressed after the first merge.
- optimization by binary patch
In fact, we had the patch to do that, but we intentionally dropped for patch size/readability/cleanness.
- freeing the unused pages, i.e. pages for unused ivt.S.

Changes from take 3:
- split the patch set into pv_op part and xen domU part.
- many clean ups.
- introduced pv_ops: pv_cpu_ops and pv_time_ops.

Changes from take 2:
- many clean ups following to comments.
- clean up:assembly instruction macro.
- introduced pv_ops: pv_info, pv_init_ops, pv_iosapic_ops, pv_irq_ops.

Changes from take 1:
Single IVT source code. compile multitimes using assembler macros.

thanks,

Diffstat:

 arch/ia64/Kconfig                  |   31 +++
 arch/ia64/Makefile                 |    2 +
 arch/ia64/kernel/acpi.c            |    5 +
 arch/ia64/kernel/asm-offsets.c     |   27 ++
 arch/ia64/kernel/head.S            |    6 +
 arch/ia64/xen/Kconfig              |   21 ++
 arch/ia64/xen/Makefile             |   22 ++
 arch/ia64/xen/grant-table.c        |  155 +++++++++++
 arch/ia64/xen/hypercall.S          |   91 +++++++
 arch/ia64/xen/hypervisor.c         |   96 +++++++
 arch/ia64/xen/irq_xen.c            |  422 ++++++++++++++++++++++++++++++
 arch/ia64/xen/irq_xen.h            |   34 +++
 arch/ia64/xen/machvec.c            |    4 +
 arch/ia64/xen/time.c               |  165 ++++++++++++
 arch/ia64/xen/time.h               |   23 ++
 arch/ia64/xen/xcom_hcall.c         |  424 ++++++++++++++++++++++++++++++
 arch/ia64/xen/xen_pv_ops.c         |  362 ++++++++++++++++++++++++++
 arch/ia64/xen/xencomm.c            |   95 +++++++
 arch/ia64/xen/xenivt.S             |   57 ++++
 arch/ia64/xen/xensetup.S           |   49 ++++
 include/asm-ia64/machvec.h         |    2 +
 include/asm-ia64/machvec_xen.h     |   22 ++
 include/asm-ia64/meminit.h         |    3 +-
 include/asm-ia64/sync_bitops.h     |   59 +++++
 include/asm-ia64/xen/events.h      |   50 ++++
 include/asm-ia64/xen/grant_table.h |   29 ++
 include/asm-ia64/xen/hypercall.h   |  263 +++++++++++++++++++
 include/asm-ia64/xen/hypervisor.h  |   72 +++++
 include/asm-ia64/xen/inst.h        |  504 ++++++++++++++++++++++++++++++++++++
 include/asm-ia64/xen/interface.h   |  320 +++++++++++++++++++++++
 include/asm-ia64/xen/irq.h         |   44 +++
 include/asm-ia64/xen/minstate.h    |  131 ++++++++++
 include/asm-ia64/xen/page.h        |   65 +++++
 include/asm-ia64/xen/privop.h      |  129 +++++++++
 include/asm-ia64/xen/xcom_hcall.h  |   51 ++++
 include/asm-ia64/xen/xencomm.h     |   33 +++
 36 files changed, 3867 insertions(+), 1 deletions(-)