Skip to content

xen: Support continuations from tasklets

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6xen/tasklet: Fix return value truncation on arm64xen/arch/arm/traps.c xen/arch/x86/hypercall.c xen/common/domain.c +3 more+27 -61 reply
2/6xen/tasklet: Switch data parameter from unsigned long to void *.xen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vlapic.c xen/arch/x86/mm/shadow/common.c +12 more+47 -602 replies
3/6xen/domctl: Consolidate hypercall continuation handling at the top levelxen/arch/x86/domctl.c xen/arch/x86/mm/hap/hap.c xen/arch/x86/mm/shadow/common.c +1 more+11 -195 replies
4/6xen/hypercall: Cope with -ERESTART on more hypercall pathsxen/arch/x86/platform_hypercall.c xen/common/compat/domain.c xen/common/domain.c +2 more+47 -177 replies
5/6xen/tasklet: Return -ERESTART from continue_hypercall_on_cpu()xen/arch/arm/traps.c xen/arch/x86/hypercall.c xen/common/domain.c +1 more+21 -76 replies
6/6x86/smt: Don't use -EBUSY for smt_up_down_helper() continuationsxen/arch/x86/sysctl.c+7 -21 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchJan BeulichJulien Grall
1/6A-b R-b
2/6A-b A-b
3/6
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Xen-devel] [PATCH 0/6] xen: Support continuations from tasklets

This is the Post "x86/smt: Support for enabling/disabling SMT at runtime" work which stumbled into discovering XSA-296, for the purpose of making continuations more efficient.

From testing this series, I have re-confirmed the previous reported observation that:

  # while :; do xen-hptool smt-enable; xen-hptool smt-disable; done

in dom0 eventually causes the serial console to cease working (wedge midway through printing a line).

There are sporadic "Broke affinity for IRQ26, new: ffff" messages, but the serial always seems to break shortly after the first "Broke affinity for IRQ30, new: ffff". Both IRQs are non-descript PCI-MSI/-X interrupts bound to dom0.

Andrew Cooper (6):
xen/tasklet: Fix return value truncation on arm64 xen/tasklet: Switch data parameter from unsigned long to void *. xen/domctl: Consolidate hypercall continuation handling at the top level xen/hypercall: Cope with -ERESTART on more hypercall paths xen/tasklet: Return -ERESTART from continue_hypercall_on_cpu() x86/smt: Don't use -EBUSY for smt_up_down_helper() continuations

 xen/arch/arm/traps.c                      |  8 +++++++
 xen/arch/x86/domctl.c                     |  5 ++++-
 xen/arch/x86/hvm/hvm.c                    |  6 ++---
 xen/arch/x86/hvm/vlapic.c                 |  8 +++----
 xen/arch/x86/hypercall.c                  | 14 ++++++++++++
 xen/arch/x86/mm/hap/hap.c                 |  3 +--
 xen/arch/x86/mm/shadow/common.c           |  7 +++---
 xen/arch/x86/platform_hypercall.c         | 14 ++++++++++--
 xen/arch/x86/sysctl.c                     |  9 ++++++--
 xen/common/compat/domain.c                |  9 ++++----
 xen/common/domain.c                       | 37 +++++++++++++++++--------------
 xen/common/domctl.c                       | 19 +++++-----------
 xen/common/kexec.c                        | 20 +++++++++++++----
 xen/common/keyhandler.c                   | 19 ++++++++--------
 xen/common/stop_machine.c                 |  5 +++--
 xen/common/sysctl.c                       | 13 +++++++++--
 xen/common/tasklet.c                      |  6 ++---
 xen/common/trace.c                        |  4 ++--
 xen/drivers/char/console.c                |  4 ++--
 xen/drivers/passthrough/amd/iommu_guest.c |  7 +++---
 xen/drivers/passthrough/amd/iommu_init.c  |  6 ++---
 xen/drivers/passthrough/iommu.c           |  4 ++--
 xen/drivers/passthrough/vtd/iommu.c       |  4 ++--
 xen/include/asm-arm/regs.h                |  2 --
 xen/include/asm-x86/regs.h                |  2 --
 xen/include/asm-x86/shadow.h              |  5 ++---
 xen/include/xen/domain.h                  | 17 +++++++++++---
 xen/include/xen/tasklet.h                 | 10 ++++-----
 28 files changed, 158 insertions(+), 109 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel