Skip to content

Suspend and resume stubdomains

Demi Marie Obenour xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libxl: Add a utility function for domain resumetools/libs/light/libxl_dom_suspend.c+19 -220 replies
2/5libxl: Add utility function to check guest statustools/libs/light/libxl_dom_suspend.c+19 -100 replies
3/5libxl: Properly suspend stubdomainstools/libs/light/libxl_dom_suspend.c tools/libs/light/libxl_internal.h+150 -220 replies
4/5libxl: Fix race condition in domain suspensiontools/libs/light/libxl_dom_suspend.c+11 -40 replies
5/5libxl: Add additional domain suspend/resume logstools/libs/light/libxl_dom_suspend.c tools/libs/light/libxl_domain.c+19 -20 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchMarek Marczykowski-Górecki
1/5
2/5
3/5Co-authored-by
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] Suspend and resume stubdomains

Currently, libxl neither pauses nor suspends a stubdomain when suspending the domain it serves. Qubes OS has an out-of-tree patch that just pauses the stubdomain, but that is also insufficient: sys-net (an HVM with an attached PCI device) does not properly resume from suspend on some systems, and the stubdomain considers the TSC clocksource to be unstable after resume.

The first two patches add utility functions that will be used later. The third patch is the one that actually suspends the stubdomain. The fourth patch makes suspending slow-to-respond domains more robust, and the fifth patch adds extra logging.

Demi Marie Obenour (5):
libxl: Add a utility function for domain resume
libxl: Add utility function to check guest status
libxl: Properly suspend stubdomains
libxl: Fix race condition in domain suspension
libxl: Add additional domain suspend/resume logs

 tools/libxl/libxl_dom_suspend.c | 276 +++++++++++++++++++++++++-------
 tools/libxl/libxl_domain.c      |   1 +
 tools/libxl/libxl_internal.h    |   1 +
 3 files changed, 218 insertions(+), 60 deletions(-)
Signature · 3 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab