From: "Anthony PERARD" <anthony.perard@vates.tech>
To: "Jason Andryuk" <jason.andryuk@amd.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 1/2] xl: Keep monitoring suspended domain
Date: Thu, 28 Nov 2024 16:45:35 +0000 [thread overview]
Message-ID: <Z0ieLBwYt2jm_WAa@l14> (raw)
In-Reply-To: <20241126171941.170897-2-jason.andryuk@amd.com>
On Tue, Nov 26, 2024 at 12:19:40PM -0500, Jason Andryuk wrote:
> When a VM transitioned to LIBXL_SHUTDOWN_REASON_SUSPEND, the xl daemon
> was exiting as 0 = DOMAIN_RESTART_NONE "No domain restart".
> Later, when the VM actually shutdown, the missing xl daemon meant the
> domain wasn't cleaned up properly.
>
> Add a new DOMAIN_RESTART_SUSPENDED to handle the case. The xl daemon
> keeps running to react to future shutdown events.
>
> The domain death event needs to be re-enabled to catch subsequent
> events. The libxl_evgen_domain_death is moved from death_list to
> death_reported, and then it isn't found on subsequent iterations through
> death_list. We enable the new event before disabling the old event, to
> keep the xenstore watch active. If it is unregistered and
> re-registered, it'll fire immediately for our suspended domain which
> will end up continuously re-triggering.
>
> Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
Thanks,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
next prev parent reply other threads:[~2024-11-28 16:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 17:19 [PATCH v2 0/2] xl suspend/resume commands Jason Andryuk
2024-11-26 17:19 ` [PATCH v2 1/2] xl: Keep monitoring suspended domain Jason Andryuk
2024-11-28 16:45 ` Anthony PERARD [this message]
2024-12-02 8:53 ` Jan Beulich
2024-12-02 23:30 ` Jason Andryuk
2024-11-26 17:19 ` [PATCH v2 2/2] tools/xl: add suspend and resume subcommands Jason Andryuk
2024-11-28 17:19 ` Anthony PERARD
2024-12-02 23:30 ` Jason Andryuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z0ieLBwYt2jm_WAa@l14 \
--to=anthony.perard@vates.tech \
--cc=jason.andryuk@amd.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.