Skip to content

domctl: Avoid taking domctl lock for certain ops used during migration

Ross Lagerwall xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2domctl: Handle XEN_DOMCTL_getpageframeinfo3 without the domctl lockxen/arch/x86/domctl.c xen/common/domctl.c+5 -04 replies
2/2domctl: Handle some of XEN_DOMCTL_shadow_op without the domctl lockxen/arch/x86/mm/paging.c xen/common/domctl.c+18 -27 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRoger Pau MonnéOleksii KurochkoDaniel P. Smith
SeriesRelease-Acked-by
1/2R-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration

When performing multiple migrations in parallel, the domctl lock may become extremely contended:

* Operations like "xl vcpu-list" were observed to take in excess of 20s to execute.
* The "clean" shadow op may pause the domain, restart with a continuation and then become blocked on the domctl lock, causing VM downtime in excess of 20 seconds.

These issues can be fixed by not holding the domctl for the frequently called operations during migration.

Thanks

Ross Lagerwall (2):
domctl: Handle XEN_DOMCTL_getpageframeinfo3 without the domctl lock
domctl: Handle some of XEN_DOMCTL_shadow_op without the domctl lock

 xen/arch/x86/domctl.c    |  4 ++++
 xen/arch/x86/mm/paging.c |  8 ++++++--
 xen/common/domctl.c      | 13 +++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)
Signature · 1 line
2.53.0