All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: xen-devel@lists.xenproject.org
Cc: sstabellini@kernel.org, jgross@suse.com,
	Bertrand.Marquis@arm.com, julien@xen.org,
	Volodymyr_Babchuk@epam.com,
	Stefano Stabellini <stefano.stabellini@xilinx.com>
Subject: [PATCH v4 4/9] xen: export evtchn_alloc_unbound
Date: Thu, 31 Mar 2022 17:38:42 -0700	[thread overview]
Message-ID: <20220401003847.38393-4-sstabellini@kernel.org> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2203311735380.2910984@ubuntu-linux-20-04-desktop>

From: Stefano Stabellini <stefano.stabellini@xilinx.com>

It will be used during dom0less domains construction.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
---
 xen/common/event_channel.c | 2 +-
 xen/include/xen/event.h    | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index ffb042a241..2f6a89f52d 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -289,7 +289,7 @@ void evtchn_free(struct domain *d, struct evtchn *chn)
     xsm_evtchn_close_post(chn);
 }
 
-static int evtchn_alloc_unbound(evtchn_alloc_unbound_t *alloc)
+int evtchn_alloc_unbound(evtchn_alloc_unbound_t *alloc)
 {
     struct evtchn *chn;
     struct domain *d;
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h
index 21c95e14fd..987e88623a 100644
--- a/xen/include/xen/event.h
+++ b/xen/include/xen/event.h
@@ -71,6 +71,9 @@ void evtchn_free(struct domain *d, struct evtchn *chn);
 /* Allocate a specific event channel port. */
 int evtchn_allocate_port(struct domain *d, unsigned int port);
 
+/* Allocate a new event channel */
+int evtchn_alloc_unbound(evtchn_alloc_unbound_t *alloc);
+
 /* Unmask a local event-channel port. */
 int evtchn_unmask(unsigned int port);
 
-- 
2.25.1



  parent reply	other threads:[~2022-04-01  0:39 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01  0:38 [PATCH v4 0/9] dom0less PV drivers Stefano Stabellini
2022-04-01  0:38 ` [PATCH v4 1/9] xen/dt: dt_property_read_string should return -ENODATA on !length Stefano Stabellini
2022-04-01  8:05   ` Henry Wang
2022-04-01  0:38 ` [PATCH v4 2/9] xen/arm: implement domU extended regions Stefano Stabellini
2022-04-01 13:52   ` Luca Fancellu
2022-04-01 14:34   ` Julien Grall
2022-04-01  0:38 ` [PATCH v4 3/9] xen/arm: temporarily elevate idle_domain privileged during create_domUs Stefano Stabellini
2022-04-01 17:36   ` Julien Grall
2022-04-01  0:38 ` Stefano Stabellini [this message]
2022-04-05  9:50   ` [PATCH v4 4/9] xen: export evtchn_alloc_unbound Jan Beulich
2022-04-01  0:38 ` [PATCH v4 5/9] xen: introduce xen,enhanced dom0less property Stefano Stabellini
2022-04-01  0:38 ` [PATCH v4 6/9] xen/arm: configure dom0less domain for enabling xenstore after boot Stefano Stabellini
2022-04-01  0:38 ` [PATCH v4 7/9] xenstored: send an evtchn notification on introduce_domain Stefano Stabellini
2022-04-01 12:48   ` Juergen Gross
2022-04-01  0:38 ` [PATCH v4 8/9] tools: add example application to initialize dom0less PV drivers Stefano Stabellini
2022-04-01 10:21   ` Julien Grall
2022-04-01 10:46     ` Juergen Gross
2022-04-01 13:35       ` Julien Grall
2022-04-01 13:52         ` Juergen Gross
2022-04-01 14:04           ` Julien Grall
2022-04-01 14:11             ` Juergen Gross
2022-04-06  2:21       ` Stefano Stabellini
2022-04-06  8:58         ` Julien Grall
2022-04-13  1:22           ` Stefano Stabellini
2022-04-01  0:38 ` [PATCH v4 9/9] docs: document dom0less + " Stefano Stabellini
2022-04-01 10:48   ` Luca Fancellu

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=20220401003847.38393-4-sstabellini@kernel.org \
    --to=sstabellini@kernel.org \
    --cc=Bertrand.Marquis@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=stefano.stabellini@xilinx.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.