From: Anthony PERARD <anthony@xenproject.org>
To: Juergen Gross <jgross@suse.com>
Cc: xen-devel@lists.xenproject.org,
Anthony PERARD <anthony.perard@vates.tech>,
Jason Andryuk <jason.andryuk@amd.com>
Subject: Re: [PATCH v2 5/9] tools/libxenevtchn: add xenevtchn_bind() under Mini-OS
Date: Tue, 29 Jul 2025 19:00:15 +0200 [thread overview]
Message-ID: <aIj-H5QvGMhFLh4c@l14> (raw)
In-Reply-To: <20250729110146.10580-6-jgross@suse.com>
On Tue, Jul 29, 2025 at 01:01:41PM +0200, Juergen Gross wrote:
> In order to reactivate an event channel after kexec() of Mini-OS,
> libxenevtchn needs to allocate the port data for the event channel
> and set the handler again. Add a new interface xenevtchn_bind()
> for that purpose, available under Mini-OS only.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
> Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
> ---
> tools/include/xenevtchn.h | 11 +++++++++++
> tools/libs/evtchn/minios.c | 17 +++++++++++++++++
> 2 files changed, 28 insertions(+)
>
> diff --git a/tools/include/xenevtchn.h b/tools/include/xenevtchn.h
> index 1255c85178..113a718d67 100644
> --- a/tools/include/xenevtchn.h
> +++ b/tools/include/xenevtchn.h
> @@ -173,6 +173,17 @@ int xenevtchn_unmask(xenevtchn_handle *xce, evtchn_port_t port);
> */
> int xenevtchn_restrict(xenevtchn_handle *xce, domid_t domid);
>
> +/**
> + * Bind an event channel under Mini-OS.
> + *
> + * Bind an event channel specified by its known port after a kexec() of
> + * Mini-OS. This function is available under Mini-OS only!
Would guarding this prototype within "#ifdef __MINIOS__" be useful to
prevent it from been used? That would give an error earlier when
compiling, rather than later when linking a binary.
In anycase: Acked-by: Anthony PERARD <anthony.perard@vates.tech>
> + *
> + * @parm xce handle to the open evtchn interface
> + * @parm port the event channel to bind again
> + * @return 0 on success, -1 on failure with errno set appropriately.
> + */
> +int xenevtchn_bind(xenevtchn_handle *xce, evtchn_port_t port);
> #endif
>
> /*
Thanks,
--
Anthony PERARD
next prev parent reply other threads:[~2025-07-29 17:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-29 11:01 [PATCH v2 0/9] Enable Xenstore-stubdom Live Update Juergen Gross
2025-07-29 11:01 ` [PATCH v2 1/9] xenstored: use fread() instead of mmap() for reading live update state Juergen Gross
2025-07-29 19:21 ` Andrew Cooper
2025-07-29 19:25 ` Andrew Cooper
2025-07-30 6:18 ` Jürgen Groß
2025-07-30 6:54 ` Juergen Gross
2025-07-29 11:01 ` [PATCH v2 2/9] libevtchn: add O_CLOEXEC support for Mini-OS Juergen Gross
2025-07-29 16:32 ` Anthony PERARD
2025-07-29 11:01 ` [PATCH v2 3/9] libxengnttab: set the cloexec flag on Mini-OS Juergen Gross
2025-07-29 16:34 ` Anthony PERARD
2025-07-29 11:01 ` [PATCH v2 4/9] xenstored: don't use xenevtchn_fdopen() in stubdom Juergen Gross
2025-07-29 11:01 ` [PATCH v2 5/9] tools/libxenevtchn: add xenevtchn_bind() under Mini-OS Juergen Gross
2025-07-29 17:00 ` Anthony PERARD [this message]
2025-07-30 6:03 ` Jürgen Groß
2025-07-29 11:01 ` [PATCH v2 6/9] xenstored: rebind event channels after live update in stubdom Juergen Gross
2025-07-29 11:01 ` [PATCH v2 7/9] tools/xenstored: make stubdom_init() live update aware Juergen Gross
2025-07-29 11:01 ` [PATCH v2 8/9] SUPPORT.md: add xenstorepvh-stubdom live update Juergen Gross
2025-07-29 11:01 ` [PATCH v2 9/9] CHANGELOG.md: " Juergen Gross
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=aIj-H5QvGMhFLh4c@l14 \
--to=anthony@xenproject.org \
--cc=anthony.perard@vates.tech \
--cc=jason.andryuk@amd.com \
--cc=jgross@suse.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.