|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4] xen: introduce CONFIG_HAS_SHARED_INFO for archs without a shared page
On 6/30/26 5:02 PM, Oleksii Kurochko wrote: @@ -55,6 +59,7 @@ struct evtchn_expand_array;int evtchn_fifo_init_control(struct evtchn_init_control *init_control); int evtchn_fifo_expand_array(const struct evtchn_expand_array *expand_array);void evtchn_fifo_destroy(struct domain *d); +void evtchn_fifo_init_ops(struct domain *d); #elsestatic inline int evtchn_fifo_init_control(struct evtchn_init_control *init_control)
I will shrink it to::
#ifndef CONFIG_HAS_SHARED_INFO
/*
* Placeholder ops for domains with neither a shared_info page nor (yet)
* a FIFO control block. None of these are ever reachable in practice;
* they only exist to keep d->evtchn_port_ops non-NULL.
*/
static void cf_check evtchn_none_set_pending(
struct vcpu *v, struct evtchn *evtchn) {}
static void cf_check evtchn_none_noop(
struct domain *d, struct evtchn *evtchn) {}
static bool cf_check evtchn_none_false(
const struct domain *d, const struct evtchn *evtchn) { return false; }
static void cf_check evtchn_none_print_state(
struct domain *d, const struct evtchn *evtchn) {}
static const struct evtchn_port_ops evtchn_port_ops_none = {
.set_pending = evtchn_none_set_pending,
.clear_pending = evtchn_none_noop,
.unmask = evtchn_none_noop,
.is_pending = evtchn_none_false,
.is_masked = evtchn_none_false,
.print_state = evtchn_none_print_state,
};
void evtchn_none_init(struct domain *d)
{
d->evtchn_port_ops = &evtchn_port_ops_none;
}
#endif /* CONFIG_HAS_SHARED_INFO */
~ Oleksii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |